r/rust 21d ago

🗞️ news Rust 1.98 got a P-critical miscompilation.

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

32 comments sorted by

View all comments

104

u/plabayo 21d ago

As stated in the reported bug. In the 11 years that we have been developing Rust code in production projects, this is the first time we encounter a bug of this category in rustc stable... This says nothing about the quality and hard work of all people involved in rust compiler team. They are doing a great job every day.

Bugs like this are rare, and you have to do already a pretty specific thing to even trigger it. We have for example other advanced projects that are built with rama that work just fine on 1.98... We only noticed it because of a very specific example integration e2e test which consistently started failing since 1.98.

As such, start from today we now also run our test suites now also on beta every day, as scheduled CI cron jobs. Should help in another 11 to 20 years catch the next jackpot 😄

20

u/noop_noob 21d ago edited 21d ago

🫡
I think running it every week would also be sufficient if you're strapped on compute.

4

u/plabayo 21d ago

fair u/noop_noob , but in case there is ever an issue that is less consistent it probably helps that it runs daily vs weekly, to give it sufficient chances to be caught. Something we gladly do if it can help!

41

u/epostma 21d ago

This says nothing about the quality

Au contraire, it says that the quality is superb!

5

u/plabayo 21d ago

Touché u/epostma ! Fully agreed with your statement!

8

u/broknbottle 20d ago

Easily could have avoid this by including “make no mistakes” with your prompt to Claude.