about summary refs log tree commit diff
path: root/src/test/compile-fail/use-after-move-self.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-29/+0
2015-01-08Update compile fail tests to use isize.Huon Wilson-2/+2
2015-01-07Test fixes and rebase conflictsAlex Crichton-0/+1
2014-10-02Change the `use of moved value` error to be more accurateP1start-1/+1
Previously it output `partially moved` to eagerly. This updates it to be more accurate and output `collaterally moved` for use of values that were invalidated by moves out of different fields in the same struct. Closes #15630.
2014-06-06Change check_loans to use ExprUseVisitor.Cameron Zwarich-1/+1
2014-05-06librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, exceptPatrick Walton-2/+3
for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change]
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-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-3/+3
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-12librustc: Make `self` and `static` into keywordsPatrick Walton-1/+1
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+0
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-1/+1
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-4/+4
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.
2013-01-14s/moved variable/moved value/John Clements-1/+1
2012-12-13librustc: Allow moves out of `self`. r=nmatsakisPatrick Walton-0/+18