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

Improve error message for unexpected EOF #643

Closed
jruderman opened this issue Jul 8, 2011 · 2 comments
Closed

Improve error message for unexpected EOF #643

jruderman opened this issue Jul 8, 2011 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@jruderman
Copy link
Contributor

fn x() { }
fn y() {
fn z() { }

Result:

a.rs:3:9:3:10: error: unexpected token: <eof>

Expected: something like of "missing } after function body which begins on line 2".

@emberian
Copy link
Member

This has been fixed, kinda:

foo.rs:3:9: 3:10 error: file ended with unbalanced delimiters
foo.rs:3 fn z() { }
                  ^

@emberian
Copy link
Member

emberian commented Jun 8, 2013

@catamorphism can this be closed?

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
…n, r=alexcrichton

DragonFly - Change PTHREAD_STACK_MIN from 1 to 16k

This is probably related to cargo failing on DragonFly when running with
multiple jobs.

The minimum pthread stack size has been increase as shown here [1],
which was needed to fix nodejs.

[1]: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/592912cde1dc358bf080ae9aff3eca491688f47c
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
…-rmc (rust-lang#643)

* Added a goto-instrument --drop-unused-functions step to rmc and cargo-rmc

* Added a test that checks the number of asserts

* Marked test as verify-fail till rust-lang#648 is fixed
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) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants