Skip to content

Commit 2af3ba9

Browse files
committed
update cfg(bootstrap)
1 parent 79b00df commit 2af3ba9

File tree

29 files changed

+49
-169
lines changed

29 files changed

+49
-169
lines changed

compiler/rustc_ast/src/util/comments/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use rustc_span::create_default_session_globals_then;
44

compiler/rustc_ast_passes/src/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ fn check_new_solver_banned_features(sess: &Session, features: &Features) {
692692
.find(|feat| feat.gate_name == sym::generic_const_exprs)
693693
.map(|feat| feat.attr_sp)
694694
{
695-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
695+
#[allow(rustc::symbol_intern_string_literal)]
696696
sess.dcx().emit_err(errors::IncompatibleFeatures {
697697
spans: vec![gce_span],
698698
f1: Symbol::intern("-Znext-solver=globally"),

compiler/rustc_hir/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use rustc_data_structures::stable_hasher::Hash64;
44
use rustc_span::def_id::{DefPathHash, StableCrateId};

compiler/rustc_lint/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use rustc_span::{Symbol, create_default_session_globals_then};
44

compiler/rustc_metadata/src/creader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ impl<'a, 'tcx> CrateLoader<'a, 'tcx> {
867867
// First up we check for global allocators. Look at the crate graph here
868868
// and see what's a global allocator, including if we ourselves are a
869869
// global allocator.
870-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
870+
#[allow(rustc::symbol_intern_string_literal)]
871871
let this_crate = Symbol::intern("this crate");
872872

873873
let mut global_allocator = self.cstore.has_global_allocator.then_some(this_crate);

compiler/rustc_metadata/src/rmeta/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ impl MetadataBlob {
871871

872872
let def_kind = root.tables.def_kind.get(blob, item).unwrap();
873873
let def_key = root.tables.def_keys.get(blob, item).unwrap().decode(blob);
874-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
874+
#[allow(rustc::symbol_intern_string_literal)]
875875
let def_name = if item == CRATE_DEF_INDEX {
876876
kw::Crate
877877
} else {

compiler/rustc_parse/src/parser/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use std::assert_matches::assert_matches;
44
use std::io::prelude::*;

compiler/rustc_parse/src/parser/tokenstream/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use rustc_ast::token::{self, IdentIsRaw};
44
use rustc_ast::tokenstream::{TokenStream, TokenTree};

compiler/rustc_resolve/src/late/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3155,7 +3155,7 @@ impl<'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
31553155
}
31563156
}
31573157

3158-
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
3158+
#[allow(rustc::symbol_intern_string_literal)]
31593159
let existing_name = match &in_scope_lifetimes[..] {
31603160
[] => Symbol::intern("'a"),
31613161
[(existing, _)] => existing.name,

compiler/rustc_span/src/edit_distance/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
1+
#![allow(rustc::symbol_intern_string_literal)]
22

33
use super::*;
44

0 commit comments

Comments
 (0)