mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
Fix build failure of rustfmt
This commit is contained in:
@@ -71,11 +71,12 @@ fn is_recursive_call(&self, func: &Operand<'tcx>) -> bool {
|
||||
|
||||
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, substs) {
|
||||
if let Ok(Some(instance)) = Instance::resolve(tcx, param_env, callee, normalized_substs) {
|
||||
(instance.def_id(), instance.substs)
|
||||
} else {
|
||||
(callee, substs)
|
||||
(callee, normalized_substs)
|
||||
};
|
||||
|
||||
// FIXME(#57965): Make this work across function boundaries
|
||||
|
||||
Reference in New Issue
Block a user