-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal compiler error: region_obligations not empty
with CoerceUnsized
#53475
Labels
A-coercions
Area: implicit and explicit `expr as Type` coercions
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
|
This is not specific to #![feature(coerce_unsized)]
use core::ops::CoerceUnsized;
trait Trait {}
struct B<T>(Box<T>);
impl<T> CoerceUnsized<B<dyn Trait>> for B<T>
where T: Trait {} |
@rustbot modify labels: +regression-from-stable-to-stable The ICE happens on stable regardless of having the feature gate or not (the ICE does not requires a nightly compiler to reproduce) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-coercions
Area: implicit and explicit `expr as Type` coercions
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
CoerceUnsized
intodyn Any
causes an internal compiler panicMinimal Example:
This causes an internal compiler error:
This seems related to #51649, except this is using
CoerceUnsized
Meta
The text was updated successfully, but these errors were encountered: