rust/src/test
bors 5a2ca1a6f1 Auto merge of #55657 - davidtwco:issue-55651, r=pnkfelix
NLL Diagnostic Review 3: Unions not reinitialized after assignment into field

Fixes #55651, #55652.

This PR makes two changes:

First, it updates the dataflow builder to add an init for the place
containing a union if there is an assignment into the field of
that union.

Second, it stops a "use of uninitialized" error occuring when there is an
assignment into the field of an uninitialized union that was previously
initialized. Making this assignment would re-initialize the union, as
tested in `src/test/ui/borrowck/borrowck-union-move-assign.nll.stderr`.
The check for previous initialization ensures that we do not start
supporting partial initialization yet (cc #21232, #54499, #54986).

This PR also fixes #55652 which was marked as requiring investigation
as the changes in this PR add an error that was previously missing
(and mentioned in the review comments) and confirms that the error
that was present is correct and a result of earlier partial
initialization changes in NLL.

r? @pnkfelix (due to earlier work with partial initialization)
cc @nikomatsakis
2018-11-11 17:05:36 +00:00
..
auxiliary
codegen Support memcpy/memmove with differing src/dst alignment 2018-11-04 18:54:37 +01:00
codegen-units More mono items are generated now 2018-10-25 16:47:35 +02:00
compile-fail Auto merge of #54183 - qnighy:by-value-object-safety, r=oli-obk 2018-10-27 19:29:35 +00:00
compile-fail-fulldeps Update TypedArena tests 2018-10-19 14:34:44 +02:00
debuginfo Update lldb 2018-11-06 11:46:25 -07:00
incremental Fix tests and assertions; add some comments 2018-10-26 09:50:51 +13:00
incremental-fulldeps Ignore new test on Windows 2018-09-21 10:05:23 -07:00
mir-opt Don't inline virtual calls (take 2) 2018-11-09 22:11:40 -05:00
pretty abolish ICE when pretty-printing async block 2018-10-02 23:02:51 -07:00
run-fail Fix two run-fail tests for asmjs 2018-11-04 18:50:57 +01:00
run-fail-fulldeps mv (mod) codemap source_map 2018-08-19 23:01:00 +02:00
run-make Auto merge of #53996 - sekineh:thumb-run, r=japaric 2018-11-06 18:58:31 +00:00
run-make-fulldeps Correct alignment of atomic types and (re)add Atomic{I,U}128 2018-10-27 13:47:11 +03:00
run-pass Rollup merge of #55687 - alexreg:fix-24010, r=scalexm 2018-11-11 00:21:11 +01:00
run-pass-fulldeps Point at macro definition when no rules expect token 2018-10-23 21:44:46 -07:00
run-pass-valgrind Remove license headers from unsized-locals tests. 2018-10-24 23:27:17 +09:00
rustdoc Rollup merge of #55453 - Aaron1011:fix/rustdoc-lifetime, r=pnkfelix 2018-11-07 18:01:48 +08:00
rustdoc-js Remove outdated rustdoc PinBox tests 2018-09-18 01:42:27 -07:00
rustdoc-ui update rustdoc-ui/failed-doctest-output test 2018-11-02 17:17:02 -05:00
rustfix
ui Auto merge of #55657 - davidtwco:issue-55651, r=pnkfelix 2018-11-11 17:05:36 +00:00
ui-fulldeps Feature gate extern prelude additions from extern crate items 2018-10-24 00:14:50 +03:00
COMPILER_TESTS.md Link compiler test documentation to rustc-guide 2018-08-10 08:05:48 -06:00