[rust-dev] change "use of moved variable" to "use of moved value" ?

2013-01-10 Thread John Clements
There's currently a somewhat misleading (I claim) error message that states "error: use of moved variable". I claim this should instead be "use of moved value". In particular, there's no problem with using the variable; in particular, you can mutate it to some new value. For example, this code

Re: [rust-dev] Question about lifetime analysis (a 0.5 transition question)

2013-01-10 Thread Steve Jenson
On Sun, Dec 30, 2012 at 1:16 PM, Niko Matsakis wrote: > Oh, one other thing: > > Your each() method does not obey the for protocol! When the callback > returns false, you should abort iteration altogether. This presumably > means you need to do the recursion in a helper method that itself retur