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

Do not emit type error after parse error in last statement of block #57383

Closed
estebank opened this issue Jan 6, 2019 · 0 comments · Fixed by #62643
Closed

Do not emit type error after parse error in last statement of block #57383

estebank opened this issue Jan 6, 2019 · 0 comments · Fixed by #62643
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@estebank
Copy link
Contributor

estebank commented Jan 6, 2019

test/ui/parser/issue-19096.stderr should not emit a type error.

@estebank estebank added the A-diagnostics Area: Messages for errors, warnings, and lints label Jan 6, 2019
estebank added a commit to estebank/rust that referenced this issue Jul 13, 2019
When recovering from a parse error inside a block, do not emit type
errors generating on that block's recovered return expression.

Fix rust-lang#57383.
bors added a commit that referenced this issue Jul 14, 2019
Do not emit type errors after parse error in last statement of block

When recovering from a parse error inside a block, do not emit type
errors generating on that block's recovered return expression.

Fix #57383.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant