about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-array-double-move.rs
AgeCommit message (Collapse)AuthorLines
2015-02-07Updates to tests reflecting array-move restrictions.Felix S. Klock II-24/+0
Note that the change to the error message in borrowck-use-in-index-lvalue.rs, where we report that `*w` is uninitialized rather than `w`, was unintended fallout from the implementation strategy used here. The change appears harmless to me, but I welcome advice on how to bring back the old message, which was slightly cleaner (i.e. less unintelligible). ---- drive-by: revise compile-fail/borrowck-vec-pattern-move-tail to make it really clear that there is a conflict that must be signaled. (A hypothetical future version of Rust might be able to accept the prior version of the code, since the previously updated index was not actually aliased.)
2015-01-31Kill more `isize`sTobias Bucher-2/+2
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-2/+2
2015-01-08fallout: part of changes to compile-fail tests. (follows same pattern as ↵Felix S. Klock II-0/+3
prior two commits.)
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-2/+2
floating point numbers for real. This will break code that looks like: let mut x = 0; while ... { x += 1; } println!("{}", x); Change that code to: let mut x = 0i; while ... { x += 1; } println!("{}", x); Closes #15201. [breaking-change]
2014-06-18Reject double moves out of array elementsCameron Zwarich-0/+21
Fixes #14986.