Skip to content

fix(rustc_hir_analysis): handle Node::Synthetic in diagnostic_hir_wf_check - #159627

Open
DAstapov wants to merge 2 commits into
rust-lang:mainfrom
DAstapov:fix/159557
Open

fix(rustc_hir_analysis): handle Node::Synthetic in diagnostic_hir_wf_check#159627
DAstapov wants to merge 2 commits into
rust-lang:mainfrom
DAstapov:fix/159557

Conversation

@DAstapov

@DAstapov DAstapov commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Closes #159557
Closes #148630

@rustbot rustbot 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 Jul 20, 2026
@rustbot

rustbot commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @jieyouxu (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue
Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 74 candidates
  • Random selection from 17 candidates

@rust-log-analyzer

This comment has been minimized.

@rustbot

rustbot commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

This PR changes a file inside tests/crashes. If a crash was fixed, please move into the corresponding ui subdir and add 'Fixes #' to the PR description to autoclose the issue upon merge.

Comment thread tests/ui/async-await/in-trait/hir-wf-check-synthetic.rs Outdated

@jieyouxu jieyouxu left a comment

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.

This looks like #157856 next doors, where we are papering over a synthetic node being reachable here in HIR wfcheck πŸ€” ICEing here seems more correct than trying to paper over the cases?

I can't dig into this any time soon (there's some non-trivial bootstrap reviews I need to prioritize) so rolling another compiler reviewer.

@rustbot reroll

View changes since this review

@rustbot rustbot assigned folkertdev and unassigned jieyouxu Jul 25, 2026
@folkertdev

Copy link
Copy Markdown
Contributor

r? types

@rustbot rustbot added the T-types Relevant to the types team, which will review and decide on the PR/issue. label Jul 25, 2026
@rustbot rustbot assigned lcnr and unassigned folkertdev Jul 25, 2026
@lcnr

lcnr commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

There are currently no comments on Node::Synthetic and I don't have a good sense for when and how they are used. Would you mind trying to dig into the PRs which introduced that variant and why it's used. Both to ease the review and to more generally document this part of the code base?

@lcnr lcnr added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ICE]: next solver: Unexpected node Synthetic ICE: Unexpected node Synthetic

6 participants