-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
async functions in traits ICE when you try to use them #102138
Labels
C-bug
Category: This is a bug.
F-async_fn_in_trait
Static async fn in traits
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
WG-async
Working group: Async & await
Comments
nikomatsakis
added
WG-async
Working group: Async & await
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
labels
Sep 22, 2022
cc @compiler-errors and @spastorino |
This has to do with late-bound regions and RPITITs. I have a fix, but it's probably not right nor is it cleaned up much. I'll put it up for scrutiny soon though. |
Actually nvm, it was a silly little resolver bug. |
@rustbot label +I-ICE +C-bug |
rustbot
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Sep 23, 2022
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Sep 24, 2022
…andry Resolve async fn signature even without body (e.g., in trait) Fixes rust-lang#102138 This "bail if no body" behavior was introduced in rust-lang#69539 to fix rust-lang#69401, but that ICE does not reproduce any more. The error message changes a bit, but that's all, and I don't think it's a particularly diagnostic bad regression.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
F-async_fn_in_trait
Static async fn in traits
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
WG-async
Working group: Async & await
Example:
Playground
yields
Backtrace
The text was updated successfully, but these errors were encountered: