From b0a9c630f2fa3920cde3fd3f114b0c2be992149c Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Wed, 26 Jul 2023 10:31:25 +0200 Subject: [PATCH] Revert "`std::mem::drop` is in the prelude" (#1031) Revert "`std::mem::drop` is in the prelude (#1027)" This reverts commit 5a8bf5624ddd711ff39ff5f13c3e25ae30098e11. --- src/traits/drop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traits/drop.md b/src/traits/drop.md index a5dd37f2..7e9af839 100644 --- a/src/traits/drop.md +++ b/src/traits/drop.md @@ -34,7 +34,7 @@ fn main() { Discussion points: * Why doesn't `Drop::drop` take `self`? - * Short-answer: If it did, `drop` would be called at the end of + * Short-answer: If it did, `std::mem::drop` would be called at the end of the block, resulting in another call to `Drop::drop`, and a stack overflow! * Try replacing `drop(a)` with `a.drop()`.