rustc: Remove ~[T] from the language
The following features have been removed * box [a, b, c] * ~[a, b, c] * box [a, ..N] * ~[a, ..N] * ~[T] (as a type) * deprecated_owned_vector lint All users of ~[T] should move to using Vec<T> instead.
This commit is contained in:
parent
f9260d41d6
commit
3316b1eb7c
68 changed files with 355 additions and 823 deletions
|
@ -856,8 +856,8 @@ mod tests {
|
|||
})
|
||||
|
||||
iotest!(fn test_add_to_env() {
|
||||
let new_env = box [("RUN_TEST_NEW_ENV", "123")];
|
||||
let prog = env_cmd().env(new_env).spawn().unwrap();
|
||||
let new_env = vec![("RUN_TEST_NEW_ENV", "123")];
|
||||
let prog = env_cmd().env(new_env.as_slice()).spawn().unwrap();
|
||||
let result = prog.wait_with_output().unwrap();
|
||||
let output = str::from_utf8_lossy(result.output.as_slice()).into_string();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue