Rustup to *rustc 1.14.0-nightly (3210fd5c2 2016-10-05)*
This commit is contained in:
@@ -60,7 +60,7 @@ impl EnumGlobUse {
|
||||
} else {
|
||||
let child = cx.sess().cstore.item_children(def.full_def().def_id());
|
||||
if let Some(child) = child.first() {
|
||||
if let Some(Def::Variant(..)) = cx.tcx.sess.cstore.describe_def(child.def_id) {
|
||||
if let Def::Variant(..) = child.def {
|
||||
span_lint(cx, ENUM_GLOB_USE, item.span, "don't use glob imports for enum variants");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user