aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle/typestate_check.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-13 17:53:42 -0700
committerPatrick Walton <[email protected]>2011-05-13 17:55:07 -0700
commitef75860a0a72f79f97216f8aaa5b388d98da6480 (patch)
tree48a4b22a2dd685c05c310f5a647186bca59582d8 /src/comp/middle/typestate_check.rs
parent'with' no longer a token; whitespace police. (diff)
downloadrust-master.tar.xz
rust-master.zip
rustc: Write nil types into the node type table wherever plain_ann() is usedHEADmaster
Diffstat (limited to 'src/comp/middle/typestate_check.rs')
-rw-r--r--src/comp/middle/typestate_check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/typestate_check.rs b/src/comp/middle/typestate_check.rs
index 2d46309a..c12d0273 100644
--- a/src/comp/middle/typestate_check.rs
+++ b/src/comp/middle/typestate_check.rs
@@ -2078,7 +2078,7 @@ fn init_block(&fn_info fi, &span sp, &block_ b) -> block {
log("init_block: shouldn't see ann_none");
fail;
}
- case (ann_type(_, ?t,?ps,_)) {
+ case (ann_type(_, _, ?ps, _)) {
auto fld0 = fold::new_identity_fold[fn_info]();
fld0 = @rec(fold_ann = bind init_ann(_,_) with *fld0);