about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-vec-pattern-move-tail.rs
AgeCommit message (Collapse)AuthorLines
2016-02-24Move the borrowck run-pass/compile-fail tests into their own directoriesNiko Matsakis-23/+0
as a test.
2015-03-27Feature gate *all* slice patterns. #23121Brian Anderson-0/+2
Until some backwards-compatibility hazards are fixed in #23121, these need to be unstable. [breaking-change]
2015-02-07Updates to tests reflecting array-move restrictions.Felix S. Klock II-1/+3
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-1/+1
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-1/+1
2014-09-08librustc: Change the syntax of subslice matching to use postfix `..`Patrick Walton-1/+1
instead of prefix `..`. This breaks code that looked like: match foo { [ first, ..middle, last ] => { ... } } Change this code to: match foo { [ first, middle.., last ] => { ... } } RFC #55. Closes #16967. [breaking-change]
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-1/+1
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-02-11test -- update tests with new error messagesNiko Matsakis-1/+1
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2013-09-19Replace unreachable() calls with unreachable!().Chris Morgan-1/+1
This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
2013-05-22test: Update tests to use the new syntax.Patrick Walton-1/+1
2013-04-30new borrow checker (mass squash)Niko Matsakis-2/+3
2013-02-26test: De-[mut] (remove all mutable arrays from) the tests. rs=demutingPatrick Walton-1/+1
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-0/+8
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.