]> git.lizzy.rs Git - rust.git/commitdiff
Remove some outdated comments about dependency tracking from cstore_impl.
authorMichael Woerister <michaelwoerister@posteo>
Wed, 9 Oct 2019 14:45:22 +0000 (16:45 +0200)
committerMichael Woerister <michaelwoerister@posteo>
Wed, 9 Oct 2019 14:58:17 +0000 (16:58 +0200)
src/librustc_metadata/cstore_impl.rs

index cc68cc7f56e3cfd9fe1f5a0ac7319802cc845e83..b701933a540cf9b8debb4baa6a2d85f14989543f 100644 (file)
@@ -526,20 +526,10 @@ fn crate_hash_untracked(&self, cnum: CrateNum) -> Svh
     /// parent `DefId` as well as some idea of what kind of data the
     /// `DefId` refers to.
     fn def_key(&self, def: DefId) -> DefKey {
-        // Note: loading the def-key (or def-path) for a def-id is not
-        // a *read* of its metadata. This is because the def-id is
-        // really just an interned shorthand for a def-path, which is the
-        // canonical name for an item.
-        //
-        // self.dep_graph.read(DepNode::MetaData(def));
         self.get_crate_data(def.krate).def_key(def.index)
     }
 
     fn def_path(&self, def: DefId) -> DefPath {
-        // See `Note` above in `def_key()` for why this read is
-        // commented out:
-        //
-        // self.dep_graph.read(DepNode::MetaData(def));
         self.get_crate_data(def.krate).def_path(def.index)
     }