Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bishtpawan committed Oct 21, 2020
1 parent fa09404 commit 7f58477
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions compiler/rustc_mir_build/src/lints.rs
Expand Up @@ -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

Expand Down

0 comments on commit 7f58477

Please sign in to comment.