Do not ICE when failing to resolve.
This commit is contained in:
parent
114c9284b9
commit
2e45cd4b69
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ pub(crate) fn mir_callgraph_reachable<'tcx>(
|
|||
trace!(?caller, ?param_env, ?substs, "cannot normalize, skipping");
|
||||
continue;
|
||||
};
|
||||
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 {
|
||||
trace!(?callee, "cannot resolve, skipping");
|
||||
continue;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue