Post

I'm taking a few days off from work, let's see how far I can get with having cargo-semver-checks scan the Rust standard library for accidental breakage... Idea courtesy of a random hallway conversation with @amanieu.bsky.social at the Rust All Hands part of @rustnl.bsky.social this year.

0 reposts22 likes

Second, the last required upstream PR got merged into rustdoc! It lets us know which default values (like on associated consts, or default method impls in traits) are considered stable and therefore public API. This is the last "partial stability" mechanism we need. github.com/rust-lang/ru...

github.comInclude default-stability info in rustdoc JSON. by obi1kenobi · Pull Request #158468 · rust-lang/rustAdd a default_unstable field on associated constants, associated types, and functions. The field is populated only when those items appear inside a trait, only when there's a default present, a...

It's Wednesday, day 3. Default-stability is in rustdoc JSON in today's nightly Rust. Only *stable* defaults are public API, so we pretend unstable values don't exist. I'm working on a PR for this, and also on type normalization improvements to let us have type-checking lints 👀