From f6ff3771e39468bd155f6118d3f64d3a89b6105b Mon Sep 17 00:00:00 2001 From: "leonardo.yvens" Date: Sun, 31 Dec 2017 17:25:56 -0200 Subject: [PATCH] Clarify where `is_import` is used. So it's not mistaken for dead code. --- src/librustc/hir/def.rs | 1 + 1 file changed, 1 insertion(+) 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, }