Skip to content

Comment on Rust 1.39

Comments

An important bugfix in 1.39.0 that wasn't mentioned in the release announcement is probably: https://github.com/rust-lang/rust/pull/63402

It's important because unless rustfmt is available, bindgen would put everything onto one line: https://github.com/rust-lang/rust-bindgen/issues/1600

Rustc would generate (unrelated) warnings for the generated code but before the bugfix it'd print the entire line, hitting the maximum log size limit on CI and causing the build to fail because of that.

Another fix (one mentioned in detailed release notes) is where asinh(-0.0) used to return 0.0

These unexpected behaviours are tough to nail down when one is trying to get the code/setup working. Really appreciate the time these fixes potentially save for future users. The complex nature probably also hints at maturity of Rust codebase.

Replying to myself here as I can't edit any more: this bugfix needs cargo support to become active, which has still to arrive: https://github.com/rust-lang/cargo/pull/7315

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.