-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Stack overflow when using type_alias_impl_trait with async functions #17403
Comments
Bisected and this started crashing with #16852 |
Here's my naive workaround if anyone else is blocked on this issue: |
Thank you! I'm hitting a variation of this issue (no async) and this has restored my productivity. |
Looks like this is a duplicate of #17199. |
😱 @rustbot claim |
I found the root cause and solution. I'll make a PR when I get back home in few hours. |
All good @ShoyuVanilla, thank you for your work on RA! |
rust-analyzer version: rust-analyzer 0.0.0 (72dfbe9 2024-06-10)
rustc version: rustc 1.80.0-nightly (1871252fc 2024-05-15)
editor or extension: Zed
code snippet to reproduce:
This causes an infinite recursion in
insert_inference_vars_for_impl_trait
, eventually resulting in a stack overflow which crashes RA.My very naive fix for this issue was to add a set of already seen types to avoid
fold_tys
recursing, but this causes other issues down the road:The text was updated successfully, but these errors were encountered: