about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context.rs
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2023-12-23 14:30:54 +0100
committerMartin Nordholts <martin.nordholts@codetale.se>2023-12-31 14:50:57 +0100
commit295d6003acaa8da531248422a9d8567e30aeb52a (patch)
treef537e4fbccf4f8f329bfb7910d435911ad244ab8 /compiler/rustc_lint/src/context.rs
parent231dbbcb6ac0bc32e77dd7f3bf0443f493161c65 (diff)
downloadrust-295d6003acaa8da531248422a9d8567e30aeb52a.tar.gz
rust-295d6003acaa8da531248422a9d8567e30aeb52a.zip
rustc_lint: Enforce `rustc::potential_query_instability` lint
Stop allowing `rustc::potential_query_instability` on all of
`rustc_lint` and instead allow it on a case-by-case basis if it is safe
to do so. In this particular crate, all lints were safe to allow.
Diffstat (limited to 'compiler/rustc_lint/src/context.rs')
-rw-r--r--compiler/rustc_lint/src/context.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs
index 88a02917f36..d0fd019a8b1 100644
--- a/compiler/rustc_lint/src/context.rs
+++ b/compiler/rustc_lint/src/context.rs
@@ -430,6 +430,8 @@ impl LintStore {
         // Note: find_best_match_for_name depends on the sort order of its input vector.
         // To ensure deterministic output, sort elements of the lint_groups hash map.
         // Also, never suggest deprecated lint groups.
+        // We will soon sort, so the initial order does not matter.
+        #[allow(rustc::potential_query_instability)]
         let mut groups: Vec<_> = self
             .lint_groups
             .iter()