-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Regression in nightly-2022-05-01 relating to trait objects #96664
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
When updating from nightly nightly-2022-04-30-x86_64-unknown-linux-gnu to nightly nightly-2022-05-01-x86_64-unknown-linux-gnu, some code that previously compiled stopped compiling. Here's the basic idea of it:
I expected to see this happen: compiles
Instead, this happened:
This code previously compiled, and the code already does what the advice of the error message suggests, so it seems like a regression to me.
If needed, you can get the full repro by looking at https://github.com/Edgeworth/memega
Version it worked on
nightly-2022-04-30-x86_64-unknown-linux-gnu
Version with regression
nightly-2022-05-01-x86_64-unknown-linux-gnu