Hide anonymous allocations from linked artifact

This commit is contained in:
bjorn3 2020-11-01 14:45:41 +01:00
parent c1cad03c4e
commit c674c2c46c

View file

@ -276,7 +276,7 @@ fn data_id_for_alloc_id(
) -> DataId {
module
.declare_data(
&format!("__alloc_{:x}", alloc_id.0),
&format!(".L__alloc_{:x}", alloc_id.0),
Linkage::Local,
mutability == rustc_hir::Mutability::Mut,
false,