// except according to those terms.
use std::fmt;
+use std::vec_ng::Vec;
use std::fmt::Show;
#[deriving(Eq)]
res
}
-pub fn all_names() -> ~[&'static str] {
+pub fn all_names() -> Vec<&'static str> {
AbiDatas.map(|d| d.name)
}
}
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() {