rust/src/test
bors 7dae5c0e06 Auto merge of #51686 - nikomatsakis:issue-51415-borrowck-match-default-bindings-bug, r=eddyb
yet another "old borrowck" bug around match default bindings

We were getting the type of the parameter from its pattern, but that didn't include adjustments. I did a `ripgrep` around and this seemed to be the only affected case.

The reason this didn't show up as an ICE earlier is that mem-categorization is lenient with respect to weird discrepancies. I am going to add more delay-span-bug calls shortly around that (I'll push onto the PR).

This example is an ICE, but I presume that there is a way to make a soundness example out of this -- it basically ignores borrows occuring inside match-default-bindings in a closure, though only if the implicit deref is at the top-level. It happens though that this occurs frequently in iterators, which often give a `&T` parameter.

Fixes #51415
Fixes #49534

r? @eddyb
2018-06-22 06:36:11 +00:00
..
auxiliary
codegen test: Ignore some problematic tests on powerpc and powerpc64* 2018-06-17 12:00:47 +02:00
codegen-units Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
compile-fail Auto merge of #51463 - estebank:error-codes, r=nikomatsakis 2018-06-22 03:24:36 +00: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 #51414 - oli-obk:impl_trait_type_def, r=pnkfelix 2018-06-18 14:34:52 +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 Implement RFC 2421, 'Keyword unreservations (pure, sizeof, alignof, offsetof)' 2018-06-09 14:15:57 -07:00
pretty Remove all unstable placement features 2018-04-03 11:02:34 +02:00
run-fail Fix tests 2018-06-05 10:35:44 +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 rustc: rename ty::maps to ty::query. 2018-06-14 18:05:12 +03:00
run-pass Rename PathParameter(s) to GenericArg(s) 2018-06-20 12:19:04 +01:00
run-pass-fulldeps Auto merge of #50383 - stevepentland:union-derive, r=oli-obk 2018-06-19 08:50:41 +00:00
run-pass-valgrind Remove some '#[feature]' attributes for stabilized features 2018-06-11 13:48:57 -07:00
rustdoc Auto merge of #51425 - QuietMisdreavus:thats-def-a-namespace-there, r=petrochenkov 2018-06-17 09:48:10 +00:00
rustdoc-js Add rustdoc-js tester should-fail option 2018-06-16 00:13:28 +02:00
rustdoc-ui Rename intra-doc lint 2018-06-13 23:30:34 +02:00
rustfix Removed various update-reference and update-all-references scripts 2018-06-13 18:15:50 -04:00
ui Auto merge of #51686 - nikomatsakis:issue-51415-borrowck-match-default-bindings-bug, r=eddyb 2018-06-22 06:36:11 +00:00
ui-fulldeps Removed various update-reference and update-all-references scripts 2018-06-13 18:15:50 -04:00
COMPILER_TESTS.md Update docs and diagnostics 2018-05-17 16:28:36 +02:00