rust/tests
Stuart Cook dbc2193d37
Rollup merge of #152729 - Enselic:single_use_consts-not-required, r=cjgillot
compiler: Don't mark `SingleUseConsts` MIR pass as "required for soundness"

I don't think this MIR pass is required for soundness. The reasons are:
* Something like it was not enabled by default before PR rust-lang/rust#107404 which was the precursor to `SingleUseConsts` (see rust-lang/rust#125910 for the switch).
* By following the advice from https://github.com/rust-lang/rust/pull/128657#discussion_r1705114015 we can conclude it is not required for soundness since it has only ever run on MIR opt level > 0.
* Its [`MirPass::can_be_overridden()`](0ee7d96253/compiler/rustc_mir_transform/src/pass_manager.rs (L98-L102)) is unchanged and thus returns `true`, indicating that it is not a required MIR pass.
* PR CI pass in rust-lang/rust#151426 which stops enabling it by default in non-optimized builds.

As shown in the updated test `tests/mir-opt/optimize_none.rs`, `#[optimize(none)]` functions become even less optimized, as expected and desired.

Unblocks https://github.com/rust-lang/rust/pull/151426.
2026-02-18 17:29:43 +11:00
..
assembly-llvm Rollup merge of #152404 - durin42:llvm-23-instcombine-shrink-constant, r=Mark-Simulacrum 2026-02-14 22:11:54 +01:00
auxiliary UnsafePinned: implement opsem effects of UnsafeUnpin 2026-02-12 09:09:35 +01:00
build-std/configurations Test that -Zbuild-std=core works on a variety of profiles 2026-01-14 20:39:12 -05:00
codegen-llvm Auto merge of #152605 - scottmcm:box-drop-alignment, r=Mark-Simulacrum 2026-02-15 13:38:45 +00:00
codegen-units add write_box_via_move intrinsic and use it for vec! 2026-02-16 17:27:40 +01:00
coverage coverage: Add a test case for a previously-unknown span mismatch 2026-02-03 22:53:38 +11:00
coverage-run-rustdoc
crashes Revert "Fix an ICE in the vtable iteration for a trait reference" 2026-02-16 17:52:06 -08:00
debuginfo Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
incremental Bless tests 2026-02-11 18:08:18 +09:00
mir-opt Rollup merge of #152729 - Enselic:single_use_consts-not-required, r=cjgillot 2026-02-18 17:29:43 +11:00
pretty Fix pretty print tests with #[prelude_import] 2026-02-12 17:43:58 +00:00
run-make Unify wording of resolve error 2026-02-17 16:51:44 +00:00
run-make-cargo Update cargo submodule 2026-01-30 19:15:24 -05:00
rustdoc-gui Remove the 4 failing tests from rustdoc-gui 2026-02-06 01:13:41 +01:00
rustdoc-html Rollup merge of #151783 - mu001999-contrib:impl/final-method, r=fee1-dead 2026-02-17 13:02:21 +11:00
rustdoc-js rustdoc: sort stable items first 2026-02-13 14:44:41 -06:00
rustdoc-js-std rustdoc: sort stable items first 2026-02-13 14:44:41 -06:00
rustdoc-json resolve: Mark items under ambigous imports as exported 2026-01-27 16:24:53 +03:00
rustdoc-ui Unify wording of resolve error 2026-02-17 16:51:44 +00:00
ui Rollup merge of #152637 - JohnTitor:issue-65866, r=estebank 2026-02-18 17:29:42 +11:00
ui-fulldeps Unify wording of resolve error 2026-02-17 16:51:44 +00:00
COMPILER_TESTS.md