More misc ivec->vec renaming

This commit is contained in:
Brian Anderson 2011-08-18 15:00:12 -07:00
parent 223f6017c7
commit f5ce3bf15d
6 changed files with 9 additions and 9 deletions

View file

@ -1348,7 +1348,7 @@ fn type_param(cx: &ctxt, ty: &t) -> option::t<uint> {
ret none;
}
// Returns an ivec of all the type variables
// Returns a vec of all the type variables
// occurring in t. It may contain duplicates.
fn vars_in_type(cx:&ctxt, ty: &t) -> [int] {
fn collect_var(cx:&ctxt, vars: &@mutable [int], ty: t) {
@ -1362,7 +1362,7 @@ fn vars_in_type(cx:&ctxt, ty: &t) -> [int] {
let rslt: @mutable [int] = @mutable (~[]);
walk_ty(cx, bind collect_var(cx, rslt, _), ty);
// Works because of a "convenient" bug that lets us
// return a mutable ivec as if it's immutable
// return a mutable vec as if it's immutable
ret *rslt;
}

View file

@ -39,7 +39,7 @@ fn path_to_ident(pth: &path) -> option::t<ident> {
ret none;
}
//an ivec of binders might be a little big.
//a vec of binders might be a little big.
type clause = {params: binders, body: @expr};
/* logically, an arb_depth should contain only one kind of matchable */

View file

@ -1,4 +1,4 @@
import std::ivec;
import std::vec;
import std::vec::map;
import std::option;
import std::option::some;
@ -410,7 +410,7 @@ fn cv_crate(ctx: &ctx, ut: &@ast_node) -> @crate {
fn cv_crate_cfg(ctx: &ctx, ut: &@ast_node) -> crate_cfg {
ret alt *ut {
branch(n_crate_cfg., _, meta_items) {
ivec::map(bind cv_meta_item(ctx,_), meta_items)
vec::map(bind cv_meta_item(ctx,_), meta_items)
}
branch(_, sp, _) { ctx.ff(sp,"Invalid crate_cfg") }
};

View file

@ -1,4 +1,4 @@
// error-pattern: unresolved import: ivec
import ivec;
// error-pattern: unresolved import: vec
import vec;
fn main() { let foo = vec::len([]); }

View file

@ -1,4 +1,4 @@
// pp-exact:ivec-type.pp
// pp-exact:vec-type.pp
fn f1(x: [int]) { }

View file

@ -1,4 +1,4 @@
// pp-exact:ivec-type.pp
// pp-exact:vec-type.pp
fn f1(x: [int]) { }