Skip to content

Unhelpful error message with missing semicolon #3036

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

Closed
jruderman opened this issue Jul 26, 2012 · 1 comment
Closed

Unhelpful error message with missing semicolon #3036

jruderman opened this issue Jul 26, 2012 · 1 comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@jruderman
Copy link
Contributor

fn main()
{
    let x = 3
}

gives me

/Users/jruderman/Desktop/unhelpful_parse_error_missing_semi.rs:4:0: 4:1 error: expected `` but found `}`
/Users/jruderman/Desktop/unhelpful_parse_error_missing_semi.rs:4 }
                                                                 ^

It expected the empty string?

@brson brson closed this as completed in ef29f7f Jul 30, 2012
@brson
Copy link
Contributor

brson commented Jul 30, 2012

The lexer token stringifier was writing semicolons as empty strings.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Combine chain items only when the item gets orphaned otherwise
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 22, 2023
automatically start and stop josh in rustc-pull/push

Let's make use of the fact that this is not a shell script any more. :)
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Upgrade toolchain to 2024-02-17. Relevant PRs:

rust-lang#120872

rust-lang#120594

Resolves rust-lang#3028 

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

2 participants