Skip to content

fix-155516: Don't suggest wrong upwrap expect#156497

Open
lokirithm wants to merge 2 commits into
rust-lang:mainfrom
lokirithm:fix-155516
Open

fix-155516: Don't suggest wrong upwrap expect#156497
lokirithm wants to merge 2 commits into
rust-lang:mainfrom
lokirithm:fix-155516

Conversation

@lokirithm
Copy link
Copy Markdown
Contributor

@lokirithm lokirithm commented May 12, 2026

Fixes #155516

r? Kivooeo

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 12, 2026
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 12, 2026
Comment thread tests/ui/destructuring-assignment/dont-suggest-wrong-expect-suggestion.rs Outdated
Comment thread compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs Outdated
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

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-compiler Relevant 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.

Incorrect suggestion when assigning Option<T> to a T in a struct pattern

4 participants