update cfg(bootstrap)
This commit is contained in:
parent
79b00df93a
commit
2af3ba9a8a
29 changed files with 49 additions and 169 deletions
|
@ -867,7 +867,7 @@ impl<'a, 'tcx> CrateLoader<'a, 'tcx> {
|
|||
// First up we check for global allocators. Look at the crate graph here
|
||||
// and see what's a global allocator, including if we ourselves are a
|
||||
// global allocator.
|
||||
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
|
||||
#[allow(rustc::symbol_intern_string_literal)]
|
||||
let this_crate = Symbol::intern("this crate");
|
||||
|
||||
let mut global_allocator = self.cstore.has_global_allocator.then_some(this_crate);
|
||||
|
|
|
@ -871,7 +871,7 @@ impl MetadataBlob {
|
|||
|
||||
let def_kind = root.tables.def_kind.get(blob, item).unwrap();
|
||||
let def_key = root.tables.def_keys.get(blob, item).unwrap().decode(blob);
|
||||
#[cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
|
||||
#[allow(rustc::symbol_intern_string_literal)]
|
||||
let def_name = if item == CRATE_DEF_INDEX {
|
||||
kw::Crate
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue