about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-match-binding-is-assignment.rs
AgeCommit message (Collapse)AuthorLines
2016-02-24Move the borrowck run-pass/compile-fail tests into their own directoriesNiko Matsakis-53/+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-01-31Kill more `isize`sTobias Bucher-3/+3
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-3/+3
2015-01-08Update compile fail tests to use isize.Huon Wilson-2/+2
2014-11-17Switch to purely namespaced enumsSteven Fackler-2/+2
This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [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-06-23libsyntax: Disallow struct literals after `if`, `while`, `match`, andPatrick Walton-1/+1
`for...in`. Closes #14803. If you used a structure literal after one of these keywords, surround it in parentheses. [breaking-change]
2014-02-24Match binding is assignmentEdward Wang-0/+51
In its first pass, namely gather_loans, the borrow checker tracks the initialization sites among other things it does. It does so for let bindings with initializers but not for bindings in match arms, which are effectively also assignments. This patch does that for borrow checker. Closes #12452.