Skip to content

Commit 0ee6a96

Browse files
Remove some outdated comments about dependency tracking from cstore_impl.
1 parent 003d5a6 commit 0ee6a96

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustc_metadata/cstore_impl.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -526,20 +526,10 @@ impl CrateStore for cstore::CStore {
526526
/// parent `DefId` as well as some idea of what kind of data the
527527
/// `DefId` refers to.
528528
fn def_key(&self, def: DefId) -> DefKey {
529-
// Note: loading the def-key (or def-path) for a def-id is not
530-
// a *read* of its metadata. This is because the def-id is
531-
// really just an interned shorthand for a def-path, which is the
532-
// canonical name for an item.
533-
//
534-
// self.dep_graph.read(DepNode::MetaData(def));
535529
self.get_crate_data(def.krate).def_key(def.index)
536530
}
537531

538532
fn def_path(&self, def: DefId) -> DefPath {
539-
// See `Note` above in `def_key()` for why this read is
540-
// commented out:
541-
//
542-
// self.dep_graph.read(DepNode::MetaData(def));
543533
self.get_crate_data(def.krate).def_path(def.index)
544534
}
545535

0 commit comments

Comments
 (0)