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

Add trait name to conflicting implementation error message #8223

Closed
wants to merge 2 commits into from

Conversation

davidhalperin
Copy link
Contributor

Closes #7907

This is my first pull request so let me know if I've done anything wrong. I tried to pick off a nice easy one.

"conflicting implementations for a trait");
session.span_err(
self.span_of_impl(implementation_b),
fmt!("conflicting implementations for trait %s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: usually we use backticks around identifiers in error messages

@davidhalperin
Copy link
Contributor Author

@pcwalton Ok, I'll fix that when I get home tonight.

@davidhalperin
Copy link
Contributor Author

@pcwalton backticks added.

@jdm
Copy link
Contributor

jdm commented Aug 3, 2013

💃

bors added a commit that referenced this pull request Aug 3, 2013
Closes #7907

This is my first pull request so let me know if I've done anything wrong.  I tried to pick off a nice easy one.
@bors bors closed this Aug 3, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 13, 2022
Remove in_macro from clippy_utils

changelog: none

Previously done in rust-lang#7897 but reverted in rust-lang#8170. I'd like to keep `in_macro` out of utils because if a span is from expansion in any way (desugaring or macro), we should not proceed without understanding the nature of the expansion IMO.

r? `@llogiq`
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.

Conflicting issues for a trait error should name the trait
5 participants