More misc ivec->vec renaming
This commit is contained in:
parent
223f6017c7
commit
f5ce3bf15d
6 changed files with 9 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue