(instance: Instance<'tcx>, tcx: TyCtxt<'tcx>)
| 54 | |
| 55 | impl UninitApi { |
| 56 | pub fn from_instance<'tcx>(instance: Instance<'tcx>, tcx: TyCtxt<'tcx>) -> Option<Self> { |
| 57 | let path = tcx.def_path_str_with_args(instance.def_id(), instance.args); |
| 58 | Self::from_str(&path) |
| 59 | } |
| 60 | |
| 61 | #[inline] |
| 62 | fn from_str(path: &str) -> Option<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected