rustc: Remove some interior vectors from typestate and some useless vec-related imports
This commit is contained in:
parent
ccd0fffcce
commit
a3add84909
6 changed files with 7 additions and 26 deletions
|
|
@ -174,14 +174,6 @@ fn lit_eq(&@ast::lit l, &@ast::lit m) -> bool {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME move to vec
|
||||
fn any[T](&fn(&T) -> bool f, &vec[T] v) -> bool {
|
||||
for (T t in v) {
|
||||
if (f(t)) { ret true; }
|
||||
}
|
||||
ret false;
|
||||
}
|
||||
|
||||
tag call_kind {
|
||||
kind_call;
|
||||
kind_spawn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue