diff options
Diffstat (limited to 'src/librustc/lint/context.rs')
| -rw-r--r-- | src/librustc/lint/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs index 55782041be6..5af184385d9 100644 --- a/src/librustc/lint/context.rs +++ b/src/librustc/lint/context.rs @@ -374,7 +374,7 @@ pub fn gather_attr(attr: &ast::Attribute) let meta = &attr.node.value; let metas = match meta.node { - ast::MetaList(_, ref metas) => metas, + ast::MetaItemKind::List(_, ref metas) => metas, _ => { out.push(Err(meta.span)); return out; @@ -383,7 +383,7 @@ pub fn gather_attr(attr: &ast::Attribute) for meta in metas { out.push(match meta.node { - ast::MetaWord(ref lint_name) => Ok((lint_name.clone(), level, meta.span)), + ast::MetaItemKind::Word(ref lint_name) => Ok((lint_name.clone(), level, meta.span)), _ => Err(meta.span), }); } |
