Skip to content

a few small clippy fixes - #148667

Merged
bors merged 1 commit into
rust-lang:mainfrom
hkBst:clippy-fix-14
Nov 11, 2025
Merged

a few small clippy fixes#148667
bors merged 1 commit into
rust-lang:mainfrom
hkBst:clippy-fix-14

Conversation

@hkBst

@hkBsthkBst commented Nov 7, 2025

Copy link
Copy Markdown
Member

No description provided.

@rustbot

Copy link
Copy Markdown
Collaborator

rustc_errors::emitter was changed

cc @Muscraft

These commits modify compiler targets.
(See the Target Tier Policy.)

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 7, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

r? @JonathanBrouwer

rustbot has assigned @JonathanBrouwer.
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

Comment on lines +128 to +130
// Because we want to track parent items and so forth, enable
// deep walking so that we walk nested items in the context of
// their outer items.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This seems to be a general comment about all the following visit_nested_* methods, not one in particular.

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.

Agree

// LL + NEWER
// | <- row_num

let snippet = sm.span_to_snippet(part.span).unwrap_or_default();

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

It isn't used above...

@Kivooeo

Copy link
Copy Markdown
Member

@Kivooeo

Kivooeo commented Nov 7, 2025

Copy link
Copy Markdown
Member

r=me when npm problem will be fixed and ci is green

@bors delegate+

@bors

bors commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

✌️ @hkBst, you can now approve this pull request!

If @Kivooeo told you to "r=me" after making some further change, please make that change, then do @bors r=@Kivooeo

@rust-log-analyzer

This comment has been minimized.

@hkBst

Copy link
Copy Markdown
MemberAuthor

@bors r=@Kivooeo

@bors

bors commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 244eef6 has been approved by Kivooeo

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 10, 2025
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors rollup

Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 10, 2025
@ZalatharZalathar mentioned this pull request Nov 10, 2025
ChrisDenton added a commit to ChrisDenton/rust that referenced this pull request Nov 10, 2025
ChrisDenton added a commit to ChrisDenton/rust that referenced this pull request Nov 10, 2025
bors added a commit that referenced this pull request Nov 10, 2025
Rollup of 9 pull requests
Successful merges:
- #148480 (Add `Steal::risky_hack_borrow_mut`)
- #148608 (Add test for --test-builder success path)
- #148667 (a few small clippy fixes)
- #148712 (Port `cfg_select!` to the new attribute parsing system)
- #148760 (rustc_target: hide TargetOptions::vendor)
- #148775 (Fix a typo in the documentation for the strict_shr function)
- #148779 (Implement DynSend and DynSync for std::panic::Location.)
- #148781 ([rustdoc] Remove unneeded `allow(rustc::potential_query_instability)`)
- #148791 (fix "is_closure_like" doc comment)
r? `@ghost`
`@rustbot` modify labels: rollup
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 11, 2025
@ZalatharZalathar mentioned this pull request Nov 11, 2025
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 11, 2025
@ZalatharZalathar mentioned this pull request Nov 11, 2025
bors added a commit that referenced this pull request Nov 11, 2025
Rollup of 16 pull requests
Successful merges:
- #141470 (Add new `function_casts_as_integer` lint)
- #143619 (`c_variadic`: Add future-incompatibility warning for `...` arguments without a pattern outside of `extern` blocks)
- #146495 (rustdoc: Erase `#![doc(document_private_items)]`)
- #147771 (Rename `*exact_{div,shr,shl}` to `*{div,shr,shl}_exact`)
- #147833 (rustdoc-json: move `target` to `json::conversions`)
- #147952 (Add a timeout to the `remote-test-client` connection)
- #147955 (compiletest: Migrate `TestProps` directive handling to a system of named handlers)
- #148480 (Add `Steal::risky_hack_borrow_mut`)
- #148506 (Special case detecting `'static` lifetime requirement coming from `-> Box<dyn Trait>`)
- #148508 (Provide more context when mutably borrowing an imutably borrowed value)
- #148530 (update the bootstrap readme)
- #148608 (Add test for --test-builder success path)
- #148636 (bootstrap: respect `build.python` on macOS)
- #148639 (test(rustdoc): move tests into jump-to-def)
- #148647 (Check unsafety for non-macro attributes in `validate_attr`)
- #148667 (a few small clippy fixes)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Nov 11, 2025
Rollup of 16 pull requests
Successful merges:
- #141470 (Add new `function_casts_as_integer` lint)
- #143619 (`c_variadic`: Add future-incompatibility warning for `...` arguments without a pattern outside of `extern` blocks)
- #146495 (rustdoc: Erase `#![doc(document_private_items)]`)
- #147771 (Rename `*exact_{div,shr,shl}` to `*{div,shr,shl}_exact`)
- #147833 (rustdoc-json: move `target` to `json::conversions`)
- #147952 (Add a timeout to the `remote-test-client` connection)
- #147955 (compiletest: Migrate `TestProps` directive handling to a system of named handlers)
- #148480 (Add `Steal::risky_hack_borrow_mut`)
- #148506 (Special case detecting `'static` lifetime requirement coming from `-> Box<dyn Trait>`)
- #148508 (Provide more context when mutably borrowing an imutably borrowed value)
- #148530 (update the bootstrap readme)
- #148608 (Add test for --test-builder success path)
- #148636 (bootstrap: respect `build.python` on macOS)
- #148639 (test(rustdoc): move tests into jump-to-def)
- #148647 (Check unsafety for non-macro attributes in `validate_attr`)
- #148667 (a few small clippy fixes)
r? `@ghost`
`@rustbot` modify labels: rollup
@ZalatharZalathar mentioned this pull request Nov 11, 2025
bors added a commit that referenced this pull request Nov 11, 2025
Rollup of 15 pull requests
Successful merges:
- #141470 (Add new `function_casts_as_integer` lint)
- #143619 (`c_variadic`: Add future-incompatibility warning for `...` arguments without a pattern outside of `extern` blocks)
- #146495 (rustdoc: Erase `#![doc(document_private_items)]`)
- #147771 (Rename `*exact_{div,shr,shl}` to `*{div,shr,shl}_exact`)
- #147833 (rustdoc-json: move `target` to `json::conversions`)
- #147955 (compiletest: Migrate `TestProps` directive handling to a system of named handlers)
- #148480 (Add `Steal::risky_hack_borrow_mut`)
- #148506 (Special case detecting `'static` lifetime requirement coming from `-> Box<dyn Trait>`)
- #148508 (Provide more context when mutably borrowing an imutably borrowed value)
- #148530 (update the bootstrap readme)
- #148608 (Add test for --test-builder success path)
- #148636 (bootstrap: respect `build.python` on macOS)
- #148639 (test(rustdoc): move tests into jump-to-def)
- #148647 (Check unsafety for non-macro attributes in `validate_attr`)
- #148667 (a few small clippy fixes)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 16944b8 into rust-lang:mainNov 11, 2025
18 of 22 checks passed
rust-timer added a commit that referenced this pull request Nov 11, 2025
Rollup merge of #148667 - hkBst:clippy-fix-14, r=Kivooeo
a few small clippy fixes
@rustbotrustbot added this to the 1.93.0 milestone Nov 11, 2025
github-actionsBot pushed a commit to rust-lang/miri that referenced this pull request Nov 12, 2025
Rollup of 15 pull requests
Successful merges:
- rust-lang/rust#141470 (Add new `function_casts_as_integer` lint)
- rust-lang/rust#143619 (`c_variadic`: Add future-incompatibility warning for `...` arguments without a pattern outside of `extern` blocks)
- rust-lang/rust#146495 (rustdoc: Erase `#![doc(document_private_items)]`)
- rust-lang/rust#147771 (Rename `*exact_{div,shr,shl}` to `*{div,shr,shl}_exact`)
- rust-lang/rust#147833 (rustdoc-json: move `target` to `json::conversions`)
- rust-lang/rust#147955 (compiletest: Migrate `TestProps` directive handling to a system of named handlers)
- rust-lang/rust#148480 (Add `Steal::risky_hack_borrow_mut`)
- rust-lang/rust#148506 (Special case detecting `'static` lifetime requirement coming from `-> Box<dyn Trait>`)
- rust-lang/rust#148508 (Provide more context when mutably borrowing an imutably borrowed value)
- rust-lang/rust#148530 (update the bootstrap readme)
- rust-lang/rust#148608 (Add test for --test-builder success path)
- rust-lang/rust#148636 (bootstrap: respect `build.python` on macOS)
- rust-lang/rust#148639 (test(rustdoc): move tests into jump-to-def)
- rust-lang/rust#148647 (Check unsafety for non-macro attributes in `validate_attr`)
- rust-lang/rust#148667 (a few small clippy fixes)
r? `@ghost`
`@rustbot` modify labels: rollup
flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request Aug 17, 2026
Rollup of 15 pull requests
Successful merges:
- rust-lang/rust#141470 (Add new `function_casts_as_integer` lint)
- rust-lang/rust#143619 (`c_variadic`: Add future-incompatibility warning for `...` arguments without a pattern outside of `extern` blocks)
- rust-lang/rust#146495 (rustdoc: Erase `#![doc(document_private_items)]`)
- rust-lang/rust#147771 (Rename `*exact_{div,shr,shl}` to `*{div,shr,shl}_exact`)
- rust-lang/rust#147833 (rustdoc-json: move `target` to `json::conversions`)
- rust-lang/rust#147955 (compiletest: Migrate `TestProps` directive handling to a system of named handlers)
- rust-lang/rust#148480 (Add `Steal::risky_hack_borrow_mut`)
- rust-lang/rust#148506 (Special case detecting `'static` lifetime requirement coming from `-> Box<dyn Trait>`)
- rust-lang/rust#148508 (Provide more context when mutably borrowing an imutably borrowed value)
- rust-lang/rust#148530 (update the bootstrap readme)
- rust-lang/rust#148608 (Add test for --test-builder success path)
- rust-lang/rust#148636 (bootstrap: respect `build.python` on macOS)
- rust-lang/rust#148639 (test(rustdoc): move tests into jump-to-def)
- rust-lang/rust#148647 (Check unsafety for non-macro attributes in `validate_attr`)
- rust-lang/rust#148667 (a few small clippy fixes)
r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@hkBst@rustbot@Kivooeo@bors@rust-log-analyzer@JonathanBrouwer