From 25a32abef727ce52eb227697a8f097fc2f84a419 Mon Sep 17 00:00:00 2001 From: Igor Petruk Date: Sat, 21 Jan 2023 14:13:51 +0000 Subject: [PATCH] Update Speaker Notes for compile-time.md (#205) * Update Speaker Notes for compile-time.md The definition of memory leaks is indeed blurry, so it is important not have right expectations about this particular kind of error. Co-authored-by: Martin Geisler --- src/why-rust/compile-time.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/why-rust/compile-time.md b/src/why-rust/compile-time.md index f195cbdd..75f20941 100644 --- a/src/why-rust/compile-time.md +++ b/src/why-rust/compile-time.md @@ -22,6 +22,8 @@ are: a value (meaning the destructor is never run). * You can also accidentally create a [reference cycle] with `Rc` or `Arc`. +* In fact, some will consider infinitely populating a collection a memory + leak and Rust does not protect from those. For the purpose of this course, "No memory leaks" should be understood as "Pretty much no *accidental* memory leaks".