-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
fix "X is not a member of trait Y" span labels #36429
Conversation
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -257,7 +257,7 @@ fn resolve_struct_error<'b, 'a: 'b, 'c>(resolver: &'b Resolver<'a>, | |||
"type `{}` is not a member of trait `{}`", | |||
type_, | |||
trait_); | |||
err.span_label(span, &format!("not a member of trait `Foo`")); |
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.
Why removing "trait"? I actually find this better with it.
The span labels for associated types and consts were hardcoded to `Foo` rather than substituting the name of the trait. This also normalizes the wording for associated methods', traits', and consts' span labels. Fixes rust-lang#36428.
Travis passed, so I squashed the commits. |
All good for me! |
@bors r=nagisa |
📌 Commit 0a62676 has been approved by |
⌛ Testing commit 0a62676 with merge e9a337d... |
💔 Test failed - auto-win-msvc-64-opt-rustbuild |
bogus On Tue, Sep 13, 2016 at 10:39 PM, bors notifications@github.com wrote:
|
@bors: retry On Tue, Sep 13, 2016 at 7:40 PM, Alex Burka notifications@github.com
|
fix "X is not a member of trait Y" span labels Fixes rust-lang#36428.
Fixes #36428.