rust/tests/ui/drop
bors 9850584a4e Auto merge of #103413 - RalfJung:phantom-dropck, r=lcnr
PhantomData: fix documentation wrt interaction with dropck

As far as I could find out, the `PhantomData`-dropck interaction *only* affects code using `may_dangle`. The documentation in the standard library has not been updated for 8 years and thus stems from a time when Rust still used "parametric dropck", before [RFC 1238](https://rust-lang.github.io/rfcs/1238-nonparametric-dropck.html). Back then what the docs said was correct, but with `may_dangle` dropck it stopped being entirely accurate and these days, with NLL, it is actively misleading.

Fixes https://github.com/rust-lang/rust/issues/102810
Fixes https://github.com/rust-lang/rust/issues/70841
Cc `@nikomatsakis` I hope what I am saying here is right.^^
2023-05-13 00:23:51 +00:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop_order.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-foreign-fundamental.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-foreign-fundamental.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-if-let-binding.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-on-empty-block-exit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-on-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-struct-as-object.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-trait-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-trait-generic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-uninhabited-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-with-type-ascription-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-with-type-ascription-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dropck_legal_cycles.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dropck-eyepatch-extern-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dropck-eyepatch-manuallydrop.rs add test for may_dangle and ManuallyDrop 2023-02-15 17:40:27 +01:00
dropck-eyepatch-reorder.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dropck-eyepatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dynamic-drop-async.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dynamic-drop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-979.rs Move tests 2023-05-08 17:58:01 -03:00
issue-2734.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-2735-2.rs Move tests 2023-02-16 11:42:35 -03:00
issue-2735-3.rs Move tests 2023-02-16 11:42:35 -03:00
issue-2735.rs Move tests 2023-02-16 11:42:35 -03:00
issue-10028.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-17718-const-destructors.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-21486.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-23338-ensure-param-drop-order.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-30018-nopanic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-35546.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-48962.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-90752-raw-ptr-shenanigans.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-90752.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-100276.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-103107.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-drop-flag-size.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nondrop-cycle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat-drop-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat-drop-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat-drop.rs Adjust tests for new drop and forget lints 2023-05-10 19:36:02 +02:00
terminate-in-initializer.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
use_inline_dtor.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00