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

resolve: Avoid emitting redundant path resolution errors #32789

Merged
merged 3 commits into from
Apr 7, 2016

Conversation

jseyfried
Copy link
Contributor

This PR avoids emitting redundant path resolution errors in resolve (fixes #32760).

r? @eddyb

@@ -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
Copy link
Member

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?

Copy link
Contributor Author

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.

@eddyb
Copy link
Member

eddyb commented Apr 7, 2016

r=me with tidy errors fixed.

@jseyfried
Copy link
Contributor Author

@eddyb Thanks for the quick review!
@bors r=eddyb

@bors
Copy link
Contributor

bors commented Apr 7, 2016

📌 Commit d3affc6 has been approved by eddyb

@jseyfried jseyfried force-pushed the fix_duplicate_resolve_errors branch from d3affc6 to 07dac97 Compare April 7, 2016 05:50
@jseyfried
Copy link
Contributor Author

@bors r=eddyb

@bors
Copy link
Contributor

bors commented Apr 7, 2016

📌 Commit 07dac97 has been approved by eddyb

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 7, 2016
…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
bors added a commit that referenced this pull request Apr 7, 2016
Rollup of 7 pull requests

- Successful merges: #32674, #32699, #32711, #32745, #32748, #32757, #32789
- Failed merges:
@bors bors merged commit 07dac97 into rust-lang:master Apr 7, 2016
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.

Duplicate path resolution errors in resolve
3 participants