diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2015-11-15 17:17:50 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2015-11-26 21:46:12 +0100 |
| commit | f0beba0217ad4ac748e93f7ea8d16c3b1fc4db1d (patch) | |
| tree | 2a4fd2d32a7e5c6a3943ca3fae4c967fe58b5e4c /src/libsyntax/visit.rs | |
| parent | 2a8f358de7ee71934b8129dff5d908730454d7b1 (diff) | |
Moved and refactored ThinAttributes
Diffstat (limited to 'src/libsyntax/visit.rs')
| -rw-r--r-- | src/libsyntax/visit.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 2d97e2680d7..cdc11fb2c1c 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -25,6 +25,7 @@ use abi::Abi; use ast::*; +use attr::ThinAttributesExt; use codemap::Span; #[derive(Copy, Clone, PartialEq, Eq)] @@ -630,7 +631,7 @@ pub fn walk_stmt<'v, V: Visitor<'v>>(visitor: &mut V, statement: &'v Stmt) { } StmtMac(ref mac, _, ref attrs) => { visitor.visit_mac(mac); - for attr in attrs.as_attrs() { + for attr in attrs.as_attr_slice() { visitor.visit_attribute(attr); } } |
