Skip to content

fix(diag): Report summaries for unused_deps#17034

Merged
weihanglo merged 14 commits into
rust-lang:masterfrom
epage:passes
May 27, 2026
Merged

fix(diag): Report summaries for unused_deps#17034
weihanglo merged 14 commits into
rust-lang:masterfrom
epage:passes

Conversation

@epage

@epage epage commented May 25, 2026

Copy link
Copy Markdown
Contributor

What does this PR try to resolve?

This aims to bring unused dependencies more inline with parse pass lints in terms of

  • handling of build.warnings
  • lint summary reporting
  • code structure

How to test and review this PR?

It doesn't create a formal pass function yet but that helps highlight that there are more structural things that will need to be changed (e.g. summary reports) that is best left for when we have a better idea of what else will be run in that pass.

@rustbot rustbot added A-build-execution Area: anything dealing with executing the compiler A-documenting-cargo-itself Area: Cargo's documentation S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 25, 2026
@rustbot

rustbot commented May 25, 2026

Copy link
Copy Markdown
Collaborator

r? @weihanglo

rustbot has assigned @weihanglo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, weihanglo


let mut pkg_stats = DiagnosticStats::new();
lint_package_build_results(build_runner, pkg, states, level, &mut pkg_stats)?;
// HACK: as other rules are added to this pass, this needs to move up into the pass

@weihanglo weihanglo May 27, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment for visibility. Looking forwards to the formal pass function!

View changes since the review

@weihanglo weihanglo added this pull request to the merge queue May 27, 2026
Merged via the queue into rust-lang:master with commit 9799fa3 May 27, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 27, 2026
@epage epage deleted the passes branch May 27, 2026 13:56
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jun 3, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jun 3, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jun 3, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
@rustbot rustbot added this to the 1.98.0 milestone Jun 3, 2026
pull Bot pushed a commit to xtqqczze/rust-lang-rustc-dev-guide that referenced this pull request Jun 4, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-build-execution Area: anything dealing with executing the compiler A-documenting-cargo-itself Area: Cargo's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants