diff options
| author | bors <bors@rust-lang.org> | 2023-04-23 11:26:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-23 11:26:01 +0000 |
| commit | 9e540df7931a32ca286eb2e907afde78b718fd17 (patch) | |
| tree | 8fcbde75f770f1283b96c9f98a418c7129584167 /compiler/rustc_mir_transform/src/const_debuginfo.rs | |
| parent | f12a7fa00fb7a99a92661bb9ae2b768dac0c5d40 (diff) | |
| parent | b8c67d82d3b4f152a38711de3466875b270e33de (diff) | |
| download | rust-9e540df7931a32ca286eb2e907afde78b718fd17.tar.gz rust-9e540df7931a32ca286eb2e907afde78b718fd17.zip | |
Auto merge of #107404 - cjgillot:const-debuginfo, r=oli-obk
Turn on ConstDebugInfo pass. Split from https://github.com/rust-lang/rust/pull/103657 Moving those constant into debuginfo allows to shrink the number of locals and the actual size of the MIR body.
Diffstat (limited to 'compiler/rustc_mir_transform/src/const_debuginfo.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/const_debuginfo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/const_debuginfo.rs b/compiler/rustc_mir_transform/src/const_debuginfo.rs index 692b3182f7d..b9bfbefcad9 100644 --- a/compiler/rustc_mir_transform/src/const_debuginfo.rs +++ b/compiler/rustc_mir_transform/src/const_debuginfo.rs @@ -16,7 +16,7 @@ pub struct ConstDebugInfo; impl<'tcx> MirPass<'tcx> for ConstDebugInfo { fn is_enabled(&self, sess: &rustc_session::Session) -> bool { - sess.opts.unstable_opts.unsound_mir_opts && sess.mir_opt_level() > 0 + sess.mir_opt_level() > 0 } fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { |
