Skip to content

Commit c6bc5cc

Browse files
committed
Parse auth clauses, drop them on the floor. Nothing exists to use them yet anyways.
1 parent 5f6110a commit c6bc5cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/comp/front/parser.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,6 +2117,15 @@ impure fn parse_crate_directive(str prefix, parser p,
21172117
auto lo = p.get_span();
21182118
auto hi = lo;
21192119
alt (p.peek()) {
2120+
case (token.AUTH) {
2121+
// FIXME: currently dropping auth clauses on the floor,
2122+
// as there is no effect-checking pass.
2123+
p.bump();
2124+
auto n = parse_path(p, GREEDY);
2125+
expect(p, token.EQ);
2126+
auto e = parse_effect(p);
2127+
expect(p, token.SEMI);
2128+
}
21202129
case (token.CONST) {
21212130
auto c = parse_item_const(p);
21222131
ast.index_item(index, c);

0 commit comments

Comments
 (0)