Add regression test for #138891 (fresh type during canonicalization ICE)#154788
Add regression test for #138891 (fresh type during canonicalization ICE)#154788Herrtian wants to merge 1 commit intorust-lang:mainfrom
Conversation
…ization ICE) This code used to ICE with "encountered a fresh type during canonicalization" when using a trait alias with `Self` in a dyn context with extra generic arguments. The compiler now correctly reports errors without crashing.
|
rustbot has assigned @petrochenkov. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Hi, you've opened 10 PRs in very quick succession, and looking at the PR descriptions and some of the tests, I have some doubts regarding if the contributions are adaqutely self-reviewed. Recently, we have seen waves of automated contributions that are not adequately self-reviewed, which is why we are being more cautious. In my capacity as a venue moderator, I am requesting that you respond to reviewer questions to
I am hereby placing a temporary embargo on creation of new PRs from you before the PRs mentioned above are responded to, and the reviewers develop more confidence that you are self-reviewing and understand your contributions. The temporary embargo will be lifted if the reviewers have sufficient confidence in your contributions. Before the temporary embargo is lifted, any further PRs from your account will be closed. If new PRs continue to be raised from your account before so, further moderation action may be applied. I am closing and locking this PR before the review discussions in the PRs linked above are settled and the temporary embargo lifted. If the temporary embargo is lifted, I will unlock and reopen this PR. |
Summary
Adds a regression test for #138891.
Using a trait alias with
Selfas a return type in adyncontext with extra generic arguments used to ICE with "encountered a fresh type during canonicalization". The compiler now correctly reports:E0107: trait alias takes 0 generic argumentsSelfTest
tests/ui/traits/alias/ice-fresh-type-canonicalization-138891.rsCloses #138891