]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
src/librustc_typeck/check/mod.rs

Simple merge