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

Duplicated error messages for static initializers #51970

Closed
alexreg opened this issue Jul 1, 2018 · 0 comments · Fixed by #52016
Closed

Duplicated error messages for static initializers #51970

alexreg opened this issue Jul 1, 2018 · 0 comments · Fixed by #52016
Assignees
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@alexreg
Copy link
Contributor

alexreg commented Jul 1, 2018

The error message could not evaluate static initializer is oddly reported twice for some static initializers (see tests src/test/compile-fail/issue-14227.rs and src/test/compile-fail/issue-28324.rs, for example).

This was discovered in #51110, and the suspected cause is a change @oli-obk recently made to error reporting.

CC @oli-obk @eddyb

@estebank estebank added the A-diagnostics Area: Messages for errors, warnings, and lints label Jul 2, 2018
@oli-obk oli-obk self-assigned this Jul 2, 2018
kennytm added a commit to kennytm/rust that referenced this issue Jul 6, 2018
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.

3 participants