Skip to content

Commit 82bad95

Browse files
committed
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.
1 parent ecb29c1 commit 82bad95

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/librustc_mir/transform/inline.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,13 @@ impl<'a, 'tcx> Inliner<'a, 'tcx> {
115115
Ok(ref callee_mir) if self.should_inline(callsite, callee_mir) => {
116116
callee_mir.subst(self.tcx, callsite.substs)
117117
}
118+
Ok(_) => continue,
118119

119-
_ => continue,
120+
Err(mut bug) => {
121+
// FIXME(#43542) shouldn't have to cancel an error
122+
bug.cancel();
123+
continue
124+
}
120125
};
121126

122127
let start = caller_mir.basic_blocks().len();

0 commit comments

Comments
 (0)