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

Projects
None yet
5 participants
@aidanhs
Copy link
Member

aidanhs commented Mar 1, 2017

Fixes #40085

Basically steals the relevant part of check_argument_types.

@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Mar 1, 2017

r? @eddyb

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

@eddyb

This comment has been minimized.

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 aidanhs:aphs-index-coerce branch from b1c5946 to 93ce74b Mar 1, 2017

@aidanhs aidanhs force-pushed the aidanhs:aphs-index-coerce branch from 93ce74b to c58fff2 Mar 1, 2017

@nikomatsakis

This comment has been minimized.

Copy link
Contributor

nikomatsakis commented Mar 2, 2017

seems ok to me, nice :)

@nikomatsakis

This comment has been minimized.

Copy link
Contributor

nikomatsakis commented Mar 2, 2017

@bors r+

@bors

This comment has been minimized.

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

Rollup merge of rust-lang#40166 - aidanhs:aphs-index-coerce, r=nikoma…
…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

Rollup merge of rust-lang#40166 - aidanhs:aphs-index-coerce, r=nikoma…
…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

Auto merge of #40216 - frewsxcv:rollup, r=frewsxcv
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

1 check passed

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

@aidanhs aidanhs deleted the aidanhs:aphs-index-coerce branch Mar 2, 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.