-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit 0fe0d89
authored
chore(deps): update cargo-semver-checks to v0.40.0 (#15282)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
|
[cargo-semver-checks](https://redirect.github.com/obi1kenobi/cargo-semver-checks)
| minor | `0.39.0` -> `0.40.0` |
---
### Release Notes
<details>
<summary>obi1kenobi/cargo-semver-checks (cargo-semver-checks)</summary>
###
[`v0.40.0`](https://redirect.github.com/obi1kenobi/cargo-semver-checks/releases/tag/v0.40.0)
[Compare
Source](https://redirect.github.com/obi1kenobi/cargo-semver-checks/compare/v0.39.0...v0.40.0)
#### In this release
- 21 new lints, for a total of 148!
- Spotlight: `#[doc(hidden)]` and sealed lints
This release requires Rust 1.83+ both to install (MSRV) and at runtime.
Future releases will require Rust 1.84+.
#### Spotlight: `#[doc(hidden)]` and sealed lints
When is "this trait can be implemented" part of the trait's public API?
At a high level, the answer is: when writing an `impl` of that trait for
our own type doesn't require using any `#[doc(hidden)]` items. But
you've been following `cargo-semver-checks` long enough to know the
*full answer* is much more complex. And getting the right answer here
affects the correctness of a ton of lints!
Good news! This `cargo-semver-checks` release ships with a much more
sophisticated system for analyzing whether traits can be implemented or
are instead "sealed." The new system is more thorough, more nuanced, and
faster to boot!
Read more about it here:
https://predr.ag/blog/when-is-trait-can-be-implemented-public-api/
#### New lints
We added new 21 lints across several categories. Some of the new lints
are error-by-default, while others are merely warnings meant to flag
changes deserving closer review.
API breakage:
- `static_became_unsafe`
ABI and FFI breakage due to changed `repr(C)` type layout:
- `repr_c_enum_struct_variant_fields_reordered`
- `repr_c_plain_struct_fields_reordered`
Item deprecations, which cause lints in downstream use:
- `function_marked_deprecated`
- `global_value_marked_deprecated`
- `macro_marked_deprecated`
- `proc_macro_marked_deprecated`
- `struct_field_marked_deprecated`
- `trait_associated_const_marked_deprecated`
- `trait_associated_type_marked_deprecated`
- `trait_marked_deprecated`
- `trait_method_marked_deprecated`
- `type_associated_const_marked_deprecated`
- `type_method_marked_deprecated`
Code behavior changes, such as changes to sort order of existing types:
- `partial_ord_enum_struct_variant_fields_reordered`
- `partial_ord_enum_variants_reordered`
- `partial_ord_struct_fields_reordered`
Compatibility risks, such as changes that may require a SemVer major
bump to revert, or may otherwise represent unintended API changes
without being SemVer-major themselves:
- `pub_api_sealed_trait_became_unconditionally_sealed`
- `unconditionally_sealed_trait_became_pub_api_sealed`
- `unconditionally_sealed_trait_became_unsealed`
- `pub_api_sealed_trait_became_unsealed`
Thanks to [@​Frank-III](https://redirect.github.com/Frank-III),
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja),
and [@​lovelindhoni](https://redirect.github.com/lovelindhoni) for
contributing lints to this release!
#### All merged PRs
- Require Rust 1.83+ going forward. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1086](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1086)
- Use newer trustfall_rustdoc with only supported rustdoc versions. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1087](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1087)
- Update CI and release profile settings for speed and efficiency. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1088](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1088)
- Eliminate clippy lint. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1089](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1089)
- feat: static became unsafe lint by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1090](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1090)
- new lint: `trait_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1092](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1092)
- Weekly `cargo update` of dependencies by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1097](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1097)
- new lint: `function_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1093](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1093)
- new lint: `trait_method_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1098](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1098)
- new lint `trait_associated_type_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1099](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1099)
- new lint: `trait_associated_const_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1100](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1100)
- new lint: `global_value_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1101](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1101)
- new lint: `macro_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1102](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1102)
- Avoid stack overflow when checking sealing on cyclic trait bounds. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1103](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1103)
- Replace deprecated `sealed` property with new
`unconditionally_sealed`. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1104](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1104)
- Remove outdated TODOs related to trait sealing. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1106](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1106)
- new lint: `proc_macro_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1118](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1118)
- new lint: `struct_field_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1125](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1125)
- fix: check if trait is deprecated or not by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1127](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1127)
- Add `span_end_line` to lints with spans by
[@​suaviloquence](https://redirect.github.com/suaviloquence) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1126](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1126)
- new lint: `type_method_marked_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1130](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1130)
- new lint: `type_associated_const_deprecated` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1131](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1131)
- Weekly `cargo update` of dependencies by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1136](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1136)
- Add a test that fails when generated rustdocs are older than test
crate data by
[@​suaviloquence](https://redirect.github.com/suaviloquence) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1128](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1128)
- add actionlint workflow by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1137](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1137)
- Add zero-tolerance policy for AI slop "contributions". by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1139](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1139)
- Weekly `cargo update` of dependencies by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1140](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1140)
- Add next Rust minor to test matrix by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1142](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1142)
- Mention turbofish use as breakage example in function generics change.
by [@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1143](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1143)
- Eliminate compilation errors from test crates that rustdoc can't
catch. by [@​obi1kenobi](https://redirect.github.com/obi1kenobi)
in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1144](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1144)
- Suppress expected lint in test crate. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1146](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1146)
- Require test crates to pass `cargo check`. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1145](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1145)
- new lint: `repr_c_plain_struct_fields_reordered` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1138](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1138)
- Weekly `cargo update` of dependencies by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1147](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1147)
- Added public api sealed to trait_added_supertrait lint by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1148](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1148)
- Added public api sealed in trait_const_added lint by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1149](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1149)
- Added public sealed api in trait_associated_type_added by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1151](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1151)
- new lint: `repr_c_enum_struct_variant_fields_reordered` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1152](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1152)
- Added public API sealed in trait_method_default_impl removed by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1156](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1156)
- Added public API sealed in trait_unsafe_removed lint by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1157](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1157)
- Added public API sealed in trait_unsafe_added lint by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1158](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1158)
- Added public API sealed in trait_associated_type_default_removed lint
by [@​geetanshjuneja](https://redirect.github.com/geetanshjuneja)
in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1154](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1154)
- Added public API sealed in trait_method_added lint by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1155](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1155)
- Added public api sealed in trait_associated_const_default_removed by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1150](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1150)
- Added public API sealed in trait_method_unsafe_removed by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1159](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1159)
- Added public API sealed in trait_newly_sealed by
[@​geetanshjuneja](https://redirect.github.com/geetanshjuneja) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1160](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1160)
- new lint `partial_ord_struct_field_reordered` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1161](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1161)
- new lint: `partial_ord_enum_variants_reordered` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1163](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1163)
- new lint `partial_ord_enum_struct_variant_fields_reordered` by
[@​Frank-III](https://redirect.github.com/Frank-III) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1165](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1165)
- new lint: `pub_api_sealed_trait_became_unsealed` by
[@​lovelindhoni](https://redirect.github.com/lovelindhoni) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1162](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1162)
- new lint: `unconditionally_sealed_trait_became_unsealed` by
[@​lovelindhoni](https://redirect.github.com/lovelindhoni) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1164](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1164)
- new lint: `pub_api_sealed_trait_became_unconditionally_sealed` by
[@​lovelindhoni](https://redirect.github.com/lovelindhoni) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1166](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1166)
- new lint: `unconditionally_sealed_trait_became_pub_api_sealed` by
[@​lovelindhoni](https://redirect.github.com/lovelindhoni) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1167](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1167)
- Weekly `cargo update` of dependencies by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1168](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1168)
- Build release binaries using Ubuntu 22.04 to avoid too-new glibc dep.
by [@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1170](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1170)
- Use `#![no_std]` in test crates to speed up tests. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1171](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1171)
- Bump mozilla-actions/sccache-action from 0.0.7 to 0.0.8 by
[@​dependabot](https://redirect.github.com/dependabot) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1172](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1172)
- Update dependency in preparation for publishing new version. by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1173](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1173)
- Release cargo-semver-checks v0.40.0 by
[@​obi1kenobi](https://redirect.github.com/obi1kenobi) in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1174](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1174)
#### New Contributors
- [@​geetanshjuneja](https://redirect.github.com/geetanshjuneja)
made their first contribution in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1148](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1148)
- [@​lovelindhoni](https://redirect.github.com/lovelindhoni) made
their first contribution in
[https://github.com/obi1kenobi/cargo-semver-checks/pull/1162](https://redirect.github.com/obi1kenobi/cargo-semver-checks/pull/1162)
**Full Changelog**:
obi1kenobi/cargo-semver-checks@v0.39.0...v0.40.0
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* * * * *" (UTC), Automerge - At any
time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/rust-lang/cargo).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->File tree
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedFilter options
- .github/workflows
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changed+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 |
| - | |
| 104 | + | |
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
|
0 commit comments