Fix formatting
This commit is contained in:
parent
fa094044a9
commit
7f5847735a
1 changed files with 7 additions and 6 deletions
|
@ -72,8 +72,9 @@ impl<'mir, 'tcx> Search<'mir, 'tcx> {
|
||||||
let func_ty = func.ty(body, tcx);
|
let func_ty = func.ty(body, tcx);
|
||||||
if let ty::FnDef(callee, substs) = *func_ty.kind() {
|
if let ty::FnDef(callee, substs) = *func_ty.kind() {
|
||||||
let normalized_substs = tcx.normalize_erasing_regions(param_env, substs);
|
let normalized_substs = tcx.normalize_erasing_regions(param_env, substs);
|
||||||
let (callee, call_substs) =
|
let (callee, call_substs) = if let Ok(Some(instance)) =
|
||||||
if let Ok(Some(instance)) = Instance::resolve(tcx, param_env, callee, normalized_substs) {
|
Instance::resolve(tcx, param_env, callee, normalized_substs)
|
||||||
|
{
|
||||||
(instance.def_id(), instance.substs)
|
(instance.def_id(), instance.substs)
|
||||||
} else {
|
} else {
|
||||||
(callee, normalized_substs)
|
(callee, normalized_substs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue