rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.75k stars 258 forks source link

Clarify that drop flag fields only apply to older Rust versions #324

Closed ByteNybbler closed 2 years ago

ByteNybbler commented 2 years ago

This sentence originally confused me and it took me a while to realize that it was referring to an older Rust version rather than some edge case of drop flags in the current Rust version.

Perhaps it might be even better to name the specific Rust version where drop flags were moved out of Drop types and onto the stack. I believe that's tied to MIR, but I haven't managed to confirm about a specific Rust version in regards to the drop flags.