summary refs log tree commit diff
path: root/compiler/rustc_metadata/src/rmeta/decoder
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-05-10 18:23:32 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-05-30 19:54:04 +0200
commit10fb4b2fe538df29ee9729f060db0ca74f6c28fb (patch)
treeef42f89da0c06fceabdce688e1da49e23899ac44 /compiler/rustc_metadata/src/rmeta/decoder
parent5d9f96ab275af964b6c618f6a3bc3cd163b34d23 (diff)
downloadrust-10fb4b2fe538df29ee9729f060db0ca74f6c28fb.tar.gz
rust-10fb4b2fe538df29ee9729f060db0ca74f6c28fb.zip
Restrict access to crate_name.
Also remove original_crate_name, which had the exact same implementation
Diffstat (limited to 'compiler/rustc_metadata/src/rmeta/decoder')
-rw-r--r--compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
index 02d1cf9aec7..67925537aa5 100644
--- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
+++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
@@ -187,7 +187,7 @@ provide! { <'tcx> tcx, def_id, other, cdata,
     foreign_modules => { cdata.get_foreign_modules(tcx) }
     crate_hash => { cdata.root.hash }
     crate_host_hash => { cdata.host_hash }
-    original_crate_name => { cdata.root.name }
+    crate_name => { cdata.root.name }
 
     extra_filename => { cdata.root.extra_filename.clone() }
 
@@ -204,7 +204,6 @@ provide! { <'tcx> tcx, def_id, other, cdata,
         let r = *cdata.dep_kind.lock();
         r
     }
-    crate_name => { cdata.root.name }
     item_children => {
         let mut result = SmallVec::<[_; 8]>::new();
         cdata.each_child_of_item(def_id.index, |child| result.push(child), tcx.sess);