From d4759128115e496885ddad2f60c9ed585755402f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 23 Jan 2022 21:23:40 +0100 Subject: [PATCH] Rust no longer optimizes loops away --- blog/content/edition-3/posts/01-minimal-kernel/index.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/blog/content/edition-3/posts/01-minimal-kernel/index.md b/blog/content/edition-3/posts/01-minimal-kernel/index.md index c4d58cda..44e22871 100644 --- a/blog/content/edition-3/posts/01-minimal-kernel/index.md +++ b/blog/content/edition-3/posts/01-minimal-kernel/index.md @@ -146,12 +146,6 @@ The [`PanicInfo` parameter][PanicInfo] contains the file and line where the pani [diverging function]: https://doc.rust-lang.org/1.30.0/book/first-edition/functions.html#diverging-functions [“never” type]: https://doc.rust-lang.org/nightly/std/primitive.never.html -
- -A side note about `loop {}`: There is currently a bug in LLVM (the code generator used by Rust) that [incorrectly optimizes away loops](https://github.com/rust-lang/rust/issues/28728) in some cases. Fortunately, this [no longer applies to empty loops](https://github.com/rust-lang/rust/pull/77972) and should also be [fixed in general](https://github.com/rust-lang/rust/issues/28728#issuecomment-766128831) soon. - -
- After defining a panic handler, only the `eh_personality` language item error remains: ```