diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-07-26 15:27:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-26 15:27:58 +0200 |
| commit | c9541a2bf86ed4d620abcf2f4eee3d0ce8e0e8cd (patch) | |
| tree | 660cc4d0b85ebbc7009ab7ec09c1073e1bce6486 /compiler | |
| parent | 8708f3cd1f96d226f6420a58ebdd61aa0bc08b0a (diff) | |
| parent | 25ed28823a252a37fbbe8867bbc5e99a1b924801 (diff) | |
| download | rust-c9541a2bf86ed4d620abcf2f4eee3d0ce8e0e8cd.tar.gz rust-c9541a2bf86ed4d620abcf2f4eee3d0ce8e0e8cd.zip | |
Rollup merge of #144331 - jplatte:matches-allow-non_exhaustive_omitted_patterns, r=Nadrieril
Disable non_exhaustive_omitted_patterns within matches! macro Closes rust-lang/rust#117304. I believe I can skip all of the bootstrap stuff mentioned in https://github.com/rust-lang/rust/issues/117304#issuecomment-1784414453 due to https://blog.rust-lang.org/inside-rust/2025/05/29/redesigning-the-initial-bootstrap-sequence/, right? cc `@Jules-Bertholet`
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint/src/levels.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs index 16eeb89207b..ac47897b568 100644 --- a/compiler/rustc_lint/src/levels.rs +++ b/compiler/rustc_lint/src/levels.rs @@ -933,6 +933,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> { fn check_gated_lint(&self, lint_id: LintId, span: Span, lint_from_cli: bool) -> bool { let feature = if let Some(feature) = lint_id.lint.feature_gate && !self.features.enabled(feature) + && !span.allows_unstable(feature) { // Lint is behind a feature that is not enabled; eventually return false. feature |
