Update cargo submodule - #161789
Conversation
|
|
@bors r+ rollup=never p=1 |
This comment has been minimized.
This comment has been minimized.
Update cargo submodule 7 commits in e8cb624d5701824f46a2ec5873cfd59ee3d2f66c..94ba974179df2adb3c911fadf361f03b84aa8f14 2026-08-22 00:23:45 +0000 to 2026-08-25 18:16:11 +0000 - feat(diag): Stabilize cargo-lints (rust-lang/cargo#17298) - chore(deps): Update partial_ref to v0.3.4 (rust-lang/cargo#17392) - refactor: remove ad-hoc `subslice_range` (rust-lang/cargo#17390) - docs(changelog): move build-dir new layout to Changed (rust-lang/cargo#17387) - chore(deps): update msrv (1 version) to v1.98 (rust-lang/cargo#17386) - docs: Use mdbook admonitions (rust-lang/cargo#17384) - chore(ci): exclude resolver-tests from intra doc link checks (rust-lang/cargo#17385)
This comment has been minimized.
This comment has been minimized.
|
💔 Test for 4b7a1b9 failed: CI. Failed job:
|
|
Fist blood! |
|
Okay so
|
The different cargo between bootstrap and opt-dist may become an annoying issue in the future whenever Cargo adds a new lint. |
|
Can we just allow all Cargo lints during the |
Hmm…, there is no environment variable can do that as of now except And if we suppress Cargo lints in opt-dist, we still anyway need to fix those whenever that nightly got promoted to beta, which is a bit better but still annoying for beta bump PR. How does rust-lang/rust deal with clippy lints in general? Does it apply only stable lints from nightly clippy? |
|
We only enable a small subset of Clippy lints, and bump those manually (which doesn't happen often). |
chore: fix cargo lints Fixes two cargo lint erros found during <rust-lang#161789 (comment)>. See each commit message respectively for details.
chore: fix cargo lints Fixes two cargo lint erros found during <rust-lang#161789 (comment)>. See each commit message respectively for details.
chore: fix cargo lints Fixes two cargo lint erros found during <rust-lang#161789 (comment)>. See each commit message respectively for details.
…ieyouxu rustdoc: fix lint `cargo::non_kebab_case_bins` ``` warning: binary `rustdoc_tool_binary` should have a kebab-case name | 1 | /checkout/obj/build/x86_64-unknown-linux-gnu/bootstrap-tools/.../rustdoc_tool_binary | ^^^^^^^^^^^^^^^^^^^ | = note: `cargo::non_kebab_case_bins` is set to `warn` by default help: to change the binary name to `rustdoc-tool-binary`, convert `bin.name` --> src/tools/rustdoc/Cargo.toml:10:8 | 10 - name = "rustdoc_tool_binary" 10 + name = "rustdoc-tool-binary" | warning: `rustdoc-tool` (manifest) generated 1 warning ``` See <https://triage.rust-lang.org/gha-logs/rust-lang/rust/98030530980#L2026-08-26T03:05:00.5389265Z-L2026-08-26T03:05:00.5392627Z> This was found in <rust-lang#161789>.
Rollup merge of #161842 - weihanglo:cargo-lints, r=jieyouxu chore: fix cargo lints Fixes two cargo lint erros found during <#161789 (comment)>. See each commit message respectively for details.
Rollup merge of #161843 - weihanglo:rustdoc-cargo-lints, r=jieyouxu rustdoc: fix lint `cargo::non_kebab_case_bins` ``` warning: binary `rustdoc_tool_binary` should have a kebab-case name | 1 | /checkout/obj/build/x86_64-unknown-linux-gnu/bootstrap-tools/.../rustdoc_tool_binary | ^^^^^^^^^^^^^^^^^^^ | = note: `cargo::non_kebab_case_bins` is set to `warn` by default help: to change the binary name to `rustdoc-tool-binary`, convert `bin.name` --> src/tools/rustdoc/Cargo.toml:10:8 | 10 - name = "rustdoc_tool_binary" 10 + name = "rustdoc-tool-binary" | warning: `rustdoc-tool` (manifest) generated 1 warning ``` See <https://triage.rust-lang.org/gha-logs/rust-lang/rust/98030530980#L2026-08-26T03:05:00.5389265Z-L2026-08-26T03:05:00.5392627Z> This was found in <#161789>.
chore: fix cargo lints Fixes two cargo lint erros found during <rust-lang/rust#161789 (comment)>. See each commit message respectively for details.
rustdoc: fix lint `cargo::non_kebab_case_bins` ``` warning: binary `rustdoc_tool_binary` should have a kebab-case name | 1 | /checkout/obj/build/x86_64-unknown-linux-gnu/bootstrap-tools/.../rustdoc_tool_binary | ^^^^^^^^^^^^^^^^^^^ | = note: `cargo::non_kebab_case_bins` is set to `warn` by default help: to change the binary name to `rustdoc-tool-binary`, convert `bin.name` --> src/tools/rustdoc/Cargo.toml:10:8 | 10 - name = "rustdoc_tool_binary" 10 + name = "rustdoc-tool-binary" | warning: `rustdoc-tool` (manifest) generated 1 warning ``` See <https://triage.rust-lang.org/gha-logs/rust-lang/rust/98030530980#L2026-08-26T03:05:00.5389265Z-L2026-08-26T03:05:00.5392627Z> This was found in <rust-lang/rust#161789>.
96c36b7 to
7e2f1bf
Compare
This comment has been minimized.
This comment has been minimized.
|
Let's see how close we are @bors try jobs=dist-x86_64-linux |
This comment has been minimized.
This comment has been minimized.
Update cargo submodule try-job: dist-x86_64-linux
These commits follow the lint `cargo::non_kebab_case_bins` https://doc.rust-lang.org/nightly/cargo/reference/lints.html#non_kebab_case_bins The failure was found in <rust-lang/rust#161789 (comment)> when syncing Cargo submodule. * `clippy_dev` `package.name` got renamed to `clippy-dev`. * Expect no actual developer workflow changes as people usually run `cargo dev` via `.cargo/config.toml` alias. *‼️ One caveat of this is that the next subtree sync need to also update the name in rust-lang/rust's Cargo.lock * `clippy_dummy`, because it is published already, rename its bin name directly as `clippy`. This is a dummy package so it doesn't matter that much, as we are unlikely to publish new versions. * Test snapshots and test binary names are also converted to dashes. They are less controversial than above as being completely internal. changelog: none
|
💔 Test for e09aaf3 failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
Nice. We looks like we have fixed everything and just need to wait for rustfmt and clippy subtree sync back to rust-lang/rust. |
7e2f1bf to
dbe61c9
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
|
This is currently blocked on clippy subtree sync: #162135 |
dbe61c9 to
3c7e104
Compare
This comment has been minimized.
This comment has been minimized.
3c7e104 to
d9cd2fe
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
View all comments
23 commits in e8cb624d5701824f46a2ec5873cfd59ee3d2f66c..3167045fceb698d70e0de548779088178e2bc10a
2026-08-22 00:23:45 +0000 to 2026-09-01 13:26:17 +0000
@rustbot merge/delegate(chore(triagebot): enable@rustbot merge/delegatecargo#17415)subslice_range(refactor: remove ad-hocsubslice_rangecargo#17390)