Parse auth clauses, drop them on the floor. Nothing exists to use them yet anyways.
This commit is contained in:
parent
5f6110a4db
commit
c6bc5cce4b
1 changed files with 9 additions and 0 deletions
|
|
@ -2117,6 +2117,15 @@ impure fn parse_crate_directive(str prefix, parser p,
|
|||
auto lo = p.get_span();
|
||||
auto hi = lo;
|
||||
alt (p.peek()) {
|
||||
case (token.AUTH) {
|
||||
// FIXME: currently dropping auth clauses on the floor,
|
||||
// as there is no effect-checking pass.
|
||||
p.bump();
|
||||
auto n = parse_path(p, GREEDY);
|
||||
expect(p, token.EQ);
|
||||
auto e = parse_effect(p);
|
||||
expect(p, token.SEMI);
|
||||
}
|
||||
case (token.CONST) {
|
||||
auto c = parse_item_const(p);
|
||||
ast.index_item(index, c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue