about summary refs log tree commit diff
path: root/compiler/rustc_feature
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-10 23:12:57 +0100
committerGitHub <noreply@github.com>2022-03-10 23:12:57 +0100
commit1ed2a94fd2d7e1440531e07932bb85bddcc4c1b1 (patch)
treec7611875d9d9b5cdd9722f9e6f3d06d3999df942 /compiler/rustc_feature
parent5a7f09d9a3e56e2370731d1cdab78cbcb3451d0f (diff)
parent1c31a95df7de66dc7842b43facf185ef8a776e6f (diff)
downloadrust-1ed2a94fd2d7e1440531e07932bb85bddcc4c1b1.tar.gz
rust-1ed2a94fd2d7e1440531e07932bb85bddcc4c1b1.zip
Rollup merge of #94274 - djkoloski:unknown_unstable_lints, r=tmandry
Treat unstable lints as unknown

This change causes unstable lints to be ignored if the `unknown_lints`
lint is allowed. To achieve this, it also changes lints to apply as soon
as they are processed. Previously, lints in the same set were processed
as a batch and then all simultaneously applied.

Implementation of https://github.com/rust-lang/compiler-team/issues/469
Diffstat (limited to 'compiler/rustc_feature')
-rw-r--r--compiler/rustc_feature/src/active.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs
index 1899e837eea..66eb3bcf7ce 100644
--- a/compiler/rustc_feature/src/active.rs
+++ b/compiler/rustc_feature/src/active.rs
@@ -169,6 +169,8 @@ declare_features! (
     (active, staged_api, "1.0.0", None, None),
     /// Added for testing E0705; perma-unstable.
     (active, test_2018_feature, "1.31.0", None, Some(Edition::Edition2018)),
+    /// Added for testing unstable lints; perma-unstable.
+    (active, test_unstable_lint, "1.60.0", None, None),
     /// Allows non-`unsafe` —and thus, unsound— access to `Pin` constructions.
     /// Marked `incomplete` since perma-unstable and unsound.
     (incomplete, unsafe_pin_internals, "1.60.0", None, None),