auto merge of #13020 : alexcrichton/rust/vec, r=brson
The commits have the details.
This commit is contained in:
commit
b568efc0cf
183 changed files with 12 additions and 231 deletions
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use std::vec::Vec;
|
||||
|
||||
fn main() {
|
||||
let mut v = vec!(1);
|
||||
let f = || v.push(2);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
use std::cell::Cell;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::vec::Vec;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct DerefCounter<T> {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@
|
|||
static CONSTEXPR: *int = &'static 413 as *_;
|
||||
|
||||
pub fn main() {
|
||||
use std::vec::Vec;
|
||||
|
||||
let x: Vec<_> = range(0u, 5).collect();
|
||||
assert_eq!(x.as_slice(), &[0u,1,2,3,4]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue