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 does not stop on error. #31804

Closed
KalitaAlexey opened this issue Feb 21, 2016 · 7 comments
Closed

Rustc does not stop on error. #31804

KalitaAlexey opened this issue Feb 21, 2016 · 7 comments
Assignees
Labels
A-parser Area: The parsing of Rust source code to an AST P-high High priority regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@KalitaAlexey
Copy link
Contributor

fn main() {
    println!("Hello, world!");
    let
}

It outputs

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

again and again. It does not stop.

rustc 1.8.0-nightly (57c357d89 2016-02-16)
@Aatch Aatch added A-parser Area: The parsing of Rust source code to an AST regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. labels Feb 22, 2016
@eddyb
Copy link
Member

eddyb commented Feb 22, 2016

cc @nrc I think this is actually a feature.

@KalitaAlexey
Copy link
Contributor Author

@eddyb What do you mean by feature? The Compiler does not stop. It spins three cores.

@eddyb
Copy link
Member

eddyb commented Feb 22, 2016

@KalitaAlexey so it does this in a loop? My bad, I didn't understand.

@arielb1
Copy link
Contributor

arielb1 commented Mar 1, 2016

We got to fix that in beta.

@nikomatsakis
Copy link
Contributor

triage: P-high

@dimbleby
Copy link

dimbleby commented Mar 6, 2016

Introduced by #31555, according to a bisect.

@nikomatsakis
Copy link
Contributor

Reassigning to @nrc now that he's back

@sfackler sfackler added regression-from-stable-to-beta Performance or correctness regression from stable to beta. and removed regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. labels Mar 24, 2016
@bors bors closed this as completed in 3ee841c Mar 26, 2016
pnkfelix pushed a commit to pnkfelix/rust that referenced this issue Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area: The parsing of Rust source code to an AST P-high High priority regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

10 participants