Skip to content

[beta] Clippy backport - #161039

Open
flip1995 wants to merge 2 commits into
rust-lang:betafrom
flip1995:clippy-beta-backport
Open

[beta] Clippy backport#161039
flip1995 wants to merge 2 commits into
rust-lang:betafrom
flip1995:clippy-beta-backport

Conversation

@flip1995

Copy link
Copy Markdown
Member

r? @Mark-Simulacrum

Backporting 2 PRs fixing issues with lints added in the current beta (1.98.0) before they hit stable.

The first fixes an FP, the second an ICE.

… fn (rust-lang#17351)

changelog: [`unnecessary_unwrap_unchecked`]: don't trigger inside the
`_unchecked` function itself

Fixes rust-lang/rust-clippy#17349

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

### Summary Notes

- [Backport to
1.98.0](rust-lang/rust-clippy#17351 (comment))
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
…lang#17353)

changelog: [`unnecessary_unwrap_unchecked`]: fix ICE when resolving path
to local variable

Fixes rust-lang/rust-clippy#17352

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

- [Backport to
1.98.0](rust-lang/rust-clippy#17353 (comment))
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
@rustbot

rustbot commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

clippy is developed in its own repository. If possible, consider making this change to rust-lang/rust-clippy instead.

cc @rust-lang/clippy

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-clippy Relevant to the Clippy team. labels Aug 13, 2026
@rustbot

rustbot commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-clippy Relevant to the Clippy team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants