]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #15394 : pcwalton/rust/new-index-traits, r=nick29581
authorbors <bors@rust-lang.org>
Mon, 7 Jul 2014 22:46:41 +0000 (22:46 +0000)
committerbors <bors@rust-lang.org>
Mon, 7 Jul 2014 22:46:41 +0000 (22:46 +0000)
This will break code that used the old `Index` trait. Change this code
to use the new `Index` traits. For reference, here are their signatures:

    pub trait Index<Index,Result> {
        fn index<'a>(&'a self, index: &Index) -> &'a Result;
    }
    pub trait IndexMut<Index,Result> {
        fn index_mut<'a>(&'a mut self, index: &Index) -> &'a mut Result;
    }

Closes #6515.

[breaking-change]

r? @nick29581

1  2 
src/librustc/middle/typeck/check/mod.rs