]> git.lizzy.rs Git - rust.git/commit
Auto merge of #47167 - ivanbakel:builtin_indexing, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 10 Jan 2018 12:29:05 +0000 (12:29 +0000)
committerbors <bors@rust-lang.org>
Wed, 10 Jan 2018 12:29:05 +0000 (12:29 +0000)
commitf62f774035735a06c880c48c0b9017fcc0577e33
treef9951a684aed69cbec2e1f5876f25bba59789945
parent27ede55414e01f13c6869a8763da207e544cc6ad
parent6132806d361dce863a220e278c568f83b72a3c8a
Auto merge of #47167 - ivanbakel:builtin_indexing, r=nikomatsakis

Fix built-in indexing not being used where index type wasn't "obviously" usize

Fixes #33903
Fixes #46095

This PR was made possible thanks to the generous help of @eddyb

Following the example of binary operators, builtin checking for indexing has been moved from the typecheck stage to a writeback stage, after type constraints have been resolved.
src/librustc_typeck/check/mod.rs