File tree 4 files changed +13
-1
lines changed
4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -430,6 +430,8 @@ impl LintStore {
430
430
// Note: find_best_match_for_name depends on the sort order of its input vector.
431
431
// To ensure deterministic output, sort elements of the lint_groups hash map.
432
432
// Also, never suggest deprecated lint groups.
433
+ // We will soon sort, so the initial order does not matter.
434
+ #[ allow( rustc:: potential_query_instability) ]
433
435
let mut groups: Vec < _ > = self
434
436
. lint_groups
435
437
. iter ( )
Original file line number Diff line number Diff line change @@ -197,6 +197,8 @@ pub(super) fn builtin(
197
197
if let Some ( ExpectedValues :: Some ( best_match_values) ) =
198
198
sess. parse_sess . check_config . expecteds . get ( & best_match)
199
199
{
200
+ // We will soon sort, so the initial order does not matter.
201
+ #[ allow( rustc:: potential_query_instability) ]
200
202
let mut possibilities =
201
203
best_match_values. iter ( ) . flatten ( ) . map ( Symbol :: as_str) . collect :: < Vec < _ > > ( ) ;
202
204
possibilities. sort ( ) ;
@@ -298,6 +300,9 @@ pub(super) fn builtin(
298
300
) ;
299
301
} ;
300
302
let mut have_none_possibility = false ;
303
+ // We later sort possibilities if it is not empty, so the
304
+ // order here does not matter.
305
+ #[ allow( rustc:: potential_query_instability) ]
301
306
let possibilities: Vec < Symbol > = values
302
307
. iter ( )
303
308
. inspect ( |a| have_none_possibility |= a. is_none ( ) )
Original file line number Diff line number Diff line change 25
25
//!
26
26
//! This API is completely unstable and subject to change.
27
27
28
- #![ allow( rustc:: potential_query_instability) ]
29
28
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
30
29
#![ doc( rust_logo) ]
31
30
#![ feature( rustdoc_internals) ]
Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ impl EarlyLintPass for NonAsciiIdents {
174
174
175
175
// Sort by `Span` so that error messages make sense with respect to the
176
176
// order of identifier locations in the code.
177
+ // We will soon sort, so the initial order does not matter.
178
+ #[ allow( rustc:: potential_query_instability) ]
177
179
let mut symbols: Vec < _ > = symbols. iter ( ) . collect ( ) ;
178
180
symbols. sort_by_key ( |k| k. 1 ) ;
179
181
@@ -287,6 +289,8 @@ impl EarlyLintPass for NonAsciiIdents {
287
289
}
288
290
289
291
if has_suspicious {
292
+ // The end result is put in `lint_reports` which is sorted.
293
+ #[ allow( rustc:: potential_query_instability) ]
290
294
let verified_augmented_script_sets = script_states
291
295
. iter ( )
292
296
. flat_map ( |( k, v) | match v {
@@ -299,6 +303,8 @@ impl EarlyLintPass for NonAsciiIdents {
299
303
let mut lint_reports: BTreeMap < ( Span , Vec < char > ) , AugmentedScriptSet > =
300
304
BTreeMap :: new ( ) ;
301
305
306
+ // The end result is put in `lint_reports` which is sorted.
307
+ #[ allow( rustc:: potential_query_instability) ]
302
308
' outerloop: for ( augment_script_set, usage) in script_states {
303
309
let ScriptSetUsage :: Suspicious ( mut ch_list, sp) = usage else { continue } ;
304
310
You can’t perform that action at this time.
0 commit comments