rust/src/test
Ralf Jung 5c61a8dc34
Rollup merge of #71824 - ecstatic-morse:const-check-post-drop-elab, r=oli-obk
Check for live drops in constants after drop elaboration

Resolves #66753.

This PR splits the MIR "optimization" pass series in two and introduces a query–`mir_drops_elaborated_and_const_checked`–that holds the result of the `post_borrowck_cleanup` analyses and checks for live drops. This query is invoked in `rustc_interface` for all items requiring const-checking, which means we now do `post_borrowck_cleanup` for items even if they are unused in the crate.

As a result, we are now more precise about when drops are live. This is because drop elaboration can e.g. eliminate drops of a local when all its fields are moved from. This does not mean we are doing value-based analysis on move paths, however; Storing a `Some(CustomDropImpl)` into a field of a local will still set the qualifs for that entire local.

r? @oli-obk
2020-06-15 09:57:20 +02:00
..
assembly Added comment about static variables 2020-05-24 08:20:40 +02:00
auxiliary test: Fix warnings in rust_test_helpers.c 2020-05-06 23:54:05 +03:00
codegen Rollup merge of #72977 - tblah:riscv-codegen-llvm10, r=nikomatsakis 2020-06-07 18:11:29 +02:00
codegen-units Keep codegen units unmerged when building compiler builtins 2020-04-06 00:00:00 +00:00
compile-fail Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
debuginfo ret has been optimized away in debuginfo test 2020-05-16 17:15:24 -07:00
incremental Auto merge of #72520 - jonas-schievink:cleanup-userty, r=matthewjasper 2020-05-25 06:17:15 +00:00
mir-opt Prefer the associated consts for pattern matching error 2020-06-13 01:18:18 +00:00
pretty pretty/asm.rs should only be tested for x86_64 and not AArch64 2020-06-13 00:41:39 -07:00
run-make Use Cell::take in a couple places 2020-04-26 11:50:53 +02:00
run-make-fulldeps Rollup merge of #72952 - pnkfelix:regression-test-for-issue-70924, r=nikomatsakis 2020-06-07 18:11:27 +02:00
run-pass-valgrind
rustdoc Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
rustdoc-js Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-js-std Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-ui remove extra space from crate-level doctest names 2020-05-15 23:56:23 -04:00
rustfix
ui Rollup merge of #71824 - ecstatic-morse:const-check-post-drop-elab, r=oli-obk 2020-06-15 09:57:20 +02:00
ui-fulldeps Fix pprust-expr-roundtrip 2020-06-10 17:30:11 -04:00
COMPILER_TESTS.md