Skip to content

RA not working when using #[tonic::async_trait] #10150

@ncs-pl

Description

@ncs-pl

This is a serious regression in nightly and it's important to fix it before the next release.
@matklad, please take a look.

Hi. For more than two hours, I tried debugging my VSCode since Rust-Analyzer was not working while I was implementing a gRPC Service using tonic.
By not working I mean that I do not get any autocompletion/IntelliSense for variables, structs, functions...
However, I still get errors reported by cargo check.

I figured out that when I was implementing methods in #[tonic::async_trait], Rust-Analyzer was not working, but when I remove #[tonic::async_trait] Rust-Analyzer is working.

I chose the Critical Nightly Regression since Rust-Analyzer is unusable in #[tonic::async_trait] and working in #[tonic::async_trait]-like traits is pretty common. (Sorry if it was not the good choice)

Versions

Code-Insider

1.61.0-insider
87260247dc7b912db6e6a21a366e6f50dca759ba
x64

In WSL2 on Windows 10

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions