google / google/comprehensive-rust
`Drop` slide should mention drop glue by name in speaker notes
Open
- Dominant language
- Rust
- Stars
- 33.4k
- Forks
- 2.1k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 10
Description
The separation of `Drop` (which can add custom logic before fields are dropped) from the built-in logic that drops fields afterward is a critical part of understanding how object destruction works in Rust. The latter half is known as "drop glue", as [mentioned by the std docs](https://doc.rust-lang.org/std/ops/trait.Drop.html).
I always mention this name while teaching so that students have a name for this important phase of object destruction; we should mention it in the speaker notes so that students can come back to it and don't need to read the std docs to find out what this is called.
Contributor guide
Assessment
This issue has not been assessed yet.