replace ConstVector trait with the Container trait

This commit is contained in:
Daniel Micay 2013-01-24 22:19:44 -05:00
parent c3f4f654eb
commit d95c9cbe38
16 changed files with 36 additions and 42 deletions

View file

@ -1331,7 +1331,7 @@ fn type_to_str_inner(names: type_names, +outer0: ~[TypeRef], ty: TypeRef) ->
Struct => {
let n_elts = llvm::LLVMCountStructElementTypes(ty) as uint;
let mut elts = vec::from_elem(n_elts, 0 as TypeRef);
if elts.is_not_empty() {
if !elts.is_empty() {
llvm::LLVMGetStructElementTypes(
ty, ptr::to_mut_unsafe_ptr(&mut elts[0]));
}