Skip to content

Commit 7f58477

Browse files
committed
Fix formatting
1 parent fa09404 commit 7f58477

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

compiler/rustc_mir_build/src/lints.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ impl<'mir, 'tcx> Search<'mir, 'tcx> {
7272
let func_ty = func.ty(body, tcx);
7373
if let ty::FnDef(callee, substs) = *func_ty.kind() {
7474
let normalized_substs = tcx.normalize_erasing_regions(param_env, substs);
75-
let (callee, call_substs) =
76-
if let Ok(Some(instance)) = Instance::resolve(tcx, param_env, callee, normalized_substs) {
77-
(instance.def_id(), instance.substs)
78-
} else {
79-
(callee, normalized_substs)
80-
};
75+
let (callee, call_substs) = if let Ok(Some(instance)) =
76+
Instance::resolve(tcx, param_env, callee, normalized_substs)
77+
{
78+
(instance.def_id(), instance.substs)
79+
} else {
80+
(callee, normalized_substs)
81+
};
8182

8283
// FIXME(#57965): Make this work across function boundaries
8384

0 commit comments

Comments
 (0)