Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a

This commit is contained in:
Jack Moffitt 2014-11-05 12:33:11 -07:00 committed by Glenn Watson
parent 26045d7fcb
commit d1b433a3b3
160 changed files with 1427 additions and 1162 deletions

View file

@ -5,7 +5,7 @@
//! Small vectors in various sizes. These store a certain number of elements inline and fall back
//! to the heap for larger allocations.
use std::mem::init as i;
use std::mem::zeroed as i;
use std::cmp;
use std::fmt;
use std::intrinsics;
@ -153,7 +153,7 @@ pub trait SmallVec<T> : SmallVecPrivate<T> {
let last_index = self.len() - 1;
if (last_index as int) < 0 {
fail!("overflow")
panic!("overflow")
}
let end_ptr = self.begin().offset(last_index as int);
@ -239,7 +239,7 @@ pub trait SmallVec<T> : SmallVecPrivate<T> {
}
fn fail_bounds_check(&self, index: uint) {
fail!("index {} beyond length ({})", index, self.len())
panic!("index {} beyond length ({})", index, self.len())
}
}