Closed
Description
fn test00_start(ch: _chan[int], message: int, count: int) {
log "Starting test00_start";
let i: int = 0;
while i < count {
log "Sending Message";
send(ch, message);
i = i + 1;
}
log "Ending test00_start";
}
send
uses move-mode for the second argument, which means that message
is deinitialized the second time through the loop. Typestate should catch this.
Activity
Track arguments in typestate
catamorphism commentedon Aug 18, 2011
Actually, loops don't have anything to do with it. Typestate didn't handle move-mode arguments correctly at all. Just pushed a commit that fixes it.
Auto merge of rust-lang#819 - andrewtj:atj-rel, r=alexcrichton
Fix shuffle canonicalization (rust-lang#819)
Compiletest: Fix test caching behavior (rust-lang#819)