Skip to content

don't report errors in constants at every use site #32877

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

Merged
merged 1 commit into from
Apr 14, 2016

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Apr 11, 2016

partially fixes #32842

r? @arielb1
cc @retep998

I chose this way of implementing it, because the alternative (checking if the error span is inside the constant's expressions's span) would get confusing when combined with expression generating macros.

A next step would be to re-enable the re-reporting of errors if the original erroneous constant is in another crate.

@arielb1
Copy link
Contributor

arielb1 commented Apr 12, 2016

I don't think that we need to re-enable the re-reporting, because errors will soon become illegal.

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 12, 2016

📌 Commit d38a58d has been approved by arielb1

@bors
Copy link
Collaborator

bors commented Apr 14, 2016

⌛ Testing commit d38a58d with merge 0cb2ee2...

bors added a commit that referenced this pull request Apr 14, 2016
don't report errors in constants at every use site

partially fixes #32842

r? @arielb1
cc @retep998

I chose this way of implementing it, because the alternative (checking if the error span is inside the constant's expressions's span) would get confusing when combined with expression generating macros.

A next step would be to re-enable the re-reporting of errors if the original erroneous constant is in another crate.
@bors bors merged commit d38a58d into rust-lang:master Apr 14, 2016
@oli-obk oli-obk deleted the const_err_multi branch June 15, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constant evaluation failure reports an error on each use-site
3 participants