about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-multiple-captures.rs
AgeCommit message (Collapse)AuthorLines
2016-02-24Move the borrowck run-pass/compile-fail tests into their own directoriesNiko Matsakis-65/+0
as a test.
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-03-03Add `: Box<_>` or `::Box<_>` type annotations to various places.Felix S. Klock II-6/+6
This is the kind of change that one is expected to need to make to accommodate overloaded-`box`. ---- Note that this is not *all* of the changes necessary to accommodate Issue 22181. It is merely the subset of those cases where there was already a let-binding in place that made it easy to add the necesasry type ascription. (For unnamed intermediate `Box` values, one must go down a different route; `Box::new` is the option that maximizes portability, but has potential inefficiency depending on whether the call is inlined.) ---- There is one place worth note, `run-pass/coerce-match.rs`, where I used an ugly form of `Box<_>` type ascription where I would have preferred to use `Box::new` to accommodate overloaded-`box`. I deliberately did not use `Box::new` here, because that is already done in coerce-match-calls.rs. ---- Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
2015-02-17Fallout from stabilizationAaron Turon-5/+5
2015-01-31Kill more `isize`sTobias Bucher-6/+6
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-6/+6
2015-01-07Test fixes and rebase conflictsAlex Crichton-0/+2
2015-01-03Remove deprecated functionalityAlex Crichton-5/+5
This removes a large array of deprecated functionality, regardless of how recently it was deprecated. The purpose of this commit is to clean out the standard libraries and compiler for the upcoming alpha release. Some notable compiler changes were to enable warnings for all now-deprecated command line arguments (previously the deprecated versions were silently accepted) as well as removing deriving(Zero) entirely (the trait was removed). The distribution no longer contains the libtime or libregex_macros crates. Both of these have been deprecated for some time and are available externally.
2014-12-14Mostly rote conversion of `proc()` to `move||` (and occasionally `Thunk::new`)Niko Matsakis-4/+4
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-6/+6
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-06Add a test for borrowck errors with multiple closure captures.Cameron Zwarich-0/+64
When converting check_loans to use ExprUseVisitor I encountered a few issues where the wrong number of errors were being emitted for multiple closure captures, but there is no existing test for this.