diff options
Diffstat (limited to 'src/libsyntax/config.rs')
| -rw-r--r-- | src/libsyntax/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/config.rs b/src/libsyntax/config.rs index 64b16538f05..e849de0b1c6 100644 --- a/src/libsyntax/config.rs +++ b/src/libsyntax/config.rs @@ -373,7 +373,7 @@ impl<'v, 'a, 'b> visit::Visitor<'v> for StmtExprAttrFeatureVisitor<'a, 'b> { if stmt_attrs.len() > 0 { // attributes on items are fine if let ast::StmtDecl(ref decl, _) = s.node { - if let ast::DeclItem(_) = decl.node { + if let ast::DeclKind::Item(_) = decl.node { visit::walk_stmt(self, s); return; } |
