-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
ICE: error[E0782]: trait objects must include the dyn
keyword
#120482
Comments
cc @estebank 😅 |
💀 |
I can't reproduce this on the auto-reduced version, only on the original. The presence of the Also, I can reproduce this on a Nightly from January 25, so it's not related to #120828. |
Sorry, what I mean is that with
but with master f4cfd87 , this talks about stashed errors now in the first ice segment
which made me think of your PR. |
did you pass |
I did pass |
I've worked out the basics of what is happening.
It's a pretty weird sequence, and the "some stashed error is waiting for use" delayed bug added in #120828 is an innocent bystander. The weird sequence causes it to ICE first, but really the "trait objects must include the I gotta say, the more I interact with stashed diagnostics, the less I like them. There is all sorts of complexity and opportunity for mistakes, as #120828 and this issue both demonstrate :( |
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zcrate-attr=feature(object_safe_for_dispatch) --edition=2021
Program output
The text was updated successfully, but these errors were encountered: