]> git.lizzy.rs Git - rust.git/commitdiff
Minor doc improvements
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Mon, 22 Oct 2018 19:54:18 +0000 (22:54 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Tue, 23 Oct 2018 21:14:50 +0000 (00:14 +0300)
src/librustc/ty/context.rs
src/librustc/ty/mod.rs

index 3dae2aaec7ceb4b42128cfd432a6270a62c701e3..1a9f86306325f1857a5eded35dce12c4215a7433 100644 (file)
@@ -931,7 +931,9 @@ pub struct GlobalCtxt<'tcx> {
 
     maybe_unused_trait_imports: FxHashSet<DefId>,
     maybe_unused_extern_crates: Vec<(DefId, Span)>,
-    pub extern_prelude: FxHashMap<ast::Name, bool /* introduced by item */>,
+    /// Extern prelude entries. The value is `true` if the entry was introduced
+    /// via `extern crate` item and not `--extern` option or compiler built-in.
+    pub extern_prelude: FxHashMap<ast::Name, bool>,
 
     // Internal cache for metadata decoding. No need to track deps on this.
     pub rcache: Lock<FxHashMap<ty::CReaderCacheKey, Ty<'tcx>>>,
index 0d4a49e95ecde411f2b74095176123b9ed4cc88e..6ea759dee2126ae7d583fad4c4bc57f15d824e0e 100644 (file)
@@ -141,7 +141,9 @@ pub struct Resolutions {
     pub maybe_unused_trait_imports: NodeSet,
     pub maybe_unused_extern_crates: Vec<(NodeId, Span)>,
     pub export_map: ExportMap,
-    pub extern_prelude: FxHashMap<Name, bool /* introduced by item */>,
+    /// Extern prelude entries. The value is `true` if the entry was introduced
+    /// via `extern crate` item and not `--extern` option or compiler built-in.
+    pub extern_prelude: FxHashMap<Name, bool>,
 }
 
 #[derive(Clone, Copy, PartialEq, Eq, Debug)]