Skip to content

Commit c9f6ac4

Browse files
Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk
dont call mir.post_mono_checks in codegen It seems like all tests are still passing when I remove this... let's see what CI says.
2 parents ed90087 + ffa2d3a commit c9f6ac4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Diff for: src/base.rs

-11
Original file line numberDiff line numberDiff line change
@@ -250,17 +250,6 @@ pub(crate) fn verify_func(
250250
}
251251

252252
fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
253-
if let Err(err) =
254-
fx.mir.post_mono_checks(fx.tcx, ty::ParamEnv::reveal_all(), |c| Ok(fx.monomorphize(c)))
255-
{
256-
err.emit_err(fx.tcx);
257-
fx.bcx.append_block_params_for_function_params(fx.block_map[START_BLOCK]);
258-
fx.bcx.switch_to_block(fx.block_map[START_BLOCK]);
259-
// compilation should have been aborted
260-
fx.bcx.ins().trap(TrapCode::UnreachableCodeReached);
261-
return;
262-
}
263-
264253
let arg_uninhabited = fx
265254
.mir
266255
.args_iter()

0 commit comments

Comments
 (0)