External Publication
Visit Post

Traits for function items

Rust Internals [Unofficial] July 2, 2026
Source

For the time of my message, [looking at releases.rs] that would have been version 1.50 or 1.51. A quick way to check old versions without installing them is to use godbolt.org.

It looks like you can - effectively - see the current difference by selecting the “link to executable” option vs. not doing that[1]. Anyway… moving back to 1.50 shows exactly the same distinction, and you can move it back all the way to (including) 1.36… before you run into the problem of MaybeUninit not being stable yet, so you’d have to rewrite the code a bit


  1. though the exact difference in flags is not at all the same as cargo check vs cargo build, codegen for private functions being skipped in one of the modes on Godbolt’s compile explorer, which makes it close enough that I won’t bother being even more accurate about it ↩︎

Discussion in the ATmosphere

Loading comments...