Repository navigation
Fix unused dep annotation - #17625
Merged
Merged
Conversation
Collaborator
|
r? @epage rustbot has assigned @epage. Use Why was this reviewer chosen?The reviewer was selected based on:
|
weihanglo
approved these changes
Oct 23, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 23, 2026
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Oct 24, 2026
Update cargo submodule 11 commits in 15be64aa0859b5c36f7a86d52f7aa0db44ba4d84..cad07cf8e597397fff5d0f6cb79c9f870c0b1dd2 2026-10-20 16:03:21 +0000 to 2026-10-23 22:04:58 +0000 - build-rs: rename `cargo_target_family` to `cargo_cfg_target_family` (rust-lang/cargo#17636) - chore: replace `cfg(any())` with `cfg(false)` (rust-lang/cargo#17633) - feat(timings): peak memory as a column in unit table (rust-lang/cargo#17631) - Change `build_rs::input::cargo_cfg_target_env` to return `Option` (rust-lang/cargo#17632) - Update gix to 0.90.0 and adapt Git error recovery (rust-lang/cargo#17578) - Fix unused dep annotation (rust-lang/cargo#17625) - fix!: stop uplifting rlibs on nightly (rust-lang/cargo#17621) - refactor(config): Pull out the ConfigStore into its own module (rust-lang/cargo#17614) - test: simplify file content assertions (rust-lang/cargo#17617) - perf(context): Don't initialize windows-specific code on all platforms (rust-lang/cargo#17615) - refactor(context): Remove RLS-specific function (rust-lang/cargo#17616)
mehmettoplu-rs
pushed a commit
to mehmettoplu-rs/miri
that referenced
this pull request
Oct 24, 2026
Update cargo submodule 11 commits in 15be64aa0859b5c36f7a86d52f7aa0db44ba4d84..cad07cf8e597397fff5d0f6cb79c9f870c0b1dd2 2026-10-20 16:03:21 +0000 to 2026-10-23 22:04:58 +0000 - build-rs: rename `cargo_target_family` to `cargo_cfg_target_family` (rust-lang/cargo#17636) - chore: replace `cfg(any())` with `cfg(false)` (rust-lang/cargo#17633) - feat(timings): peak memory as a column in unit table (rust-lang/cargo#17631) - Change `build_rs::input::cargo_cfg_target_env` to return `Option` (rust-lang/cargo#17632) - Update gix to 0.90.0 and adapt Git error recovery (rust-lang/cargo#17578) - Fix unused dep annotation (rust-lang/cargo#17625) - fix!: stop uplifting rlibs on nightly (rust-lang/cargo#17621) - refactor(config): Pull out the ConfigStore into its own module (rust-lang/cargo#17614) - test: simplify file content assertions (rust-lang/cargo#17617) - perf(context): Don't initialize windows-specific code on all platforms (rust-lang/cargo#17615) - refactor(context): Remove RLS-specific function (rust-lang/cargo#17616)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR try to resolve?
#17609 showed that when an unused dependency was written as a table, Cargo would lint the
]after the dependency name. This was happening because Cargo tried to annotate the toml key and value of the unused dependency, and when the dep was written as a table, the span for the value would be the whole table, i.e.[dependencies.foo]. To fix this, I decided it was best if Cargo just annotated the key (name) of the dependency, since that is the part that really matters.🤖 LLM involvement: An LLM was used to help find the original manifest so that I could test changes against it
Fixes #17609