Skip to content

Commit 00e5abe

Browse files
committed
allow potential_query_instability everywhere
1 parent 80fe0bb commit 00e5abe

File tree

32 files changed

+37
-3
lines changed

32 files changed

+37
-3
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#![feature(box_patterns)]
3535
#![feature(iter_zip)]
3636
#![recursion_limit = "256"]
37+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
3738

3839
use rustc_ast::node_id::NodeMap;
3940
use rustc_ast::token::{self, Token};

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
@@ -12,6 +12,7 @@
1212
#![feature(trusted_step)]
1313
#![feature(try_blocks)]
1414
#![recursion_limit = "256"]
15+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1516

1617
#[macro_use]
1718
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
@@ -7,6 +7,7 @@
77
#![feature(nll)]
88
#![feature(associated_type_bounds)]
99
#![recursion_limit = "256"]
10+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1011

1112
//! This crate contains codegen code that is used by all codegen backends (LLVM and others).
1213
//! 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
@@ -23,6 +23,7 @@ Rust MIR: a lowered representation of Rust.
2323
#![feature(trusted_step)]
2424
#![feature(try_blocks)]
2525
#![recursion_limit = "256"]
26+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
2627

2728
#[macro_use]
2829
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
@@ -9,6 +9,7 @@
99
#![feature(format_args_capture)]
1010
#![feature(iter_zip)]
1111
#![feature(nll)]
12+
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
1213

1314
#[macro_use]
1415
extern crate rustc_macros;

0 commit comments

Comments
 (0)