-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE with type_alias_impl_trait: errors selecting obligation during MIR typeck #63355
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@rustbot modify labels: A-impl-trait, F-type_alias_impl_trait, C-bug, I-ICE, T-compiler, requires-nightly |
ICEStack trace
Cargo bisection
regression in nightly-2019-08-04
6e0d27d Auto merge of #63059 - Centril:sound-bind-by-move, r=matthewjasper |
Triage: This is no longer ICE with the latest nightly, marking as E-needs-test. |
Though the error seems incorrect, in a slightly less opaque playground I don't see where it is getting the obligation |
Add some more regression tests This is another round of rust-lang#77741. Tested with `debug-assertions=true` and it passed on my local. Closes rust-lang#70877 Closes rust-lang#70944 Closes rust-lang#71659 Closes rust-lang#74816 Closes rust-lang#75707 Closes rust-lang#75983 (Skipped rust-lang#63355 because I'm not sure about the error.)
This example should be disallowed with |
I agree with @Nemo157 that the behavior here is a bug, I don't think we handle |
Thanks for triaging, we still should add a regression test to prevent ICE at least, right? |
Yep, that's good |
Add a regression test for issue-63355 Closes rust-lang#63355 r? `@nikomatsakis`
(playground)
changing
type Foo = FooImpl;
intotype Foo = ();
insideimpl Bar for ()
will successfully compileThe text was updated successfully, but these errors were encountered: