demode vec

This commit is contained in:
Niko Matsakis
2012-09-27 22:20:47 -07:00
parent 6c15dd6d82
commit 21519bc7e0
83 changed files with 541 additions and 464 deletions

View File

@@ -275,14 +275,14 @@ fn ident_to_path(s: span, +i: ident) -> @path {
rp: None, types: ~[]}
}
pure fn is_unguarded(&&a: arm) -> bool {
pure fn is_unguarded(a: &arm) -> bool {
match a.guard {
None => true,
_ => false
}
}
pure fn unguarded_pat(a: arm) -> Option<~[@pat]> {
pure fn unguarded_pat(a: &arm) -> Option<~[@pat]> {
if is_unguarded(a) { Some(/* FIXME (#2543) */ copy a.pats) } else { None }
}