diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-27 22:20:47 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-28 13:27:45 -0700 |
| commit | 21519bc7e0a32e388e8b12be5d36d4440129f417 (patch) | |
| tree | bcdd50c7816a21a5d5422c114e722df1a5dcc65d /src/libsyntax/ast_util.rs | |
| parent | 6c15dd6d8217a166cfd0d364a434771803123432 (diff) | |
| download | rust-21519bc7e0a32e388e8b12be5d36d4440129f417.tar.gz rust-21519bc7e0a32e388e8b12be5d36d4440129f417.zip | |
demode vec
Diffstat (limited to 'src/libsyntax/ast_util.rs')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index a2c935ea6f4..2431947184d 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -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 } } |
