You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.18.0 and nightly ICE on invalid code: attempted to bump the parser past EOF (may be stuck in a loop) #43196
$ rustc --version
rustc 1.20.0-nightly (bf0a9e0b4 2017-07-10)
$
$ rustc tmp.rs
error: expected expression, found `<eof>`
--> tmp.rs:1:26
|
1 | fn main () { let x = | } || ^
error: internal compiler error: attempted to bump the parser past EOF (may be stuck in a loop)
--> tmp.rs:1:26
|
1 | fn main () { let x = | } || ^
error: aborting due to 2 previous errors
$
$ rustc-1.18.0 tmp.rs
error: expected expression, found `<eof>`
--> tmp.rs:1:26
|
1 | fn main () { let x = | } || ^
error: internal compiler error: attempted to bump the parser past EOF (may be stuck in a loop)
--> tmp.rs:1:26
|
1 | fn main () { let x = | } || ^
error: aborting due to 2 previous errors
$
$ cat tmp.rs
fn main () { let x = | } |
$
Activity
DanielJin21 commentedon Aug 8, 2017
Even more minimal test case:
fn main() { | } |The parser for some reason is expecting a pattern by end of the second
|.goffrie commentedon Oct 8, 2017
The ICE is fixed in nightly.
Add compile-fail test for rust-lang#43196
Add compile-fail test for rust-lang#43196
Add compile-fail test for rust-lang#43196