1
Fork 0

update cfg(bootstrap)

This commit is contained in:
Pietro Albini 2025-01-08 21:26:39 +01:00
parent 79b00df93a
commit 2af3ba9a8a
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C
29 changed files with 49 additions and 169 deletions

View file

@ -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);

View file

@ -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 {