Skip to content

Fix the E0252 error message to use better names for things. #26385

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
Jun 18, 2015

Conversation

nham
Copy link
Contributor

@nham nham commented Jun 18, 2015

Currently in the E0252 message, traits and modules are all called types (as in "a type named Foo has already been imported", even when Foo was a trait or module). This commit changes that to additionally detect when the import in question is a trait or module and report it accordingly.

Fixes #25396.

Currently in the E0252 message, traits and modules are all called types
(as in "a type named `Foo` has already been imported", even when `Foo` was
a trait or module). This commit changes that to additionally detect when
the import in question is a trait or module and report it accordingly.

Fixes rust-lang#25396.
@rust-highfive
Copy link
Contributor

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@nham
Copy link
Contributor Author

nham commented Jun 18, 2015

This will need to be rebased when #26358 lands. Should I try to rebase it on top of that branch?

@alexcrichton
Copy link
Member

@bors: r+ b637f6b

Thanks!

@bors
Copy link
Collaborator

bors commented Jun 18, 2015

⌛ Testing commit b637f6b with merge f451812...

bors added a commit that referenced this pull request Jun 18, 2015
Currently in the E0252 message, traits and modules are all called types (as in "a type named `Foo` has already been imported", even when `Foo` was a trait or module). This commit changes that to additionally detect when the import in question is a trait or module and report it accordingly.

Fixes #25396.
@bors bors merged commit b637f6b into rust-lang:master Jun 18, 2015
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.

5 participants