Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
aidanhs:aphs-index-coerce
Mar 2, 2017
Merged

Allow types passed to [] to coerce, like .index()#40166
bors merged 1 commit into
rust-lang:masterfrom
aidanhs:aphs-index-coerce

Conversation

@aidanhs

Copy link
Copy Markdown
Contributor

Fixes#40085

Basically steals the relevant part of check_argument_types.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @eddyb

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

@eddyb

eddyb commented Mar 1, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

seems ok to me, nice :)

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Mar 2, 2017

Copy link
Copy Markdown
Collaborator

📌 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()
Fixesrust-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).
@frewsxcvfrewsxcv mentioned this pull request Mar 2, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 2, 2017
…tsakis
Allow types passed to [] to coerce, like .index()
Fixesrust-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).
@frewsxcvfrewsxcv mentioned this pull request Mar 2, 2017
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:masterMar 2, 2017
@aidanhs
aidanhs deleted the aphs-index-coerce branch March 2, 2017 23:54
Sign up for freeto 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

@aidanhs@rust-highfive@eddyb@nikomatsakis@bors