1
Fork 0
rust/compiler/rustc_lint
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
..
src Rollup merge of #138001 - meithecatte:privately-uninhabited, r=Nadrieril 2025-03-19 16:52:54 +01:00
Cargo.toml Stop relying on rustc_type_ir in non-type-system crates 2025-03-15 06:42:48 +00:00
messages.ftl Print out destructor 2025-02-26 19:03:29 +00:00