Skip to content

Commit f40a280

Browse files
authored
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?
2 parents cd21715 + 8e4d0ac commit f40a280

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/librustc/middle/cstore.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ pub trait MetadataLoader {
178178
-> Result<MetadataRef, String>;
179179
}
180180

181-
/// A store of Rust crates, through with their metadata
182-
/// can be accessed.
181+
/// A store of Rust crates, through which their metadata can be accessed.
183182
///
184183
/// Note that this trait should probably not be expanding today. All new
185184
/// functionality should be driven through queries instead!

src/librustc_metadata/cstore.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct CrateMetadata {
7070
// whichever `TyCtxt` is being used to decode those values.
7171
pub root: schema::CrateRoot<'static>,
7272

73-
/// For each public item in this crate, we encode a key. When the
73+
/// For each definition in this crate, we encode a key. When the
7474
/// crate is loaded, we read all the keys and put them in this
7575
/// hashmap, which gives the reverse mapping. This allows us to
7676
/// quickly retrace a `DefPath`, which is needed for incremental

0 commit comments

Comments
 (0)