-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: Ok([Binder { ... }
is not fully resolved
#116525
Comments
@rustbot label +E-needs-mcve |
Minimized to: #![feature(async_fn_in_trait)]
pub(crate) trait Inbox<M> {
async fn next(self) -> M;
}
pub(crate) trait Actor: Sized {
type Message;
async fn on_mount(self, _: impl Inbox<Self::Message>);
}
impl<'a> Actor for () {
type Message = &'a ();
async fn on_mount(self, _: impl Inbox<&'a ()>) {}
}
fn main(){} |
might be similar to #103708 , cc @compiler-errors who self-assigned #103708 and probably knows more about this stuff ^^ |
in case we need more code snippets, here are 60 of them that that can trigger the ice in some way or another 🙃 |
@matthiaskrgr I'm pretty sure all (or at least most) of these examples are not related. This issue is specifically the case where the code used to emit:
and now ICEs. #103708 is unrelated except for the ICE message. |
Ah so this (116525) is a new one? |
Yeah, there's a class of ICEs that have the same name and often very different root causes (i.e. ICEs in snapshot-vec) and this is one of them. |
Ok([Binder { ... }
is not fully resolved
…=lcnr Don't ICE when encountering unresolved regions in `fully_resolve` We can encounter unresolved regions due to unconstrained impl lifetime arguments because `collect_return_position_impl_trait_in_trait_tys` runs before WF actually checks that the impl is well-formed. Fixes rust-lang#116525
Rollup merge of rust-lang#116663 - compiler-errors:resolve-regions, r=lcnr Don't ICE when encountering unresolved regions in `fully_resolve` We can encounter unresolved regions due to unconstrained impl lifetime arguments because `collect_return_position_impl_trait_in_trait_tys` runs before WF actually checks that the impl is well-formed. Fixes rust-lang#116525
rustc-ice-2023-10-08T05:52:57.573161602Z-313198.txt
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: