Hacky rustup

This commit is contained in:
Oliver Scherer
2019-03-26 10:55:03 +01:00
parent 61aa5c957c
commit d020565ed2
16 changed files with 91 additions and 123 deletions

View File

@@ -863,7 +863,7 @@ pub fn is_refutable(cx: &LateContext<'_, '_>, pat: &Pat) -> bool {
fn is_enum_variant(cx: &LateContext<'_, '_>, qpath: &QPath, id: HirId) -> bool {
matches!(
cx.tables.qpath_def(qpath, id),
def::Def::Variant(..) | def::Def::VariantCtor(..)
def::Def::Variant(..) | def::Def::Ctor(_, def::CtorOf::Variant, _)
)
}