Rustup to *rustc 1.14.0-nightly (3210fd5c2 2016-10-05)*

This commit is contained in:
mcarton
2016-10-06 17:46:50 +02:00
parent e851bc7404
commit 0475eae1fa
3 changed files with 10 additions and 6 deletions

View File

@@ -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");
}
}