We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a70352 commit 298c251Copy full SHA for 298c251
1 file changed
compiler/rustc_mir_transform/src/large_enums.rs
@@ -32,8 +32,8 @@ impl<'tcx> crate::MirPass<'tcx> for EnumSizeOpt {
32
fn is_enabled(&self, sess: &Session) -> bool {
33
// There are some differences in behavior on wasm and ARM that are not properly
34
// understood, so we conservatively treat this optimization as unsound:
35
- // https://github.com/rust-lang/rust/pull/85158#issuecomment-1101836457
36
- sess.opts.unstable_opts.unsound_mir_opts || sess.mir_opt_level() >= 3
+ // https://github.com/rust-lang/rust/issues/154413
+ sess.opts.unstable_opts.unsound_mir_opts && sess.mir_opt_level() >= 3
37
}
38
39
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
0 commit comments