diff options
| author | Patrick Walton <[email protected]> | 2011-05-10 17:27:30 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-05-10 17:27:59 -0700 |
| commit | 10c926652515052000e44ef4ac10e6b4ebbc6e3a (patch) | |
| tree | bce087c37ed3f7b74264c67b3b0b62757e910987 /src/comp/middle/trans.rs | |
| parent | Remove a couple more spurious 'mutable' value qualifiers from macos_OS.rs. (diff) | |
| download | rust-10c926652515052000e44ef4ac10e6b4ebbc6e3a.tar.xz rust-10c926652515052000e44ef4ac10e6b4ebbc6e3a.zip | |
rustc: Number everything with an annotation
Diffstat (limited to 'src/comp/middle/trans.rs')
| -rw-r--r-- | src/comp/middle/trans.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 853b9965..98e3b14e 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -3090,7 +3090,7 @@ fn node_ann_type(@crate_ctxt cx, &ast.ann a) -> ty.t { fn node_ann_ty_params(&ast.ann a) -> vec[ty.t] { alt (a) { - case (ast.ann_none) { + case (ast.ann_none(_)) { log_err "missing type annotation"; fail; } @@ -4106,7 +4106,7 @@ fn lval_generic_fn(@block_ctxt cx, auto monoty; let vec[ty.t] tys; alt (ann) { - case (ast.ann_none) { + case (ast.ann_none(_)) { cx.fcx.lcx.ccx.sess.bug("no type annotation for path!"); fail; } |