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

fix "X is not a member of trait Y" span labels #36429

Merged
merged 1 commit into from
Sep 15, 2016
Merged

Conversation

durka
Copy link
Contributor

@durka durka commented Sep 12, 2016

Fixes #36428.

@rust-highfive
Copy link
Collaborator

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`"));
Copy link
Member

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.
@durka durka changed the title fix span label for trait nonmember error fix "X is not a member of trait Y" span labels Sep 13, 2016
@durka
Copy link
Contributor Author

durka commented Sep 13, 2016

Travis passed, so I squashed the commits.

@GuillaumeGomez
Copy link
Member

All good for me!

@nikomatsakis
Copy link
Contributor

@bors r=nagisa

@bors
Copy link
Contributor

bors commented Sep 13, 2016

📌 Commit 0a62676 has been approved by nagisa

@bors
Copy link
Contributor

bors commented Sep 14, 2016

⌛ Testing commit 0a62676 with merge e9a337d...

@bors
Copy link
Contributor

bors commented Sep 14, 2016

💔 Test failed - auto-win-msvc-64-opt-rustbuild

@durka
Copy link
Contributor Author

durka commented Sep 14, 2016

bogus

On Tue, Sep 13, 2016 at 10:39 PM, bors notifications@github.com wrote:

💔 Test failed - auto-win-msvc-64-opt-rustbuild
https://buildbot.rust-lang.org/builders/auto-win-msvc-64-opt-rustbuild/builds/2490


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#36429 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAC3n9ZQNcuqp0KwY5HoGk9dq2SbGj-lks5qp15WgaJpZM4J7Edu
.

@alexcrichton
Copy link
Member

@bors: retry

On Tue, Sep 13, 2016 at 7:40 PM, Alex Burka notifications@github.com
wrote:

bogus

On Tue, Sep 13, 2016 at 10:39 PM, bors notifications@github.com wrote:

💔 Test failed - auto-win-msvc-64-opt-rustbuild
<https://buildbot.rust-lang.org/builders/auto-win-msvc-64-
opt-rustbuild/builds/2490>


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#36429 (comment),
or mute
the thread
<https://github.com/notifications/unsubscribe-auth/
AAC3n9ZQNcuqp0KwY5HoGk9dq2SbGj-lks5qp15WgaJpZM4J7Edu>
.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#36429 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD95M3P666dUf3fqXLnw8zjIkj1NSEXks5qp16zgaJpZM4J7Edu
.

Manishearth added a commit to Manishearth/rust that referenced this pull request Sep 15, 2016
fix "X is not a member of trait Y" span labels

Fixes rust-lang#36428.
bors added a commit that referenced this pull request Sep 15, 2016
Rollup of 9 pull requests

- Successful merges: #36384, #36405, #36425, #36429, #36438, #36454, #36459, #36461, #36463
- Failed merges: #36444
@bors bors merged commit 0a62676 into rust-lang:master Sep 15, 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.

8 participants