Fix formatting

This commit is contained in:
bishtpawan 2020-10-21 11:42:52 +05:30
parent fa094044a9
commit 7f5847735a

View File

@ -72,12 +72,13 @@ impl<'mir, 'tcx> Search<'mir, 'tcx> {
let func_ty = func.ty(body, tcx);
if let ty::FnDef(callee, substs) = *func_ty.kind() {
let normalized_substs = tcx.normalize_erasing_regions(param_env, substs);
let (callee, call_substs) =
if let Ok(Some(instance)) = Instance::resolve(tcx, param_env, callee, normalized_substs) {
(instance.def_id(), instance.substs)
} else {
(callee, normalized_substs)
};
let (callee, call_substs) = if let Ok(Some(instance)) =
Instance::resolve(tcx, param_env, callee, normalized_substs)
{
(instance.def_id(), instance.substs)
} else {
(callee, normalized_substs)
};
// FIXME(#57965): Make this work across function boundaries