about summary refs log tree commit diff
path: root/src/test/compile-fail/by-move-pattern-binding.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-32/+0
2014-11-17Switch to purely namespaced enumsSteven Fackler-5/+5
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-05-27std: Rename strbuf operations to stringRicho Healey-1/+1
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-2/+2
[breaking-change]
2014-05-14test: Remove all uses of `~str` from the test suite.Patrick Walton-3/+3
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-1/+1
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-1/+1
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-1/+1
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-1/+1
2013-05-28Move checking for moves and initialization of local variables and patterns intoNiko Matsakis-1/+1
borrow checker and generalize what moves are allowed. Fixes a nasty bug or two in the pattern move checking code. Unifies dataflow code used for initialization and other things. First step towards once fns. Everybody wins. Fixes #4384. Fixes #4715. cc once fns (#2202), optimizing local moves (#5016).
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+0
2012-12-14librustc: Ensure that no moves from the inside of @ or & boxes occur. ↵Patrick Walton-0/+23
rs=crashing-servo