summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-vec-pattern-element-loan.rs
AgeCommit message (Collapse)AuthorLines
2014-03-21test: Make manual changes to deal with the fallout from removal ofPatrick Walton-3/+3
`~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
2014-03-21test: Automatically remove all `~[T]` from tests.Patrick Walton-3/+3
2014-02-19librustc: Remove unique vector patterns from the language.Patrick Walton-3/+6
Preparatory work for removing unique vectors from the language, which is itself preparatory work for dynamically sized types.
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-3/+3
Who doesn't like a massive renaming?
2013-09-30cfail: Remove usage of fmt!Alex Crichton-3/+3
2013-08-07Fix incorrect non-exhaustive matching for fixed length vecsStepan Koltsov-3/+3
Code like this is fixed now: ``` fn foo(p: [u8, ..4]) { match p { [a, b, c, d] => {} }; } ``` Invalid constructors are not reported as errors yet: ``` fn foo(p: [u8, ..4]) { match p { [_, _, _] => {} // this should be error [_, _, _, _, _, .._] => {} // and this _ => {} } } ``` Issue #8311 is partially fixed by this commit. Fixed-length arrays in let statement are not yet allowed: ``` let [a, b, c] = [1, 2, 3]; // still fails ```
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-3/+3
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-04-30new borrow checker (mass squash)Niko Matsakis-6/+6
2013-03-11Implement vector destructuring from tailSeo Sanghyeon-7/+20
2013-02-15tests/tutorials: Get rid of `move`.Luqman Aden-1/+1
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2013-01-28Integrate vec patterns into borrow checker.Niko Matsakis-0/+15
The tail portion of the pattern effectively borrows a vector, but the borrow checker knew nothing about this. r=catamorphism