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:
Alex Crichton 2017-08-24 07:00:44 -07:00
parent ecb29c11bb
commit 82bad957c0

View File

@ -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();