diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-10-22 22:54:18 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-10-24 00:14:50 +0300 |
| commit | 7976aa32a97335f8f15dd70ce3f67adea595dd46 (patch) | |
| tree | 0620738c5454c0efbef1eae64604172352281dbc | |
| parent | faefc83a7a1ca31c4f32feca4f8b0b0b99b9831b (diff) | |
| download | rust-7976aa32a97335f8f15dd70ce3f67adea595dd46.tar.gz rust-7976aa32a97335f8f15dd70ce3f67adea595dd46.zip | |
Minor doc improvements
| -rw-r--r-- | src/librustc/ty/context.rs | 4 | ||||
| -rw-r--r-- | src/librustc/ty/mod.rs | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs index 3dae2aaec7c..1a9f8630632 100644 --- a/src/librustc/ty/context.rs +++ b/src/librustc/ty/context.rs @@ -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>>>, diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs index 0d4a49e95ec..6ea759dee21 100644 --- a/src/librustc/ty/mod.rs +++ b/src/librustc/ty/mod.rs @@ -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)] |
