v0.25.0
What's Changed
Resolved nearly all false-positive lints that were caused by improper doc(hidden)
handling — nearly 60% of all false-positives observed in the real world!
- Joint work with @davidhewitt: #576
- Description of how it works, and why it was much more complex than just "pretend
doc(hidden)
items don't exist": https://predr.ag/blog/checking-semver-for-doc-hidden-items/
Proper doc(hidden)
handling requires Rust 1.73+, due to a rustdoc bug in prior versions that causes re-exported hidden items to be inappropriately omitted from rustdoc JSON files. Therefore:
- we drop support for Rust 1.70, and
- we advise against using Rust 1.71-1.72 even though
cargo-semver-checks
will still run with them, since they happen to share a rustdoc JSON format with Rust 1.73.
All Merged PRs
- Remove erroneous curly brace from
module_missing
error format string. by @obi1kenobi in #574 - Weekly
cargo update
of dependencies by @obi1kenobi in #575 - Improve error message for
inherent_method_const_removed
lint. by @obi1kenobi in #577 - Do not consider
#[doc(hidden)]
items part of the public API. by @obi1kenobi in #576 - Weekly
cargo update
of dependencies by @obi1kenobi in #580 - Add counterexample test case for ignoring doc(hidden) items. by @obi1kenobi in #581
- Update Trustfall, trustfall_rustdoc, and gix/tame-index dependencies. by @obi1kenobi in #582
- Release v0.25, featuring correct
#[doc(hidden)]
handling. by @obi1kenobi in #583
Full Changelog: v0.24.2...v0.25.0