about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-11-01 14:45:41 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-11-01 14:45:41 +0100
commitc674c2c46c140e0e260dfe140ac941d3088e7139 (patch)
tree226a0749dcd192b19dd0c5b198fda8c4c0712642
parentc1cad03c4e2a9041708d3d136b89ad0c848fe497 (diff)
downloadrust-c674c2c46c140e0e260dfe140ac941d3088e7139.tar.gz
rust-c674c2c46c140e0e260dfe140ac941d3088e7139.zip
Hide anonymous allocations from linked artifact
-rw-r--r--src/constant.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constant.rs b/src/constant.rs
index dbe2bb73a4f..ce1d5ed2e61 100644
--- a/src/constant.rs
+++ b/src/constant.rs
@@ -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,