fix(rustc_hir_analysis): handle Node::Synthetic in diagnostic_hir_wf_check#159627
fix(rustc_hir_analysis): handle Node::Synthetic in diagnostic_hir_wf_check#159627DAstapov wants to merge 2 commits into
Conversation
|
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 (
Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
This PR changes a file inside |
| //! must not ICE in HIR wf-checking when the next solver is enabled. | ||
| //@ compile-flags: -Znext-solver=globally | ||
| //@ edition: 2024 | ||
| //@ dont-require-annotations: ERROR |
There was a problem hiding this comment.
Question: why?
There was a problem hiding this comment.
The test is only needed to verify that no ICE is issued during compilation, and since the test produces many identical errors, I decided not to add explicit //~^ ERROR annotations, because the output is already checked via the .stderr file.
I'm not sure what the correct approach is here.
There was a problem hiding this comment.
This should just use normal error annotations and not ignore them. The test harness already will assert the compiler normally errors and doesn't ICE.
…eck-synthetic tests
Closes #159557
Closes #148630