-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
resolve: Avoid emitting redundant path resolution errors #32789
Conversation
@@ -15,8 +15,7 @@ fn main() { | |||
enum Stuff { | |||
Bar = foo | |||
//~^ ERROR attempt to use a non-constant value in a constant | |||
//~| ERROR unresolved name `foo` | |||
//~^^^ ERROR constant evaluation error: non-constant path in constant expression | |||
//~^^ ERROR constant evaluation error: non-constant path in constant expression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the const evaluation error triggering for DefError
? Could we suppress that, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe so -- I'll look into it.
r=me with tidy errors fixed. |
📌 Commit d3affc6 has been approved by |
d3affc6
to
07dac97
Compare
@bors r=eddyb |
📌 Commit 07dac97 has been approved by |
…ors, r=eddyb resolve: Avoid emitting redundant path resolution errors This PR avoids emitting redundant path resolution errors in `resolve` (fixes rust-lang#32760). r? @eddyb
This PR avoids emitting redundant path resolution errors in
resolve
(fixes #32760).r? @eddyb