rust/src/test
bors f9157f5b86 Auto merge of #51242 - ytausky:mut-ref, r=estebank
Suggest not mutably borrowing a mutable reference

This PR would (hopefully) solve #45392. I deviated a bit from @estebank's instructions since the error span only included the borrowed expression (e.g. the `b` in `&mut b`). I also didn't check the mutability of the local binding, since this whole case is concerned with an immutable local.

I can see two outstanding questions:
1. `note_immutability_blame` is called in two places, but I only have one test case. I think it covers the call in `report_bckerror`, but I'm not sure how to trigger the call from `report_aliasability_violation`.
2. There is one failing test, where the local binding is `self: &mut Self`. I'm not entirely sure what the correct output should be, but I think the new message should also apply. Unfortunately, since this parameter is parsed differently, its `let_span` covers both the pattern and the type, leading to a wrong suggestion text. I'm not sure how to correctly identify this case.
2018-06-05 01:47:13 +00:00
..
auxiliary
codegen Auto merge of #50521 - gnzlbg:simd_float, r=alexcrichton 2018-05-28 16:54:44 +00:00
codegen-units Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
compile-fail add more tests 2018-06-03 13:46:20 +02:00
compile-fail-fulldeps Make anon params lint warn-by-default 2018-05-27 14:08:45 -05:00
debuginfo Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
incremental Auto merge of #50653 - oli-obk:bad_const, r=cramertj 2018-05-18 17:17:35 +00:00
incremental-fulldeps Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
mir-opt rustc: use syntactic (instead of visibility) source info where appropriate. 2018-05-30 20:30:10 +03:00
parse-fail Fix test 2018-05-26 12:03:50 -07:00
pretty Remove all unstable placement features 2018-04-03 11:02:34 +02:00
run-fail move simd-minmax-test to run-pass; require llvm 7 2018-05-24 16:04:38 +02:00
run-fail-fulldeps Remove syntax and syntax_pos thread locals 2018-03-14 11:56:01 +01:00
run-make turn run-make test into a run-make-fulldeps test 2018-06-03 19:57:49 +02:00
run-make-fulldeps turn run-make test into a run-make-fulldeps test 2018-06-03 19:57:49 +02:00
run-pass Auto merge of #51328 - oli-obk:no_union_promotion, r=eddyb 2018-06-04 11:29:38 +00:00
run-pass-fulldeps Make anon params lint warn-by-default 2018-05-27 14:08:45 -05:00
run-pass-valgrind
rustdoc Auto merge of #50953 - GuillaumeGomez:attributes-in-other-places, r=QuietMisdreavus 2018-06-03 00:31:13 +00:00
rustdoc-js Fix invalid deduplication 2018-05-12 19:16:37 +02:00
rustdoc-ui Show which line the link is coming from. 2018-06-03 18:25:04 +08:00
rustfix test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
ui Auto merge of #51242 - ytausky:mut-ref, r=estebank 2018-06-05 01:47:13 +00:00
ui-fulldeps rework to report errors from crates in a consistent order 2018-06-01 11:00:18 -04:00
COMPILER_TESTS.md Update docs and diagnostics 2018-05-17 16:28:36 +02:00