diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-16 18:22:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-16 18:22:31 +0200 |
| commit | f40a2807a9a017179f0c2224cb991a370554c7c1 (patch) | |
| tree | 8c26e4a263980eed73eb49d517c7861f3b77a101 | |
| parent | cd21715c3412dc381e386db229cb679015289359 (diff) | |
| parent | 8e4d0ac5518c02bd39435f1766c1b91238caff24 (diff) | |
| download | rust-f40a2807a9a017179f0c2224cb991a370554c7c1.tar.gz rust-f40a2807a9a017179f0c2224cb991a370554c7c1.zip | |
Rollup merge of #63632 - vext01:vext01-comment-fixes, r=eddyb
A couple of comment fixes. This change fixes a couple of comments in the compiler code. The first change was discussed with @eddyb. This one confused me because I thought only *public* defs were in the table (not so). The second was a typo I noticed yesterday. OK to go in?
| -rw-r--r-- | src/librustc/middle/cstore.rs | 3 | ||||
| -rw-r--r-- | src/librustc_metadata/cstore.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc/middle/cstore.rs b/src/librustc/middle/cstore.rs index d37b2367ae7..de84fcd7160 100644 --- a/src/librustc/middle/cstore.rs +++ b/src/librustc/middle/cstore.rs @@ -178,8 +178,7 @@ pub trait MetadataLoader { -> Result<MetadataRef, String>; } -/// A store of Rust crates, through with their metadata -/// can be accessed. +/// A store of Rust crates, through which their metadata can be accessed. /// /// Note that this trait should probably not be expanding today. All new /// functionality should be driven through queries instead! diff --git a/src/librustc_metadata/cstore.rs b/src/librustc_metadata/cstore.rs index 5d8fabc7e69..4ac0a5b94c0 100644 --- a/src/librustc_metadata/cstore.rs +++ b/src/librustc_metadata/cstore.rs @@ -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 |
