Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc enters infinite loop during compillation of an incomplete program #31933

Closed
WiSaGaN opened this issue Feb 27, 2016 · 2 comments
Closed

Comments

@WiSaGaN
Copy link
Contributor

WiSaGaN commented Feb 27, 2016

Compilation of a simple incomplete program

fn main() {
    match
}

makes the nightly rustc to enter an infinite loop of printing

src/main.rs:3:1: 3:2 error: unexpected token: <eof>
src/main.rs:3 }
^
src/main.rs:3:1: 3:2 error: unexpected token: <eof>
src/main.rs:3 }
^

This only happens in nightly. Stable and beta are fine as of Feb 27, 2016.
This can be reproduced in https://play.rust-lang.org/?gist=3cff960d21a553727434&version=nightly
This may be related to #30128

@durka
Copy link
Contributor

durka commented Feb 27, 2016

likely the same as #31804

@Aatch
Copy link
Contributor

Aatch commented Feb 27, 2016

Duplicate of #31804

@Aatch Aatch closed this as completed Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants