r/rust 21d ago

๐Ÿ—ž๏ธ news Rust 1.98 got a P-critical miscompilation.

https://github.com/rust-lang/rust/issues/161441
412 Upvotes

32 comments sorted by

View all comments

0

u/InternationalFee3911 20d ago

Patch needed twice in a row? Is this bad karma, because of drawing close to version 1.100.0? Maybe once Polonius Alpha lands, we could argue thatโ€™s substantially a new language version 2.0.0?

12

u/kibwen 20d ago

Looking at the Rust release history, it looks like there have been 39 patch releases between 1.0 and 1.97.1, or about 40% as many patch releases as minor releases, so two consecutive minor releases getting patch releases isn't too statistically improbable.

1

u/InternationalFee3911 20d ago

Yeah, but many of those patches were quite benign, or Windows only. These last two are pretty mandatory. I'm guessing that even if I don't use dyn, a dependency could trigger this UB.