rust/library/core/src/ops
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
..
arith.rs enable rust_2018_idioms for doctests 2023-05-07 00:12:29 +03:00
bit.rs rm const traits in libcore 2023-04-16 06:49:27 +00:00
control_flow.rs rm const traits in libcore 2023-04-16 06:49:27 +00:00
deref.rs rm const traits in libcore 2023-04-16 06:49:27 +00:00
drop.rs hedge for future changes 2023-05-12 15:28:51 +02:00
function.rs readd const_trait to Drop, Destruct, and Fn* 2023-04-16 09:25:23 +00:00
generator.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
index.rs Auto merge of #110393 - fee1-dead-contrib:rm-const-traits, r=oli-obk 2023-04-19 13:03:40 +00:00
index_range.rs replace advance_by returning usize with Result<(), NonZeroUsize> 2023-03-27 16:03:14 +02:00
mod.rs Update coerce_unsized tracking issue from #27732 to #18598 2022-12-19 23:09:47 -08:00
range.rs core is now compilable 2023-04-16 07:20:26 +00:00
try_trait.rs core is now compilable 2023-04-16 07:20:26 +00:00
unsize.rs Update coerce_unsized tracking issue from #27732 to #18598 2022-12-19 23:09:47 -08:00