rustc: Add a FIXME for try_get
in MIR inlining
It sounds like this is being handled elsewhere, so for now just preserve the existing behavior of ignoring th error.
This commit is contained in:
parent
ecb29c11bb
commit
82bad957c0
@ -115,8 +115,13 @@ impl<'a, 'tcx> Inliner<'a, 'tcx> {
|
||||
Ok(ref callee_mir) if self.should_inline(callsite, callee_mir) => {
|
||||
callee_mir.subst(self.tcx, callsite.substs)
|
||||
}
|
||||
Ok(_) => continue,
|
||||
|
||||
_ => continue,
|
||||
Err(mut bug) => {
|
||||
// FIXME(#43542) shouldn't have to cancel an error
|
||||
bug.cancel();
|
||||
continue
|
||||
}
|
||||
};
|
||||
|
||||
let start = caller_mir.basic_blocks().len();
|
||||
|
Loading…
Reference in New Issue
Block a user