Skip to content

Commit 88a5a98

Browse files
committed
Auto merge of #90380 - Mark-Simulacrum:revert-89558-query-stable-lint, r=lcnr
Revert "Add rustc lint, warning when iterating over hashmaps" Fixes perf regressions introduced in #90235 by temporarily reverting the relevant PR.
2 parents a9f664f + 3215eeb commit 88a5a98

File tree

43 files changed

+68
-299
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

+68
-299
lines changed

compiler/rustc_ast_lowering/src/lib.rs

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

4039
use rustc_ast::token::{self, Token};
4140
use rustc_ast::tokenstream::{CanSynthesizeMissingTokens, TokenStream, TokenTree};

compiler/rustc_ast_passes/src/lib.rs

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

1211
pub mod ast_validation;
1312
pub mod feature_gate;

compiler/rustc_borrowck/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![feature(trusted_step)]
1313
#![feature(try_blocks)]
1414
#![recursion_limit = "256"]
15-
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1615

1716
#[macro_use]
1817
extern crate rustc_middle;

compiler/rustc_builtin_macros/src/lib.rs

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

1615
extern crate proc_macro;
1716

compiler/rustc_codegen_llvm/src/lib.rs

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

1817
use back::write::{create_informational_target_machine, create_target_machine};
1918

compiler/rustc_codegen_ssa/src/lib.rs

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

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

compiler/rustc_const_eval/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ 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))]
2827

2928
#[macro_use]
3029
extern crate tracing;

compiler/rustc_data_structures/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#![feature(thread_id_value)]
2828
#![allow(rustc::default_hash_types)]
2929
#![deny(unaligned_references)]
30-
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
3130

3231
#[macro_use]
3332
extern crate tracing;

compiler/rustc_driver/src/lib.rs

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

1312
#[macro_use]
1413
extern crate tracing;
@@ -847,7 +846,7 @@ Available lint options:
847846
let builtin = sort_lints(sess, builtin);
848847

849848
let (plugin_groups, builtin_groups): (Vec<_>, _) =
850-
lint_store.get_lint_groups().partition(|&(.., p)| p);
849+
lint_store.get_lint_groups().iter().cloned().partition(|&(.., p)| p);
851850
let plugin_groups = sort_lint_groups(plugin_groups);
852851
let builtin_groups = sort_lint_groups(builtin_groups);
853852

compiler/rustc_errors/src/lib.rs

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

1514
#[macro_use]
1615
extern crate rustc_macros;

0 commit comments

Comments
 (0)