Skip to content

Commit 877ebed

Browse files
committed
Visit item macros.
1 parent 22e955a commit 877ebed

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,6 @@ class parser {
26262626
{
26272627
// item macro.
26282628
let pth = self.parse_path_without_tps();
2629-
#error("parsing invocation of %s", *pth.idents[0]);
26302629
self.expect(token::NOT);
26312630
let id = self.parse_ident();
26322631
let tts = self.parse_unspanned_seq(token::LBRACE, token::RBRACE,

src/libsyntax/visit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fn visit_item<E>(i: @item, e: E, v: vt<E>) {
163163
v.visit_ty(m.decl.output, e, v);
164164
}
165165
}
166-
item_mac(_m) { fail "item macros unimplemented" }
166+
item_mac(m) { visit_mac(m, e, v) }
167167
}
168168
}
169169

src/rustc/middle/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ fn found_def_item(i: @ast::item, ns: namespace) -> option<def> {
13521352
}
13531353
}
13541354
ast::item_impl(*) { /* ??? */ }
1355-
ast::item_mac(*) { fail "item macros unimplemented" }
1355+
ast::item_mac(*) { /* ???? */ }
13561356
}
13571357
ret none;
13581358
}
@@ -1660,7 +1660,7 @@ fn index_mod(md: ast::_mod) -> mod_index {
16601660
add_to_index(index, it.ident, mie_item(it));
16611661
}
16621662
ast::item_mac(*) {
1663-
fail "item macros unimplemented"
1663+
/* ??? */
16641664
}
16651665
}
16661666
}

0 commit comments

Comments
 (0)