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

Allow types passed to [] to coerce, like .index() #40166

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

aidanhs
Copy link
Member

@aidanhs aidanhs commented Mar 1, 2017

Fixes #40085

Basically steals the relevant part of check_argument_types.

@rust-highfive
Copy link
Collaborator

r? @eddyb

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

@eddyb
Copy link
Member

eddyb commented Mar 1, 2017

Huh, did this change at some point? I remember it checking the expression somewhere nested so this wouldn't work. Based on what I see, this looks good. r? @nikomatsakis (in case I'm missing anything)

@nikomatsakis
Copy link
Contributor

seems ok to me, nice :)

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Mar 2, 2017

📌 Commit c58fff2 has been approved by nikomatsakis

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 2, 2017
…tsakis

Allow types passed to [] to coerce, like .index()

Fixes rust-lang#40085

Basically steals the relevant part of [check_argument_types](https://github.com/rust-lang/rust/blob/1.15.1/src/librustc_typeck/check/mod.rs#L2653-L2672).
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 2, 2017
…tsakis

Allow types passed to [] to coerce, like .index()

Fixes rust-lang#40085

Basically steals the relevant part of [check_argument_types](https://github.com/rust-lang/rust/blob/1.15.1/src/librustc_typeck/check/mod.rs#L2653-L2672).
bors added a commit that referenced this pull request Mar 2, 2017
Rollup of 7 pull requests

- Successful merges: #39832, #40104, #40110, #40117, #40129, #40139, #40166
- Failed merges:
@bors bors merged commit c58fff2 into rust-lang:master Mar 2, 2017
@aidanhs aidanhs deleted the aphs-index-coerce branch March 2, 2017 23:54
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