rust/src/test
Tomasz Miąsko 915a581bcb Do not promote values with const drop that need to be dropped
Changes from #88558 allowed using `~const Drop` in constants by
introducing a new `NeedsNonConstDrop` qualif.

The new qualif was also used for promotion purposes, and allowed
promotion to happen for values that needs to be dropped but which
do have a const drop impl.

Since for promoted the drop implementation is never executed,
this lead to observable change in behaviour. For example:

```rust

struct Panic();

impl const Drop for Panic {
    fn drop(&mut self) {
        panic!();
    }
}

fn main() {
    let _ = &Panic();
}
```

Restore the use of `NeedsDrop` qualif during promotion to avoid the issue.
2021-10-18 21:56:57 +02:00
..
assembly test fix: aarch64 atomics are only outlined on Linux. 2021-10-15 06:19:08 +02:00
auxiliary
codegen Auto merge of #89247 - fee1-dead:const-eval-select, r=oli-obk 2021-10-14 10:06:30 +00:00
codegen-units Support incremental in compiletest for non-incremental modes. 2021-09-23 12:16:51 -07:00
debuginfo Fix function-names test for GDB 10.1 2021-10-11 17:20:45 +02:00
incremental Auto merge of #89619 - michaelwoerister:incr-vtables, r=nagisa 2021-10-08 09:04:06 +00:00
mir-opt Bless tests 2021-10-15 02:36:58 -05:00
pretty Use ZST for fmt unsafety 2021-09-21 10:04:44 -05:00
run-make Auto merge of #89343 - Mark-Simulacrum:no-args-queries, r=cjgillot 2021-10-09 13:13:07 +00:00
run-make-fulldeps Add missing bcrypt.lib to make-fulldeps Makefile. 2021-10-15 13:25:39 +02:00
run-pass-valgrind
rustdoc Add test for associated constants in the sidebar 2021-10-12 15:07:11 +02:00
rustdoc-gui Add test for <code> in doc blocks on mobile 2021-10-10 14:24:40 +02:00
rustdoc-js
rustdoc-js-std Fix linkcheck issues 2021-09-12 02:30:24 +00:00
rustdoc-json Remove special-casing of never primitive in rustdoc-json-types 2021-10-08 16:53:39 +02:00
rustdoc-ui Rollup merge of #89907 - GuillaumeGomez:correctly-emit-errors, r=camelid 2021-10-17 07:52:19 +09:00
ui Do not promote values with const drop that need to be dropped 2021-10-18 21:56:57 +02:00
ui-fulldeps Bless tests 2021-10-15 02:36:58 -05:00
COMPILER_TESTS.md