]> git.lizzy.rs Git - rust.git/commitdiff
Fix a comment for the def_path_table.
authorEdd Barrett <vext01@gmail.com>
Fri, 16 Aug 2019 09:14:15 +0000 (10:14 +0100)
committerEdd Barrett <vext01@gmail.com>
Fri, 16 Aug 2019 09:14:15 +0000 (10:14 +0100)
The definition path table contains *all* definitions, not just public
definitions.

src/librustc_metadata/cstore.rs

index 5d8fabc7e69aeac1d01c3fc74c311948d3d2078a..4ac0a5b94c0d897c0cd2e1144afec5e202a43d76 100644 (file)
@@ -70,7 +70,7 @@ pub struct CrateMetadata {
     // whichever `TyCtxt` is being used to decode those values.
     pub root: schema::CrateRoot<'static>,
 
-    /// For each public item in this crate, we encode a key. When the
+    /// For each definition in this crate, we encode a key. When the
     /// crate is loaded, we read all the keys and put them in this
     /// hashmap, which gives the reverse mapping. This allows us to
     /// quickly retrace a `DefPath`, which is needed for incremental