rust/src/test/ui
bors da4d49002d Auto merge of #43479 - ivanbakel:loop_borrow_msg, r=estebank
Extended error message for mut borrow conflicts in loops

RFC issue: https://github.com/rust-lang/rfcs/issues/2080

The error message for multiple mutable borrows on the same value over loop iterations now makes it clear that the conflict comes from the borrow outlasting the loop. The wording of the error is based on the special case of the moved-value error for a value moved in a loop. Following the example of that error, the code remains the same for the special case.

This is mainly because I felt the current message is confusing in the loop case : https://github.com/rust-lang/rust/issues/43437. It's not clear that the two conflicting borrows are in different iterations of the loop, and instead it just looks like the compiler has an issue with a single line.
2017-07-27 07:54:15 +00:00
..
block-result Adjust new suggestions to the suggestion guidelines 2017-07-21 13:59:17 +02:00
borrowck Added tests for new loop borrow message 2017-07-27 02:43:11 +01:00
check_match Fix range_covered_by_constructor for exclusive ranges. 2017-07-16 17:34:09 +01:00
closure_context
codemap_tests
compare-method Make sufficiently old or low-impact compatibility lints deny-by-default 2017-07-08 01:56:27 +03:00
cross-crate-macro-backtrace
did_you_mean Auto merge of #43386 - oli-obk:suggestions, r=nikomatsakis 2017-07-23 18:13:20 +00:00
dropck
fmt
hello_world
impl-trait
interior-mutability
invalid-module-declaration
issue-37311-type-length-limit
issue-38875
issue-40402-ref-hints reorder span labels 2017-07-18 00:07:37 +05:30
issue-41652
lifetime-errors
lifetimes
lint
macros Rollup merge of #43447 - estebank:import-span, r=nikomatsakis 2017-07-26 06:15:02 -06:00
mismatched_types Adjust new suggestions to the suggestion guidelines 2017-07-21 13:59:17 +02:00
missing-items remove associated_consts feature gate 2017-07-06 11:52:25 -07:00
on-unimplemented rustc_on_unimplemented supports referring to trait 2017-07-05 16:46:59 -07:00
print_type_sizes Remove unnecessary unsafe in test/ui/print_type_sizes/nullable.rs 2017-07-22 20:38:40 +02:00
print-fuel
pub
reachable
resolve Adjust new suggestions to the suggestion guidelines 2017-07-21 13:59:17 +02:00
span Rollup merge of #43447 - estebank:import-span, r=nikomatsakis 2017-07-26 06:15:02 -06:00
suggestions Auto merge of #43096 - estebank:ascription-help, r=nikomatsakis 2017-07-23 20:56:20 +00:00
token Merge remote-tracking branch 'origin/master' into proc_macro_api 2017-07-05 08:42:13 -07:00
transmute compiletest: Support custom normalization rules. 2017-07-11 16:57:52 +08:00
type-check Adjust new suggestions to the suggestion guidelines 2017-07-21 13:59:17 +02:00
cast-to-unsized-trait-object-suggestion.rs Move some tests from compile-fail to ui 2017-07-17 08:38:54 +02:00
cast-to-unsized-trait-object-suggestion.stderr Change some helps to suggestions 2017-07-17 10:03:37 +02:00
coercion-missing-tail-expected-type.rs
coercion-missing-tail-expected-type.stderr
deprecated-macro_escape-inner.rs
deprecated-macro_escape-inner.stderr
deprecated-macro_escape.rs
deprecated-macro_escape.stderr
deriving-meta-empty-trait-list.rs
deriving-meta-empty-trait-list.stderr
enum-size-variance.rs compiletest: Support custom normalization rules. 2017-07-11 16:57:52 +08:00
enum-size-variance.stderr compiletest: Support custom normalization rules. 2017-07-11 16:57:52 +08:00
explain.rs
explain.stdout
issue-19100.rs
issue-19100.stderr
issue-22644.rs syntax: Apply recovery for casts to type ascription 2017-07-07 11:53:12 +03:00
issue-22644.stderr Auto merge of #43096 - estebank:ascription-help, r=nikomatsakis 2017-07-23 20:56:20 +00:00
issue-26548.rs
issue-26548.stderr
issue-33525.rs
issue-33525.stderr
issue-35675.rs Move resolve diagnostic instability to compile-fail 2017-07-17 10:16:08 +02:00
issue-35675.stderr Move resolve diagnostic instability to compile-fail 2017-07-17 10:16:08 +02:00
issue-42954.rs syntax: Apply recovery for casts to type ascription 2017-07-07 11:53:12 +03:00
issue-42954.stderr Adjust new suggestions to the suggestion guidelines 2017-07-21 13:59:17 +02:00
loop-break-value-no-repeat.rs
loop-break-value-no-repeat.stderr
method-call-lifetime-args-lint.rs Add an extra note to late_bound_lifetime_arguments error/lint 2017-07-19 23:12:58 +03:00
method-call-lifetime-args-lint.stderr Add an extra note to late_bound_lifetime_arguments error/lint 2017-07-19 23:12:58 +03:00
method-call-lifetime-args.rs Add an extra note to late_bound_lifetime_arguments error/lint 2017-07-19 23:12:58 +03:00
method-call-lifetime-args.stderr Add an extra note to late_bound_lifetime_arguments error/lint 2017-07-19 23:12:58 +03:00
path-lookahead.rs
path-lookahead.stderr
regions-fn-subtyping-return-static.rs
regions-fn-subtyping-return-static.stderr
resolve-error.stderr Change some helps to suggestions 2017-07-17 10:03:37 +02:00
shadowed-type-parameter.rs
shadowed-type-parameter.stderr
static-lifetime.rs
static-lifetime.stderr
test-should-panic-attr.rs
test-should-panic-attr.stderr
update-all-references.sh
update-references.sh