Skip to content

Commit 086cf8f

Browse files
committed
Fix incorrect characterization of dead-fn-elimination option
The dead functions should already be removed by the linker, so this option is only an improvement in compile times, not in binary size. Thanks to @bjorn3 for raising this issue at https://rust-osdev.zulipchat.com/#narrow/channel/435142-newsletter/topic/Incorrect.20characterization.20of.20-Zdead-fn-elimination
1 parent eaa22f3 commit 086cf8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/this-month/2026-05/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ In this section, we collect recent updates to `rustc`, `cargo`, and other toolin
7575
- [Promote five Thumb-mode bare-metal Arm targets to Tier 2](https://github.com/rust-lang/compiler-team/issues/985)
7676
- A compiler-team proposal entered final comment period to promote additional `thumb*-none-eabi*` bare-metal targets.
7777
- [Add `-Zdead-fn-elimination`](https://github.com/rust-lang/compiler-team/issues/976)
78-
- A compiler-team proposal entered final comment period for a nightly codegen option that skips functions unreachable from exported symbols, which could help size-sensitive bare-metal and freestanding binaries.
78+
- A compiler-team proposal entered final comment period for a nightly codegen option that skips functions unreachable from exported symbols, which could improve compile time. Improvements on binary size are [not expected](https://rust-osdev.zulipchat.com/#narrow/channel/435142-newsletter/topic/Incorrect.20characterization.20of.20-Zdead-fn-elimination) though since the linker should already eliminate dead functions today.
7979

8080
## `rust-osdev` Projects
8181

0 commit comments

Comments
 (0)