Skip to content

Commit a3cfc62

Browse files
committed
---
yaml --- r: 3190 b: refs/heads/master c: 6f4326c h: refs/heads/master v: v3
1 parent 99714d2 commit a3cfc62

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: fc12577fdd7969f5e9a136915f6ef48e67acd3bc
2+
refs/heads/master: 6f4326c54d4638950d30a72aa2aa4aa4bd42fd21

trunk/src/comp/front/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2125,7 +2125,8 @@ fn parse_inner_attrs_and_next(&parser p) -> tup(vec[ast::attribute],
21252125
fn parse_inner_attrs(&parser p) -> vec[ast::attribute] {
21262126
auto attrs_and_next = parse_inner_attrs_and_next(p);
21272127
if (vec::len(attrs_and_next._1) > 0u) {
2128-
// FIXME: Don't drop this dangling attr on the ground
2128+
ret p.err("expected crate directive but found " +
2129+
token::to_str(p.get_reader(), p.peek()));
21292130
}
21302131
ret attrs_and_next._0;
21312132
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// xfail-stage0
2+
// error-pattern: expected crate directive
3+
4+
#[attr = "val"];
5+
#[attr = "val"] // Unterminated

0 commit comments

Comments
 (0)