]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #40166 - aidanhs:aphs-index-coerce, r=nikomatsakis
authorCorey Farwell <coreyf@rwell.org>
Thu, 2 Mar 2017 19:53:51 +0000 (14:53 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 19:53:51 +0000 (14:53 -0500)
commitba39e5d905dc5a32c1156db780635612deeb2bd0
treebdaa88e5cf3168fc14db53d0171f74d54094110d
parent05e0d740a22b327f607dd695b43f7547e0d14864
parentc58fff2bb76b055c8276551d54a99aea997c34ed
Rollup merge of #40166 - aidanhs:aphs-index-coerce, r=nikomatsakis

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

Fixes #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).
src/librustc_typeck/check/mod.rs