-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Regression from stable to beta with HRTB supertraits #91899
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Milestone
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Note: The regression is valid/"allowed" (there's a hole in the typesystem being patched), I'm just filing this issue now so we can make sure that this regression is tracked in case it got "fixed" by accident. Feel free to close if it's a known quantity; I'm just worried that this got "accidentally" fixed in some other change.
My crate is being fixed to not face this problem, but in general there's a chance other crates are falling afoul of this as well; we should perhaps assess the impact and start off with it being a future incompatibility warning if necessary.
Code
I tried this code:
(playpen)
I expected to see this happen: It compiles, like it does on stable, or at least throws a future incompatibility warning.
Instead, this happened: It errors:
Version it worked on
It most recently worked on: Rust 1.56.0
Version with regression