Skip to content

Commit 6041936

Browse files
committed
---
yaml --- r: 5852 b: refs/heads/master c: 880b1ec h: refs/heads/master v: v3
1 parent b2f3992 commit 6041936

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
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: 15d33f7957ff62f8be4e53409c7d131c2c32dfef
2+
refs/heads/master: 880b1ec9f558281facc0757cbe8ab321564cb17b

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,8 +2489,10 @@ fn parse_crate_mod(p: parser, _cfg: ast::crate_cfg) -> @ast::crate {
24892489

24902490
fn parse_str(p: parser) -> str {
24912491
alt p.peek() {
2492-
token::LIT_STR(s) { p.bump(); ret p.get_str(s); }
2493-
_ { fail; }
2492+
token::LIT_STR(s) { p.bump(); p.get_str(s) }
2493+
_ {
2494+
p.fatal("expected string literal")
2495+
}
24942496
}
24952497
}
24962498

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// error-pattern: expected string literal
2+
// Issue #1028
3+
mod ncurses = x;

0 commit comments

Comments
 (0)