$ the-wire · showcase
Cargo preserves locked prerelease deps, rustdoc fixes inlined intra-doc links
By RepoJournal · Filed · About Rust · Composed from the cited sources · methodology
The day's consequential work sits in Cargo and rustdoc: a consumption-side fix for prerelease version pinning that has been unresolved since the resolution side landed, and a rustdoc index change that makes inlined items resolvable under their alternate names.
fix(prerelease): preserve locked prerelease deps rust-lang/cargo
The initial prerelease pinning work only covered resolution creation, so `cargo update --precise <prerelease>` wrote a lockfile that subsequent cargo commands did not honor. Weihanglo's change implements the consumption side, addressing the bug reports collected under rust-lang/cargo#13290.
[rustdoc] Correctly handle intra-doc links on inlined same item with different names rust-lang/rust
Rustdoc keeps `DefId` indexing and adds an `alternatives` entry for the same inlined item reached under a different path, so intra-doc links resolve correctly when a single item is imported under multiple names. GuillaumeGomez chose that over widening the index to `(DefId, Symbol)` because importing the same item under different names is rare and the larger index would not pay for itself.
Account for (uplift) hardlinks when calculating clean file size rust-lang/cargo
`cargo clean` reported apparent size rather than size on disk, so hardlinked artifacts produced nonsense totals. Ranger-ross cites seeing 2Tb reported saved on a 1Tb disk, and notes the fix reports size on disk only, rather than both numbers.
feat(hints): extract mostly-unused diagnostics rust-lang/cargo
The mostly-unused dependency hints move to `annotate-snippets` in the pass phase, which changes behavior when the hint is set in a profile the build does not apply: an unselected profile, a `build-override` with no build scripts. The PR body carries the before/after table per case.
add dirfd support rust-lang/miri
Miri gets `dirfd` by opening both a `DIR` stream and a directory handle in `opendir`, which RalfJung notes leaves a race window, pending std support for retrieving the underlying handle from a `DIR` stream. Related work prepares `statx` for metadata relative to a dirfd, though that cannot be implemented yet.