Skip to content

Rustc does not stop on error. #31804

Closed
Closed

Description

@KalitaAlexey
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)

Activity

  1. added
    A-parserArea: The lexing & parsing of Rust source code to an AST
    on Feb 22, 2016
  2. eddyb commented on Feb 22, 2016

    @eddyb
    Contributor

    cc @nrc I think this is actually a feature.

  3. KalitaAlexey commented on Feb 22, 2016

    @KalitaAlexey
    ContributorAuthor

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

  4. eddyb commented on Feb 22, 2016

    @eddyb
    Contributor

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

  5. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Mar 1, 2016
  6. arielb1 commented on Mar 1, 2016

    @arielb1
    Contributor

    We got to fix that in beta.

  7. nikomatsakis commented on Mar 3, 2016

    @nikomatsakis
    Contributor

    triage: P-high

  8. dimbleby commented on Mar 6, 2016

    @dimbleby

    Introduced by #31555, according to a bisect.

  9. nikomatsakis commented on Mar 16, 2016

    @nikomatsakis
    Contributor

    Reassigning to @nrc now that he's back

  10. added and removed on Mar 24, 2016
  11. added a commit that references this issue on Apr 7, 2016
    9a32f6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-parserArea: The lexing & parsing of Rust source code to an ASTP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions