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

only consider value items when searching for methods, not types #39019

Merged
merged 3 commits into from Jan 18, 2017

Conversation

Projects
None yet
6 participants
@nikomatsakis
Copy link
Contributor

nikomatsakis commented Jan 12, 2017

Fixes #38919

r? @eddyb

@petrochenkov

This comment has been minimized.

Copy link
Contributor

petrochenkov commented Jan 12, 2017

Fixes #38145 as well

@eddyb

This comment has been minimized.

Copy link
Member

eddyb commented Jan 12, 2017

@bors r+

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Jan 12, 2017

📌 Commit 8848c38 has been approved by eddyb

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Jan 13, 2017

@bors r-

Travis...seems unhappy. I'll investigate.

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Jan 17, 2017

@nikomatsakis Time is getting short to backport this.

@brson brson referenced this pull request Jan 17, 2017

Merged

Beta next #39140

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Jan 17, 2017

@brson let's see if travis is happy, but I think it's fixed now

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Jan 17, 2017

So for some reason this particular example, now that it doesn't ICE, triggers an odd path where we try to cite some code from libstd:

note: candidate #1 is defined in the trait `std::iter::Iterator`
  --> src/libcore/iter/iterator.rs:34:5
   |
34 |
   |     ^^^^^^^^^^
   = help: items from traits can only be used if the trait is implemented and in scope; the following traits define an item `Item`, perhaps you need to implement one of them:
   = help: candidate #1: `std::iter::Iterator`
   = help: candidate #2: `std::iter::IntoIterator`
   = help: candidate #3: `std::iter::ZipImpl`
   = help: candidate #4: `core::slice::SliceExt`

(See the snippet for candidate #1)

I don't quite follow what's happening there, but it seems like a pre-existing bug?

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Jan 18, 2017

@bors r=eddyb p=1

  • Beta backport
@bors

This comment has been minimized.

Copy link
Contributor

bors commented Jan 18, 2017

📌 Commit d82d4b6 has been approved by eddyb

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Jan 18, 2017

Accepting for beta backport (tiny patch, regression).

cc @rust-lang/compiler

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Jan 18, 2017

⌛️ Testing commit d82d4b6 with merge be1daa4...

bors added a commit that referenced this pull request Jan 18, 2017

Auto merge of #39019 - nikomatsakis:issue-38919, r=eddyb
only consider value items when searching for methods, not types

Fixes #38919

r? @eddyb
@bors

This comment has been minimized.

Copy link
Contributor

bors commented Jan 18, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: eddyb
Pushing be1daa4 to master...

@bors bors merged commit d82d4b6 into rust-lang:master Jan 18, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details

@brson brson referenced this pull request Jan 19, 2017

Merged

Beta next #39170

@nikomatsakis nikomatsakis deleted the nikomatsakis:issue-38919 branch Apr 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.