rust/compiler/rustc_pattern_analysis/src
Matthias Krüger 2ab69b898a
Rollup merge of #138001 - meithecatte:privately-uninhabited, r=Nadrieril
mir_build: consider privacy when checking for irrefutable patterns

This PR fixes #137999.

Note that, since this makes the compiler reject code that was previously accepted, it will probably need a crater run.

I include a commit that factors out a common code pattern into a helper function, purely because the fact that this was repeated all over the place was bothering me. Let me know if I should split that into a separate PR instead.
2025-03-19 16:52:54 +01:00
..
rustc compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
constructor.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
errors.rs Encapsulate the printing of WitnessPat 2024-07-29 14:56:50 +10:00
lib.rs Remove #![warn(unreachable_pub)] from all compiler/ crates. 2025-03-11 13:14:21 +11:00
lints.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
pat.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
pat_column.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc.rs Add helper methods checking for "#[non_exhaustive] that's active" 2025-03-07 16:16:36 +01:00
usefulness.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00