diff options
| author | bors <bors@rust-lang.org> | 2022-07-27 18:22:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-27 18:22:33 +0000 |
| commit | 2643b16468fda787470340890212591d8bc832b7 (patch) | |
| tree | dfb7655d89e2758e346ed903c3cf258e79b4fcec /compiler/rustc_mir_transform | |
| parent | da5b546d2e563747b16a16dae83bacf49aa0bf3b (diff) | |
| parent | 2d52aa05d1786b32f7d6e944a733352d31675acc (diff) | |
| download | rust-2643b16468fda787470340890212591d8bc832b7.tar.gz rust-2643b16468fda787470340890212591d8bc832b7.zip | |
Auto merge of #99816 - GuillaumeGomez:rollup-tyobksa, r=GuillaumeGomez
Rollup of 7 pull requests Successful merges: - #94247 (Fix slice::ChunksMut aliasing) - #99358 (Allow `ValTree::try_to_raw_bytes` on `u8` array) - #99651 (Deeply deny fn and raw ptrs in const generics) - #99710 (lint: add bad opt access internal lint) - #99717 (Add some comments to the docs issue template to clarify) - #99728 (Clean up HIR-based lifetime resolution) - #99812 (Fix headings colors) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/lower_slice_len.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_mir_transform/src/reveal_all.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/lower_slice_len.rs b/compiler/rustc_mir_transform/src/lower_slice_len.rs index 47848cfa497..2f02d00ec9f 100644 --- a/compiler/rustc_mir_transform/src/lower_slice_len.rs +++ b/compiler/rustc_mir_transform/src/lower_slice_len.rs @@ -11,7 +11,7 @@ pub struct LowerSliceLenCalls; impl<'tcx> MirPass<'tcx> for LowerSliceLenCalls { fn is_enabled(&self, sess: &rustc_session::Session) -> bool { - sess.opts.mir_opt_level() > 0 + sess.mir_opt_level() > 0 } fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { diff --git a/compiler/rustc_mir_transform/src/reveal_all.rs b/compiler/rustc_mir_transform/src/reveal_all.rs index 8ea550fa123..4919ad40098 100644 --- a/compiler/rustc_mir_transform/src/reveal_all.rs +++ b/compiler/rustc_mir_transform/src/reveal_all.rs @@ -9,7 +9,7 @@ pub struct RevealAll; impl<'tcx> MirPass<'tcx> for RevealAll { fn is_enabled(&self, sess: &rustc_session::Session) -> bool { - sess.opts.mir_opt_level() >= 3 || super::inline::Inline.is_enabled(sess) + sess.mir_opt_level() >= 3 || super::inline::Inline.is_enabled(sess) } fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { |
