rust/src/test
Kiet Tran b3290d322e Make some borrow checker errors more user friendly
A mutable and immutable borrow place some restrictions on what you can
with the variable until the borrow ends. This commit attempts to convey
to the user what those restrictions are. Also, if the original borrow is
a mutable borrow, the error message has been changed (more specifically,
i. "cannot borrow `x` as immutable because it is also borrowed as
mutable" and ii. "cannot borrow `x` as mutable more than once" have
been changed to "cannot borrow `x` because it is already borrowed as
mutable").

In addition, this adds a (custom) span note to communicate where the
original borrow ends.
2014-01-23 14:44:28 -05:00
..
auxiliary Scan the entire crate for exported macros 2014-01-20 09:22:46 -08:00
bench Remove unnecessary parentheses. 2014-01-21 22:00:18 +11:00
codegen
compile-fail Make some borrow checker errors more user friendly 2014-01-23 14:44:28 -05:00
debug-info Link lifetimes in let patterns just as we do for match patterns 2014-01-17 08:04:38 -05:00
pretty
run-fail xfail another native test on android (#11419) 2014-01-13 13:15:06 -08:00
run-make Bump version to 0.10-pre 2014-01-12 17:45:22 -08:00
run-pass auto merge of #11699 : alexcrichton/rust/snapshot, r=huonw 2014-01-21 01:31:30 -08:00
run-pass-fulldeps auto merge of #11660 : sfackler/rust/quote-unused-sp, r=huonw 2014-01-20 04:11:32 -08:00