Remove outdated and unnecessary std::vec_ng::Vec imports.
(And fix some tests.)
This commit is contained in:
parent
af79a5aa7d
commit
6d778ff610
168 changed files with 26 additions and 273 deletions
|
@ -21,7 +21,6 @@ extern crate getopts;
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::fs;
|
use std::io::fs;
|
||||||
use getopts::{optopt, optflag, reqopt};
|
use getopts::{optopt, optflag, reqopt};
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::io::{BufferedReader, File};
|
use std::io::{BufferedReader, File};
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
|
pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ use common::config;
|
||||||
use common;
|
use common;
|
||||||
use util;
|
use util;
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub struct TestProps {
|
pub struct TestProps {
|
||||||
// Lines that should be expected, in order, on standard out
|
// Lines that should be expected, in order, on standard out
|
||||||
error_patterns: Vec<~str> ,
|
error_patterns: Vec<~str> ,
|
||||||
|
|
|
@ -33,8 +33,7 @@ use std::os;
|
||||||
use std::str;
|
use std::str;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::slice;
|
use std::slice;
|
||||||
use std::vec_ng;
|
use std::vec;
|
||||||
|
|
||||||
use test::MetricMap;
|
use test::MetricMap;
|
||||||
|
|
||||||
pub fn run(config: config, testfile: ~str) {
|
pub fn run(config: config, testfile: ~str) {
|
||||||
|
|
|
@ -489,7 +489,6 @@ impl<T> Drop for TypedArena<T> {
|
||||||
mod tests {
|
mod tests {
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
use self::test::BenchHarness;
|
use self::test::BenchHarness;
|
||||||
use super::{Arena, TypedArena};
|
use super::{Arena, TypedArena};
|
||||||
|
|
|
@ -903,7 +903,6 @@ mod tests {
|
||||||
|
|
||||||
use std::result::{Err, Ok};
|
use std::result::{Err, Ok};
|
||||||
use std::result;
|
use std::result;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn check_fail_type(f: Fail_, ft: FailType) {
|
fn check_fail_type(f: Fail_, ft: FailType) {
|
||||||
match f {
|
match f {
|
||||||
|
|
|
@ -583,7 +583,6 @@ mod tests {
|
||||||
use super::{Arc, RWArc, MutexArc, CowArc};
|
use super::{Arc, RWArc, MutexArc, CowArc};
|
||||||
|
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn manually_share_arc() {
|
fn manually_share_arc() {
|
||||||
|
|
|
@ -765,7 +765,6 @@ mod tests {
|
||||||
use std::result;
|
use std::result;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::comm::Empty;
|
use std::comm::Empty;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* Semaphore tests
|
* Semaphore tests
|
||||||
|
|
|
@ -563,7 +563,7 @@ fn format(val: Param, op: FormatOp, flags: Flags) -> Result<Vec<u8> ,~str> {
|
||||||
mod test {
|
mod test {
|
||||||
use super::{expand,String,Variables,Number};
|
use super::{expand,String,Variables,Number};
|
||||||
use std::result::Ok;
|
use std::result::Ok;
|
||||||
use std::vec_ng;
|
use std::vec;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_basic_setabf() {
|
fn test_basic_setabf() {
|
||||||
|
|
|
@ -538,7 +538,6 @@ mod test {
|
||||||
Version5Sha1};
|
Version5Sha1};
|
||||||
use std::str;
|
use std::str;
|
||||||
use std::io::MemWriter;
|
use std::io::MemWriter;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_nil() {
|
fn test_nil() {
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
use std::libc;
|
use std::libc;
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
#[link(name="rustrt")]
|
#[link(name="rustrt")]
|
||||||
extern {
|
extern {
|
||||||
pub fn rust_get_test_int() -> libc::intptr_t;
|
pub fn rust_get_test_int() -> libc::intptr_t;
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
pub mod kitties {
|
pub mod kitties {
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub struct cat<U> {
|
pub struct cat<U> {
|
||||||
priv info : Vec<U> ,
|
priv info : Vec<U> ,
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub struct Entry<A,B> {
|
pub struct Entry<A,B> {
|
||||||
key: A,
|
key: A,
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#[crate_id="cci_no_inline_lib"];
|
#[crate_id="cci_no_inline_lib"];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
// same as cci_iter_lib, more-or-less, but not marked inline
|
// same as cci_iter_lib, more-or-less, but not marked inline
|
||||||
pub fn iter(v: Vec<uint> , f: |uint|) {
|
pub fn iter(v: Vec<uint> , f: |uint|) {
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
extern crate collections;
|
extern crate collections;
|
||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
use collections::HashMap;
|
use collections::HashMap;
|
||||||
|
|
||||||
pub type header_map = HashMap<~str, @RefCell<Vec<@~str>>>;
|
pub type header_map = HashMap<~str, @RefCell<Vec<@~str>>>;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub unsafe fn f(xs: Vec<int> ) {
|
pub unsafe fn f(xs: Vec<int> ) {
|
||||||
xs.map(|_x| { unsafe fn q() { fail!(); } });
|
xs.map(|_x| { unsafe fn q() { fail!(); } });
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = os::args();
|
let args = os::args();
|
||||||
|
|
|
@ -24,7 +24,6 @@ use std::comm;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn move_out<T>(_x: T) {}
|
fn move_out<T>(_x: T) {}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ extern crate time;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn move_out<T>(_x: T) {}
|
fn move_out<T>(_x: T) {}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ use sync::MutexArc;
|
||||||
use sync::Future;
|
use sync::Future;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
// A poor man's pipe.
|
// A poor man's pipe.
|
||||||
type pipe = MutexArc<Vec<uint> >;
|
type pipe = MutexArc<Vec<uint> >;
|
||||||
|
|
|
@ -22,7 +22,6 @@ use sync::RWArc;
|
||||||
use sync::Future;
|
use sync::Future;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
// A poor man's pipe.
|
// A poor man's pipe.
|
||||||
type pipe = RWArc<Vec<uint> >;
|
type pipe = RWArc<Vec<uint> >;
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn ack(m: int, n: int) -> int {
|
fn ack(m: int, n: int) -> int {
|
||||||
if m == 0 {
|
if m == 0 {
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
use std::option;
|
use std::option;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn print_complements() {
|
fn print_complements() {
|
||||||
let all = [Blue, Red, Yellow];
|
let all = [Blue, Red, Yellow];
|
||||||
|
|
|
@ -18,7 +18,6 @@ use std::io;
|
||||||
use std::io::{BufferedWriter, File};
|
use std::io::{BufferedWriter, File};
|
||||||
use std::cmp::min;
|
use std::cmp::min;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
static LINE_LENGTH: uint = 60;
|
static LINE_LENGTH: uint = 60;
|
||||||
static IM: u32 = 139968;
|
static IM: u32 = 139968;
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn fib(n: int) -> int {
|
fn fib(n: int) -> int {
|
||||||
if n < 2 {
|
if n < 2 {
|
||||||
|
|
|
@ -24,7 +24,7 @@ use std::os;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::str;
|
use std::str;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::slice;
|
use std::vec;
|
||||||
|
|
||||||
fn f64_cmp(x: f64, y: f64) -> Ordering {
|
fn f64_cmp(x: f64, y: f64) -> Ordering {
|
||||||
// arbitrarily decide that NaNs are larger than everything.
|
// arbitrarily decide that NaNs are larger than everything.
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
// Utilities.
|
// Utilities.
|
||||||
//
|
//
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
// returns an infinite iterator of repeated applications of f to x,
|
// returns an infinite iterator of repeated applications of f to x,
|
||||||
// i.e. [x, f(x), f(f(x)), ...], as haskell iterate function.
|
// i.e. [x, f(x), f(f(x)), ...], as haskell iterate function.
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
static PI: f64 = 3.141592653589793;
|
static PI: f64 = 3.141592653589793;
|
||||||
static SOLAR_MASS: f64 = 4.0 * PI * PI;
|
static SOLAR_MASS: f64 = 4.0 * PI * PI;
|
||||||
|
|
|
@ -25,7 +25,6 @@ use std::os;
|
||||||
use std::result::{Ok, Err};
|
use std::result::{Ok, Err};
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn fib(n: int) -> int {
|
fn fib(n: int) -> int {
|
||||||
fn pfib(tx: &Sender<int>, n: int) {
|
fn pfib(tx: &Sender<int>, n: int) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ use std::from_str::FromStr;
|
||||||
use std::iter::count;
|
use std::iter::count;
|
||||||
use std::cmp::min;
|
use std::cmp::min;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::slice::from_elem;
|
|
||||||
use sync::RWArc;
|
use sync::RWArc;
|
||||||
|
|
||||||
fn A(i: uint, j: uint) -> f64 {
|
fn A(i: uint, j: uint) -> f64 {
|
||||||
|
@ -49,7 +48,7 @@ fn mult(v: RWArc<Vec<f64>>,
|
||||||
spawn(proc() {
|
spawn(proc() {
|
||||||
for i in range(chk, min(len, chk + chunk)) {
|
for i in range(chk, min(len, chk + chunk)) {
|
||||||
let val = v.read(|v| f(v, i));
|
let val = v.read(|v| f(v, i));
|
||||||
out.write(|out| out[i] = val);
|
out.write(|out| *out.get_mut(i) = val);
|
||||||
}
|
}
|
||||||
drop(tx)
|
drop(tx)
|
||||||
});
|
});
|
||||||
|
@ -98,15 +97,16 @@ fn main() {
|
||||||
} else {
|
} else {
|
||||||
FromStr::from_str(args[1]).unwrap()
|
FromStr::from_str(args[1]).unwrap()
|
||||||
};
|
};
|
||||||
let u = RWArc::new(from_elem(n, 1.));
|
let u = RWArc::new(Vec::from_elem(n, 1.));
|
||||||
let v = RWArc::new(from_elem(n, 1.));
|
let v = RWArc::new(Vec::from_elem(n, 1.));
|
||||||
let tmp = RWArc::new(from_elem(n, 1.));
|
let tmp = RWArc::new(Vec::from_elem(n, 1.));
|
||||||
for _ in range(0, 10) {
|
for _ in range(0, 10) {
|
||||||
mult_AtAv(u.clone(), v.clone(), tmp.clone());
|
mult_AtAv(u.clone(), v.clone(), tmp.clone());
|
||||||
mult_AtAv(v.clone(), u.clone(), tmp.clone());
|
mult_AtAv(v.clone(), u.clone(), tmp.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
u.read(|u| v.read(|v| {
|
u.read(|u| v.read(|v| {
|
||||||
println!("{:.9f}", (dot(*u, *v) / dot(*v, *v)).sqrt());
|
println!("{:.9f}",
|
||||||
|
(dot(u.as_slice(), v.as_slice()) / dot(v.as_slice(), v.as_slice())).sqrt());
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@ extern crate time;
|
||||||
use collections::SmallIntMap;
|
use collections::SmallIntMap;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn append_sequential(min: uint, max: uint, map: &mut SmallIntMap<uint>) {
|
fn append_sequential(min: uint, max: uint, map: &mut SmallIntMap<uint>) {
|
||||||
for i in range(min, max) {
|
for i in range(min, max) {
|
||||||
|
|
|
@ -70,6 +70,7 @@ impl Sudoku {
|
||||||
|
|
||||||
let mut g = Vec::from_fn(10u, { |_i| vec!(0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8) });
|
let mut g = Vec::from_fn(10u, { |_i| vec!(0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8) });
|
||||||
for line in reader.lines() {
|
for line in reader.lines() {
|
||||||
|
let line = line.unwrap();
|
||||||
let comps: Vec<&str> = line.trim().split(',').collect();
|
let comps: Vec<&str> = line.trim().split(',').collect();
|
||||||
|
|
||||||
if comps.len() == 3u {
|
if comps.len() == 3u {
|
||||||
|
|
|
@ -17,8 +17,7 @@ use collections::list::{List, Cons, Nil};
|
||||||
use time::precise_time_s;
|
use time::precise_time_s;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::vec_ng::Vec;
|
use std::vec;
|
||||||
use std::vec_ng;
|
|
||||||
|
|
||||||
enum UniqueList {
|
enum UniqueList {
|
||||||
ULNil, ULCons(~UniqueList)
|
ULNil, ULCons(~UniqueList)
|
||||||
|
|
|
@ -21,7 +21,6 @@ use std::comm;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn child_generation(gens_left: uint, tx: comm::Sender<()>) {
|
fn child_generation(gens_left: uint, tx: comm::Sender<()>) {
|
||||||
// This used to be O(n^2) in the number of generations that ever existed.
|
// This used to be O(n^2) in the number of generations that ever existed.
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::uint;
|
use std::uint;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn f(n: uint) {
|
fn f(n: uint) {
|
||||||
let mut i = 0u;
|
let mut i = 0u;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct sty(Vec<int> );
|
struct sty(Vec<int> );
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
trait foo {
|
trait foo {
|
||||||
fn foo(&self) -> int;
|
fn foo(&self) -> int;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn test() {
|
fn test() {
|
||||||
let v: int;
|
let v: int;
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
type Foo = Vec<u8>;
|
type Foo = Vec<u8>;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
use zed::bar;
|
use zed::bar;
|
||||||
use zed::baz;
|
use zed::baz;
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
mod zed {
|
mod zed {
|
||||||
pub fn bar() { println!("bar"); }
|
pub fn bar() { println!("bar"); }
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
use baz::zed::bar; //~ ERROR unresolved import
|
use baz::zed::bar; //~ ERROR unresolved import
|
||||||
//~^ ERROR failed to resolve import
|
//~^ ERROR failed to resolve import
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
mod baz {}
|
mod baz {}
|
||||||
mod zed {
|
mod zed {
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// error-pattern: import
|
// error-pattern: import
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
mod a { pub use b::foo; }
|
mod a { pub use b::foo; }
|
||||||
mod b { pub use a::foo; }
|
mod b { pub use a::foo; }
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// error-pattern: illegal recursive type
|
// error-pattern: illegal recursive type
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
type x = Vec<x>;
|
type x = Vec<x>;
|
||||||
|
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// error-pattern:expected `[` but found `~`
|
// error-pattern:expected `[` but found `vec`
|
||||||
mod blade_runner {
|
mod blade_runner {
|
||||||
#vec!(doc(
|
#vec[doc(
|
||||||
brief = "Blade Runner is probably the best movie ever",
|
brief = "Blade Runner is probably the best movie ever",
|
||||||
desc = "I like that in the world of Blade Runner it is always
|
desc = "I like that in the world of Blade Runner it is always
|
||||||
raining, and that it's always night time. And Aliens
|
raining, and that it's always night time. And Aliens
|
||||||
was also a really good movie.
|
was also a really good movie.
|
||||||
|
|
||||||
Alien 3 was crap though."
|
Alien 3 was crap though."
|
||||||
))
|
)]
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
trait vec_monad<A> {
|
trait vec_monad<A> {
|
||||||
fn bind<B>(&self, f: |A| -> Vec<B> );
|
fn bind<B>(&self, f: |A| -> Vec<B> );
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
#[allow(dead_code)];
|
#[allow(dead_code)];
|
||||||
#[allow(deprecated_owned_vector)];
|
#[allow(deprecated_owned_vector)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn fail_len(v: Vec<int> ) -> uint {
|
fn fail_len(v: Vec<int> ) -> uint {
|
||||||
let mut i = 3;
|
let mut i = 3;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct parser {
|
struct parser {
|
||||||
tokens: Vec<int> ,
|
tokens: Vec<int> ,
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let needlesArr: Vec<char> = vec!('a', 'f');
|
let needlesArr: Vec<char> = vec!('a', 'f');
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub struct CrateId {
|
pub struct CrateId {
|
||||||
local_path: ~str,
|
local_path: ~str,
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// Test which of the builtin types are considered freezeable.
|
// Test which of the builtin types are considered freezeable.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn assert_freeze<T:Freeze>() { }
|
fn assert_freeze<T:Freeze>() { }
|
||||||
trait Dummy { }
|
trait Dummy { }
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn assert_pod<T:Pod>() { }
|
fn assert_pod<T:Pod>() { }
|
||||||
trait Dummy { }
|
trait Dummy { }
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// Test which of the builtin types are considered sendable.
|
// Test which of the builtin types are considered sendable.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn assert_send<T:Send>() { }
|
fn assert_send<T:Send>() { }
|
||||||
trait Dummy { }
|
trait Dummy { }
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#[allow(deprecated_owned_vector)];
|
#[allow(deprecated_owned_vector)];
|
||||||
#[deny(unused_mut)];
|
#[deny(unused_mut)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// negative cases
|
// negative cases
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#[deny(unused_unsafe)];
|
#[deny(unused_unsafe)];
|
||||||
#[allow(deprecated_owned_vector)];
|
#[allow(deprecated_owned_vector)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
mod foo {
|
mod foo {
|
||||||
extern {
|
extern {
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x: Vec<(int, int)> = Vec::new();
|
let x: Vec<(int, int)> = Vec::new();
|
||||||
|
|
|
@ -96,7 +96,7 @@ fn f110() {
|
||||||
|
|
||||||
fn f120() {
|
fn f120() {
|
||||||
let mut x = vec!(~"hi", ~"ho");
|
let mut x = vec!(~"hi", ~"ho");
|
||||||
x.swap(0, 1);
|
x.as_mut_slice().swap(0, 1);
|
||||||
touch(x.get(0));
|
touch(x.get(0));
|
||||||
touch(x.get(1));
|
touch(x.get(1));
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::libc;
|
use std::libc;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x : *Vec<int> = &vec!(1,2,3);
|
let x : *Vec<int> = &vec!(1,2,3);
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
// Issue #876
|
// Issue #876
|
||||||
|
|
||||||
#[no_implicit_prelude];
|
#[no_implicit_prelude];
|
||||||
|
use std::vec::Vec;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {
|
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {
|
||||||
fail!();
|
fail!();
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct r {
|
struct r {
|
||||||
i: @Cell<int>,
|
i: @Cell<int>,
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
// ignore-tidy-linelength
|
// ignore-tidy-linelength
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct Number {
|
struct Number {
|
||||||
n: i64
|
n: i64
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let _foo = Vec::new(); //~ ERROR unconstrained type
|
let _foo = Vec::new(); //~ ERROR unconstrained type
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let v: Vec<int> = vec!(1, 2, 3);
|
let v: Vec<int> = vec!(1, 2, 3);
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
|
|
||||||
// file at the top-level directory of this distribution and at
|
|
||||||
// http://rust-lang.org/COPYRIGHT.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
||||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
||||||
// option. This file may not be copied, modified, or distributed
|
|
||||||
// except according to those terms.
|
|
||||||
|
|
||||||
// ignore-android: FIXME(#10381)
|
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
|
||||||
|
|
||||||
// compile-flags:-g
|
|
||||||
// debugger:rbreak zzz
|
|
||||||
// debugger:run
|
|
||||||
// debugger:finish
|
|
||||||
|
|
||||||
// debugger:print unique->fill
|
|
||||||
// check:$1 = 32
|
|
||||||
// debugger:print *((uint64_t[4]*)(unique->elements))
|
|
||||||
// check:$2 = {10, 11, 12, 13}
|
|
||||||
|
|
||||||
#[allow(unused_variable)];
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
|
|
||||||
let unique: Vec<i64> = vec!(10, 11, 12, 13);
|
|
||||||
|
|
||||||
zzz();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn zzz() {()}
|
|
|
@ -9,7 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args : Vec<~str> = ::std::os::args();
|
let args : ~[~str] = ::std::os::args();
|
||||||
::std::io::println(args[0]);
|
::std::io::println(args[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,16 +17,16 @@
|
||||||
// debugger:run
|
// debugger:run
|
||||||
// debugger:finish
|
// debugger:finish
|
||||||
|
|
||||||
// debugger:print unique->elements[0]->val
|
// debugger:print unique.ptr[0]->val
|
||||||
// check:$1 = 10
|
// check:$1 = 10
|
||||||
|
|
||||||
// debugger:print unique->elements[1]->val
|
// debugger:print unique.ptr[1]->val
|
||||||
// check:$2 = 11
|
// check:$2 = 11
|
||||||
|
|
||||||
// debugger:print unique->elements[2]->val
|
// debugger:print unique.ptr[2]->val
|
||||||
// check:$3 = 12
|
// check:$3 = 12
|
||||||
|
|
||||||
// debugger:print unique->elements[3]->val
|
// debugger:print unique.ptr[3]->val
|
||||||
// check:$4 = 13
|
// check:$4 = 13
|
||||||
|
|
||||||
#[allow(unused_variable)];
|
#[allow(unused_variable)];
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn test1() { let val = @0; { } *val; }
|
fn test1() { let val = @0; { } *val; }
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
#[allow(unreachable_code)];
|
#[allow(unreachable_code)];
|
||||||
#[allow(unused_variable)];
|
#[allow(unused_variable)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
// error-pattern:so long
|
// error-pattern:so long
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
|
|
||||||
extern crate collections;
|
extern crate collections;
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
use std::vec;
|
||||||
use std::vec_ng;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let _count = @0u;
|
let _count = @0u;
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn f() -> Vec<int> { fail!(); }
|
fn f() -> Vec<int> { fail!(); }
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn f() -> Vec<int> { fail!(); }
|
fn f() -> Vec<int> { fail!(); }
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn f() -> Vec<int> { fail!(); }
|
fn f() -> Vec<int> { fail!(); }
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn build() -> Vec<int> {
|
fn build() -> Vec<int> {
|
||||||
fail!();
|
fail!();
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn build1() -> Vec<int> {
|
fn build1() -> Vec<int> {
|
||||||
vec!(0,0,0,0,0,0,0)
|
vec!(0,0,0,0,0,0,0)
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// error-pattern:index out of bounds: the len is 1 but the index is 2
|
// error-pattern:index out of bounds: the len is 1 but the index is 2
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let v: Vec<int> = vec!(10);
|
let v: Vec<int> = vec!(10);
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
enum option<T> { some(T), none, }
|
enum option<T> { some(T), none, }
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
// making method calls, but only if there aren't any matches without
|
// making method calls, but only if there aren't any matches without
|
||||||
// it.
|
// it.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
trait iterable<A> {
|
trait iterable<A> {
|
||||||
fn iterate(&self, blk: |x: &A| -> bool) -> bool;
|
fn iterate(&self, blk: |x: &A| -> bool) -> bool;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
trait Pushable<T> {
|
trait Pushable<T> {
|
||||||
fn push_val(&mut self, t: T);
|
fn push_val(&mut self, t: T);
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn f<T>(x: Vec<T>) -> T { return x.move_iter().next().unwrap(); }
|
fn f<T>(x: Vec<T>) -> T { return x.move_iter().next().unwrap(); }
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// ignore-fast
|
// ignore-fast
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn iter_vec<T>(v: Vec<T> , f: |&T|) { for x in v.iter() { f(x); } }
|
fn iter_vec<T>(v: Vec<T> , f: |&T|) { for x in v.iter() { f(x); } }
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
// ignore-fast
|
// ignore-fast
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn iter_vec<T>(v: Vec<T> , f: |&T|) { for x in v.iter() { f(x); } }
|
fn iter_vec<T>(v: Vec<T> , f: |&T|) { for x in v.iter() { f(x); } }
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
fn foo(self);
|
fn foo(self);
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct F { f: Vec<int> }
|
struct F { f: Vec<int> }
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::mem::swap;
|
use std::mem::swap;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct Ints {sum: ~int, values: Vec<int> }
|
struct Ints {sum: ~int, values: Vec<int> }
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn want_slice(v: &[int]) -> int {
|
fn want_slice(v: &[int]) -> int {
|
||||||
let mut sum = 0;
|
let mut sum = 0;
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct F { f: @G }
|
struct F { f: @G }
|
||||||
struct G { g: Vec<int> }
|
struct G { g: Vec<int> }
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#[feature(managed_boxes)];
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn borrow<'r,T>(x: &'r T) -> &'r T {x}
|
fn borrow<'r,T>(x: &'r T) -> &'r T {x}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn foo() -> int { 22 }
|
fn foo() -> int { 22 }
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
struct cat<U> {
|
struct cat<U> {
|
||||||
info : Vec<U> ,
|
info : Vec<U> ,
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#[feature(macro_rules)];
|
#[feature(macro_rules)];
|
||||||
|
|
||||||
use std::ops::Drop;
|
use std::ops::Drop;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
static mut FLAGS: u64 = 0;
|
static mut FLAGS: u64 = 0;
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
// scenario worth testing.
|
// scenario worth testing.
|
||||||
|
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
enum Conzabble {
|
enum Conzabble {
|
||||||
Bickwick(Foo)
|
Bickwick(Foo)
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn bar(v: &mut [uint]) -> Vec<uint> {
|
fn bar(v: &mut [uint]) -> Vec<uint> {
|
||||||
Vec::from_slice(v)
|
Vec::from_slice(v)
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn reverse(v: &mut [uint]) {
|
fn reverse(v: &mut [uint]) {
|
||||||
v.reverse();
|
v.reverse();
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn bar(v: &mut [uint]) {
|
fn bar(v: &mut [uint]) {
|
||||||
v.reverse();
|
v.reverse();
|
||||||
|
|
|
@ -10,6 +10,5 @@
|
||||||
|
|
||||||
#[allow(unused_mut)];
|
#[allow(unused_mut)];
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub fn main() { let mut _v: Vec<int> = Vec::new(); }
|
pub fn main() { let mut _v: Vec<int> = Vec::new(); }
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn test_int() {
|
fn test_int() {
|
||||||
fn f() -> int { 10 }
|
fn f() -> int { 10 }
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn test_simple() {
|
fn test_simple() {
|
||||||
let r = match true { true => { true } false => { fail!() } };
|
let r = match true { true => { true } false => { fail!() } };
|
||||||
|
|
|
@ -8,6 +8,5 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
pub fn main() { let x: Vec<int> = Vec::new(); for _ in x.iter() { fail!("moop"); } }
|
pub fn main() { let x: Vec<int> = Vec::new(); for _ in x.iter() { fail!("moop"); } }
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use std::vec_ng::Vec;
|
|
||||||
|
|
||||||
fn two(it: |int|) { it(0); it(1); }
|
fn two(it: |int|) { it(0); it(1); }
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue