about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-for-loop-head-linkage.rs
AgeCommit message (Collapse)AuthorLines
2016-02-24Move the borrowck run-pass/compile-fail tests into their own directoriesNiko Matsakis-20/+0
as a test.
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-02-18Remove `i`, `is`, `u`, or `us` suffixes that are not necessary.Niko Matsakis-2/+2
2015-02-02`for x in xs.iter()` -> `for x in &xs`Jorge Aparicio-1/+1
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-2/+2
2015-01-03Remove deprecated functionalityAlex Crichton-1/+3
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-11-06Fallout from collection conventionsAlexis Beingessner-1/+1
2014-09-21Fix fallout from Vec stabilizationAlex Crichton-1/+1
2014-09-08librustc: Make sure lifetimes in `for` loop heads outlive the `for` loopPatrick Walton-0/+19
itself. This breaks code like: for &x in my_vector.iter() { my_vector[2] = "wibble"; ... } Change this code to not invalidate iterators. For example: for i in range(0, my_vector.len()) { my_vector[2] = "wibble"; ... } The `for-loop-does-not-borrow-iterators` test for #8372 was incorrect and has been removed. Closes #16820. [breaking-change]