Skip to content

Commit 87822b2

Browse files
authored
Rollup merge of #89558 - lcnr:query-stable-lint, r=estebank
Add rustc lint, warning when iterating over hashmaps r? rust-lang/wg-incr-comp
2 parents bdcb528 + 22e1798 commit 87822b2

File tree

43 files changed

+299
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+299
-68
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#![feature(iter_zip)]
3636
#![feature(never_type)]
3737
#![recursion_limit = "256"]
38+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
3839

3940
use rustc_ast::token::{self, Token};
4041
use rustc_ast::tokenstream::{CanSynthesizeMissingTokens, TokenStream, TokenTree};

compiler/rustc_ast_passes/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![feature(iter_is_partitioned)]
88
#![feature(box_patterns)]
99
#![recursion_limit = "256"]
10+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1011

1112
pub mod ast_validation;
1213
pub mod feature_gate;

compiler/rustc_borrowck/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#![feature(trusted_step)]
1414
#![feature(try_blocks)]
1515
#![recursion_limit = "256"]
16+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1617

1718
#[macro_use]
1819
extern crate rustc_middle;

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![feature(proc_macro_internals)]
1212
#![feature(proc_macro_quote)]
1313
#![recursion_limit = "256"]
14+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1415

1516
extern crate proc_macro;
1617

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#![feature(iter_zip)]
1414
#![feature(nll)]
1515
#![recursion_limit = "256"]
16+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1617

1718
use back::write::{create_informational_target_machine, create_target_machine};
1819

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#![feature(nll)]
99
#![feature(associated_type_bounds)]
1010
#![recursion_limit = "256"]
11+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1112

1213
//! This crate contains codegen code that is used by all codegen backends (LLVM and others).
1314
//! The backend-agnostic functions of this crate use functions defined in various traits that

compiler/rustc_const_eval/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Rust MIR: a lowered representation of Rust.
2424
#![feature(trusted_step)]
2525
#![feature(try_blocks)]
2626
#![recursion_limit = "256"]
27+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
2728

2829
#[macro_use]
2930
extern crate tracing;

compiler/rustc_data_structures/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![feature(thread_id_value)]
2929
#![allow(rustc::default_hash_types)]
3030
#![deny(unaligned_references)]
31+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
3132

3233
#[macro_use]
3334
extern crate tracing;

compiler/rustc_driver/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#![feature(nll)]
99
#![feature(once_cell)]
1010
#![recursion_limit = "256"]
11+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1112

1213
#[macro_use]
1314
extern crate tracing;
@@ -846,7 +847,7 @@ Available lint options:
846847
let builtin = sort_lints(sess, builtin);
847848

848849
let (plugin_groups, builtin_groups): (Vec<_>, _) =
849-
lint_store.get_lint_groups().iter().cloned().partition(|&(.., p)| p);
850+
lint_store.get_lint_groups().partition(|&(.., p)| p);
850851
let plugin_groups = sort_lint_groups(plugin_groups);
851852
let builtin_groups = sort_lint_groups(builtin_groups);
852853

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#![feature(iter_zip)]
1111
#![feature(let_else)]
1212
#![feature(nll)]
13+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1314

1415
#[macro_use]
1516
extern crate rustc_macros;

0 commit comments

Comments
 (0)