-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Panic during 'hir_expand' #11319
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
Comments
Do are both panics come when opening Regarding the first panic could you provide please an expansion of the |
Yes of course, I should add this crash is not deterministic, ie: while getting the expanded form for you I didn't encounter the issue, however here is the expansion of that file:
Created using |
@xldenis were you using a build of rust-analyzer with Actually, there are two seemingly unrelated panics here, the |
I installed from source using the steps in the readme, that is: |
The first error comes from match check diagnostic on @xldenis I see |
11899: fix: Skip match check on patterns of unexpected TyKind::FnDef r=Veykril a=iDawer Match checking does not expect patterns of `TyKind::FnDef` type. It seems that in _rustc_ match checking is ruled out due to such type errors at the typecheck stage. Spotted in #11319 Co-authored-by: iDawer <[email protected]>
Yes
Yes quite well in fact :) |
Closing as there is not much to do here from our side |
When trying to view RA diagnostics I found this message instead:
I'm using
rust-analyzer c574cf351 2022-01-06 dev
, withrustc 1.60.0-nightly (ad46af247 2022-01-14)
inside ST4.In all fairness the project I'm working on is not the most typical Rust project, it's a rustc driver which also makes heavy use of proc macros.
The text was updated successfully, but these errors were encountered: