We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114c928 commit 2e45cd4Copy full SHA for 2e45cd4
compiler/rustc_mir_transform/src/inline/cycle.rs
@@ -48,7 +48,7 @@ pub(crate) fn mir_callgraph_reachable<'tcx>(
48
trace!(?caller, ?param_env, ?substs, "cannot normalize, skipping");
49
continue;
50
};
51
- let Some(callee) = ty::Instance::resolve(tcx, param_env, callee, substs).unwrap() else {
+ let Ok(Some(callee)) = ty::Instance::resolve(tcx, param_env, callee, substs) else {
52
trace!(?callee, "cannot resolve, skipping");
53
54
0 commit comments