rust/tests
Matthias Krüger 224aab4223
Rollup merge of #148262 - JonathanBrouwer:dead-code-inference, r=nnethercote
Fix types being marked as dead when they are inferred generic arguments

Previously usages of a type in a pattern were ignored. This is incorrect, since if the type is in a pattern we're clearly producing it in the expression we're matching against.

I think this `in_pat` check was meant to be only for variants, which we should indeed ignore since we can just remove the match arm that matches the pattern. Please double check my logic here since this is my first time touching the dead-code pass and I'm not 100% sure this is what the `self.in_pat` check was for.

Fixes https://github.com/rust-lang/rust/issues/148144
2025-10-31 02:39:17 +01:00
..
assembly-llvm Add riscv64gc-unknown-redox 2025-10-29 13:15:12 +00:00
auxiliary Add test for addrspacecasting global vars 2025-09-03 08:40:51 +02:00
codegen-llvm Move wasm throw intrinsic back to unwind 2025-10-30 15:13:32 +03:00
codegen-units pub async fn implementation coroutine (func::{closure#0}) is monomorphized, when func itself is monomorphized 2025-09-01 13:45:00 +07:00
coverage Add coverage scope for controlling paths in code coverage 2025-10-27 12:54:24 +01:00
coverage-run-rustdoc
crashes add crashes tests for overlapping spans 2025-10-23 22:15:34 +00:00
debuginfo Re-enable macro-stepping test for AArch64 2025-10-27 10:26:57 +00:00
incremental Add a fast path for lowering trivial consts 2025-10-25 16:59:53 -04:00
mir-opt Auto merge of #147083 - dianne:non-extended-indices, r=matthewjasper 2025-10-28 03:02:00 +00:00
pretty Remove QPath::LangItem from ranges 2025-10-27 21:19:38 -05:00
run-make Rollup merge of #148115 - fmease:rustdoc-no-capture, r=notriddle 2025-10-30 02:43:43 -04:00
run-make-cargo Skip the panic-immediate-abort-works test when cross-compiling 2025-09-22 21:13:38 -04:00
rustdoc Move rustdoc tests to appropriate subdirectories 2025-10-26 19:16:41 -07:00
rustdoc-gui rustdoc-search: add test case for throbber 2025-10-07 12:59:58 -07:00
rustdoc-js rustdoc-search: add an integration test for CCI 2025-10-27 11:57:32 -07:00
rustdoc-js-std Add regression test for including derive macros in macro filtering 2025-10-27 16:00:32 +01:00
rustdoc-json Add tests for doc(attribute = "...") attribute 2025-08-28 15:56:30 +02:00
rustdoc-ui Rollup merge of #148115 - fmease:rustdoc-no-capture, r=notriddle 2025-10-30 02:43:43 -04:00
ui Rollup merge of #148262 - JonathanBrouwer:dead-code-inference, r=nnethercote 2025-10-31 02:39:17 +01:00
ui-fulldeps Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
COMPILER_TESTS.md