]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/abi.rs
libsyntax: Mechanically change `~[T]` to `Vec<T>`
[rust.git] / src / libsyntax / abi.rs
index 861cd8ae7d301160886fb105da80acbd15b196d5..eda71552765cc710f4fa9878ae37f085b61e6e62 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 use std::fmt;
+use std::vec_ng::Vec;
 use std::fmt::Show;
 
 #[deriving(Eq)]
@@ -117,7 +118,7 @@ pub fn lookup(name: &str) -> Option<Abi> {
     res
 }
 
-pub fn all_names() -> ~[&'static str] {
+pub fn all_names() -> Vec<&'static str> {
     AbiDatas.map(|d| d.name)
 }
 
@@ -232,7 +233,7 @@ pub fn for_target(&self, os: Os, arch: Architecture) -> Option<Abi> {
     }
 
     pub fn check_valid(&self) -> Option<(Abi, Abi)> {
-        let mut abis = ~[];
+        let mut abis = Vec::new();
         self.each(|abi| { abis.push(abi); true });
 
         for (i, abi) in abis.iter().enumerate() {