Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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)

@rust-highfive rust-highfive assigned nikomatsakis and unassigned eddyb Mar 1, 2017
@aidanhs aidanhs force-pushed the aphs-index-coerce branch from b1c5946 to 93ce74b Compare March 1, 2017 00:14
@aidanhs aidanhs force-pushed the aphs-index-coerce branch from 93ce74b to c58fff2 Compare March 1, 2017 00:15
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants