rust/tests
Matthias Krüger 62cad970e8
Rollup merge of #136235 - oli-obk:transmuty-pat-tys, r=RalfJung
Pretty print pattern type values with transmute if they don't satisfy their pattern

Instead of printing `0_u32 is 1..`, we now print the default fallback rendering that we also use for invalid bools, chars, ...: `{transmute(0x00000000): (u32) is 1..=}`.

These cases can occur in mir dumps when const prop propagates a constant across a safety check that would prevent the actually UB value from existing. That's fine though, as it's dead code and we always need to allow UB in dead code.

follow-up to https://github.com/rust-lang/rust/pull/136176

cc ``@compiler-errors`` ``@scottmcm``

r? ``@RalfJung`` because of the interpreter changes
2025-02-06 13:09:58 +01:00
..
assembly Rollup merge of #133932 - bjorn3:fix_ptx_kernel_abi, r=wesleywiser 2025-02-05 19:53:45 -08:00
auxiliary tests/assembly/asm: Remove uses of rustc_attrs and lang_items features by using minicore 2024-12-18 02:59:07 +09:00
codegen Auto merge of #135760 - scottmcm:disjoint-bitor, r=WaffleLapkin 2025-02-04 17:46:06 +00:00
codegen-units Remove -Zinline-in-all-cgus and clean up CGU partitioning tests 2025-01-27 23:48:47 -05:00
coverage coverage: Completely overhaul counter assignment, using node-flow graphs 2025-01-16 22:07:18 +11:00
coverage-run-rustdoc
crashes Rollup merge of #136520 - compiler-errors:redundant-layout-assert, r=lcnr 2025-02-04 18:49:41 +01:00
debuginfo Revert "Remove the Arc rt::init allocation for thread info" 2025-01-14 13:37:25 +01:00
incremental add test for issue 135514 2025-01-15 08:26:23 +00:00
mir-opt Rollup merge of #136235 - oli-obk:transmuty-pat-tys, r=RalfJung 2025-02-06 13:09:58 +01:00
pretty Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
run-make tests: port split-debuginfo to rmake.rs 2025-02-01 16:14:58 +08:00
rustdoc Rollup merge of #136274 - compiler-errors:sized-wf, r=lcnr 2025-02-04 18:49:37 +01:00
rustdoc-gui Add GUI test for new "sans serif fonts" setting 2025-01-29 11:01:14 +01:00
rustdoc-js Rollup merge of #134277 - notriddle:notriddle/inline-into, r=GuillaumeGomez 2024-12-16 20:00:20 +01:00
rustdoc-js-std Treat other items as functions for the purpose of type-based search 2025-01-16 11:52:00 -06:00
rustdoc-json Add missing lang items in no_core tests in rustdoc 2025-02-04 01:05:31 +00:00
rustdoc-ui Rollup merge of #136274 - compiler-errors:sized-wf, r=lcnr 2025-02-04 18:49:37 +01:00
ui Rollup merge of #136073 - compiler-errors:recursive-coro-always, r=oli-obk 2025-02-06 13:09:57 +01:00
ui-fulldeps Rollup merge of #134777 - saethlin:enable-more-tests-on-windows, r=Noratrieb 2025-02-04 05:36:50 -05:00
COMPILER_TESTS.md