Skip to content

docs(lints): Add a false-positive example solution#17147

Merged
weihanglo merged 1 commit into
rust-lang:masterfrom
epage:false
Jun 29, 2026
Merged

docs(lints): Add a false-positive example solution#17147
weihanglo merged 1 commit into
rust-lang:masterfrom
epage:false

Conversation

@epage

@epage epage commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What does this PR try to resolve?

Raised at #t-cargo > Reviewing the linting system @ 💬

How to test and review this PR?

@rustbot rustbot added A-documenting-cargo-itself Area: Cargo's documentation S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 29, 2026
@rustbot

rustbot commented Jun 29, 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

@epage

This comment was marked as resolved.

@rustbot

rustbot commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master 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.

workspace = true
```

or make it explicit that you don't intend to inherit:

@weihanglo weihanglo Jun 29, 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.

Do you think this would more understandable that it is the empty table that change the behavior?

Suggested change
or make it explicit that you don't intend to inherit:
or make it explicit with an empty `[lints]` table that you don't intend to inherit:

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Don't care strongly, so sure. I did swap the ordering so the intent was before the implementation.

@weihanglo weihanglo enabled auto-merge June 29, 2026 17:52
@weihanglo weihanglo added this pull request to the merge queue Jun 29, 2026
Merged via the queue into rust-lang:master with commit 1ee1ce4 Jun 29, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 29, 2026
@epage epage deleted the false branch June 30, 2026 01:31
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jul 2, 2026
Update cargo submodule

13 commits in a335d47ff8036918d3d548dabd513dc0444096a9..f40cc7a13a8ebe3dd0a35b1e0e37a1e26c8bb0e5
2026-06-26 20:39:41 +0000 to 2026-07-01 18:57:21 +0000
- chore(deps): update rust crate gix to 0.85.0 (rust-lang/cargo#17159)
- Fixed `Compilation::deps_output` only taking the last dep (rust-lang/cargo#17164)
- chore(deps): update taiki-e/install-action action to v2.82.7 (rust-lang/cargo#17163)
- chore(deps): update rust crate rusqlite to 0.40.0 (rust-lang/cargo#17162)
- chore(deps): update rust crate itertools to 0.15.0 (rust-lang/cargo#17160)
- chore(deps): update compatible (rust-lang/cargo#17156)
- chore(deps): update crate-ci/typos action to v1.48.0 (rust-lang/cargo#17158)
- chore(deps): update alpine docker tag to v3.24 (rust-lang/cargo#17157)
- chore(deps): update actions/checkout action to v6.0.3 (rust-lang/cargo#17155)
- chore: upgrade to [email protected] (rust-lang/cargo#17152)
- test(help): Don't hang on Mac with a custom man pager (rust-lang/cargo#17151)
- docs(lints): Add a false-positive example solution (rust-lang/cargo#17147)
- docs(lints): Reduce the superfluous whitespace by grouping bullet items (rust-lang/cargo#17146)

r? ghost
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jul 2, 2026
Update cargo submodule

13 commits in a335d47ff8036918d3d548dabd513dc0444096a9..f40cc7a13a8ebe3dd0a35b1e0e37a1e26c8bb0e5
2026-06-26 20:39:41 +0000 to 2026-07-01 18:57:21 +0000
- chore(deps): update rust crate gix to 0.85.0 (rust-lang/cargo#17159)
- Fixed `Compilation::deps_output` only taking the last dep (rust-lang/cargo#17164)
- chore(deps): update taiki-e/install-action action to v2.82.7 (rust-lang/cargo#17163)
- chore(deps): update rust crate rusqlite to 0.40.0 (rust-lang/cargo#17162)
- chore(deps): update rust crate itertools to 0.15.0 (rust-lang/cargo#17160)
- chore(deps): update compatible (rust-lang/cargo#17156)
- chore(deps): update crate-ci/typos action to v1.48.0 (rust-lang/cargo#17158)
- chore(deps): update alpine docker tag to v3.24 (rust-lang/cargo#17157)
- chore(deps): update actions/checkout action to v6.0.3 (rust-lang/cargo#17155)
- chore: upgrade to [email protected] (rust-lang/cargo#17152)
- test(help): Don't hang on Mac with a custom man pager (rust-lang/cargo#17151)
- docs(lints): Add a false-positive example solution (rust-lang/cargo#17147)
- docs(lints): Reduce the superfluous whitespace by grouping bullet items (rust-lang/cargo#17146)

r? ghost
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jul 3, 2026
Update cargo submodule

13 commits in a335d47ff8036918d3d548dabd513dc0444096a9..f40cc7a13a8ebe3dd0a35b1e0e37a1e26c8bb0e5
2026-06-26 20:39:41 +0000 to 2026-07-01 18:57:21 +0000
- chore(deps): update rust crate gix to 0.85.0 (rust-lang/cargo#17159)
- Fixed `Compilation::deps_output` only taking the last dep (rust-lang/cargo#17164)
- chore(deps): update taiki-e/install-action action to v2.82.7 (rust-lang/cargo#17163)
- chore(deps): update rust crate rusqlite to 0.40.0 (rust-lang/cargo#17162)
- chore(deps): update rust crate itertools to 0.15.0 (rust-lang/cargo#17160)
- chore(deps): update compatible (rust-lang/cargo#17156)
- chore(deps): update crate-ci/typos action to v1.48.0 (rust-lang/cargo#17158)
- chore(deps): update alpine docker tag to v3.24 (rust-lang/cargo#17157)
- chore(deps): update actions/checkout action to v6.0.3 (rust-lang/cargo#17155)
- chore: upgrade to [email protected] (rust-lang/cargo#17152)
- test(help): Don't hang on Mac with a custom man pager (rust-lang/cargo#17151)
- docs(lints): Add a false-positive example solution (rust-lang/cargo#17147)
- docs(lints): Reduce the superfluous whitespace by grouping bullet items (rust-lang/cargo#17146)

r? ghost
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jul 3, 2026
Update cargo submodule



13 commits in a335d47ff8036918d3d548dabd513dc0444096a9..f40cc7a13a8ebe3dd0a35b1e0e37a1e26c8bb0e5
2026-06-26 20:39:41 +0000 to 2026-07-01 18:57:21 +0000
- chore(deps): update rust crate gix to 0.85.0 (rust-lang/cargo#17159)
- Fixed `Compilation::deps_output` only taking the last dep (rust-lang/cargo#17164)
- chore(deps): update taiki-e/install-action action to v2.82.7 (rust-lang/cargo#17163)
- chore(deps): update rust crate rusqlite to 0.40.0 (rust-lang/cargo#17162)
- chore(deps): update rust crate itertools to 0.15.0 (rust-lang/cargo#17160)
- chore(deps): update compatible (rust-lang/cargo#17156)
- chore(deps): update crate-ci/typos action to v1.48.0 (rust-lang/cargo#17158)
- chore(deps): update alpine docker tag to v3.24 (rust-lang/cargo#17157)
- chore(deps): update actions/checkout action to v6.0.3 (rust-lang/cargo#17155)
- chore: upgrade to [email protected] (rust-lang/cargo#17152)
- test(help): Don't hang on Mac with a custom man pager (rust-lang/cargo#17151)
- docs(lints): Add a false-positive example solution (rust-lang/cargo#17147)
- docs(lints): Reduce the superfluous whitespace by grouping bullet items (rust-lang/cargo#17146)

r? ghost
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jul 5, 2026
Update cargo submodule



13 commits in a335d47ff8036918d3d548dabd513dc0444096a9..f40cc7a13a8ebe3dd0a35b1e0e37a1e26c8bb0e5
2026-06-26 20:39:41 +0000 to 2026-07-01 18:57:21 +0000
- chore(deps): update rust crate gix to 0.85.0 (rust-lang/cargo#17159)
- Fixed `Compilation::deps_output` only taking the last dep (rust-lang/cargo#17164)
- chore(deps): update taiki-e/install-action action to v2.82.7 (rust-lang/cargo#17163)
- chore(deps): update rust crate rusqlite to 0.40.0 (rust-lang/cargo#17162)
- chore(deps): update rust crate itertools to 0.15.0 (rust-lang/cargo#17160)
- chore(deps): update compatible (rust-lang/cargo#17156)
- chore(deps): update crate-ci/typos action to v1.48.0 (rust-lang/cargo#17158)
- chore(deps): update alpine docker tag to v3.24 (rust-lang/cargo#17157)
- chore(deps): update actions/checkout action to v6.0.3 (rust-lang/cargo#17155)
- chore: upgrade to [email protected] (rust-lang/cargo#17152)
- test(help): Don't hang on Mac with a custom man pager (rust-lang/cargo#17151)
- docs(lints): Add a false-positive example solution (rust-lang/cargo#17147)
- docs(lints): Reduce the superfluous whitespace by grouping bullet items (rust-lang/cargo#17146)

r? ghost
@rustbot rustbot added this to the 1.98.0 milestone Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-documenting-cargo-itself Area: Cargo's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants