logoalt Hacker News

afdbcreid • today at 1:48 PM • 1 reply • view on HN

A reasonable conjecture was raised on lobsters that this is because `#[inline]` makes actual codegen (LLVM IR and down from MIR) lazy, and most `Debug` impls are never used.


Replies

infogulch • today at 3:06 PM

How much code is never used and compilation could be skipped entirely? Maybe applying a reachability pass to skip compiling unused code would be helpful.

➕ show 2 replies