diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-07-03 14:32:41 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-07-07 11:43:23 -0700 |
| commit | 7e4e99123a68c92f684e5c4466101c1951e86895 (patch) | |
| tree | 270c38b9308597595fc05b233e25ef8252628439 /src/etc/vim/syntax | |
| parent | 4f120e6bafe971452adfede158a7957b00562a4e (diff) | |
| download | rust-7e4e99123a68c92f684e5c4466101c1951e86895.tar.gz rust-7e4e99123a68c92f684e5c4466101c1951e86895.zip | |
librustc (RFC #34): Implement the new `Index` and `IndexMut` traits.
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]
Diffstat (limited to 'src/etc/vim/syntax')
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index a15bd3ca60f..6285eb6895d 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -65,7 +65,7 @@ syn keyword rustTrait Copy Send Sized Share syn keyword rustTrait Add Sub Mul Div Rem Neg Not syn keyword rustTrait BitAnd BitOr BitXor syn keyword rustTrait Drop Deref DerefMut -syn keyword rustTrait Shl Shr Index +syn keyword rustTrait Shl Shr Index IndexMut syn keyword rustEnum Option syn keyword rustEnumVariant Some None syn keyword rustEnum Result |
