about summary refs log tree commit diff
diff options
context:
space:
mode:
authorleonardo.yvens <leoyvens@gmail.com>2017-12-31 17:25:56 -0200
committerleonardo.yvens <leoyvens@gmail.com>2017-12-31 17:25:56 -0200
commitf6ff3771e39468bd155f6118d3f64d3a89b6105b (patch)
tree616ab4f9ef0c438c451b85a4a09f4c7b54350ae1
parent35681fbc76142856a3475691c042ddec8dec31c5 (diff)
downloadrust-f6ff3771e39468bd155f6118d3f64d3a89b6105b.tar.gz
rust-f6ff3771e39468bd155f6118d3f64d3a89b6105b.zip
Clarify where `is_import` is used.
So it's not mistaken for dead code.
-rw-r--r--src/librustc/hir/def.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc/hir/def.rs b/src/librustc/hir/def.rs
index 19a37b693db..57a7e6c9904 100644
--- a/src/librustc/hir/def.rs
+++ b/src/librustc/hir/def.rs
@@ -132,6 +132,7 @@ pub struct Export {
     /// We include non-`pub` exports for hygienic macros that get used from extern crates.
     pub vis: ty::Visibility,
     /// True if from a `use` or and `extern crate`.
+    /// Used in rustdoc.
     pub is_import: bool,
 }