Skip to content

Commit 7976aa3

Browse files
committed
Minor doc improvements
1 parent faefc83 commit 7976aa3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/librustc/ty/context.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,9 @@ pub struct GlobalCtxt<'tcx> {
931931

932932
maybe_unused_trait_imports: FxHashSet<DefId>,
933933
maybe_unused_extern_crates: Vec<(DefId, Span)>,
934-
pub extern_prelude: FxHashMap<ast::Name, bool /* introduced by item */>,
934+
/// Extern prelude entries. The value is `true` if the entry was introduced
935+
/// via `extern crate` item and not `--extern` option or compiler built-in.
936+
pub extern_prelude: FxHashMap<ast::Name, bool>,
935937

936938
// Internal cache for metadata decoding. No need to track deps on this.
937939
pub rcache: Lock<FxHashMap<ty::CReaderCacheKey, Ty<'tcx>>>,

src/librustc/ty/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ pub struct Resolutions {
141141
pub maybe_unused_trait_imports: NodeSet,
142142
pub maybe_unused_extern_crates: Vec<(NodeId, Span)>,
143143
pub export_map: ExportMap,
144-
pub extern_prelude: FxHashMap<Name, bool /* introduced by item */>,
144+
/// Extern prelude entries. The value is `true` if the entry was introduced
145+
/// via `extern crate` item and not `--extern` option or compiler built-in.
146+
pub extern_prelude: FxHashMap<Name, bool>,
145147
}
146148

147149
#[derive(Clone, Copy, PartialEq, Eq, Debug)]

0 commit comments

Comments
 (0)