Closed
Description
Commit 8e324e9 renamed the FuncLike
kind to Bang
and added an alias for backward-compatibility called func_like
, while it should be FuncLike
. This currently causes the following error in my project when using #[tokio::main]
:
proc macro `main` not expanded: failed to read response: unknown variant `FuncLike`, expected one of `CustomDerive`, `Attr`, `func_like` at line 1 column 178
Minimal reproducible example (really):
// cargo add tokio -F full
#[tokio::main]
async fn main() {}
The following lines cause this:
rust-analyzer/crates/proc-macro-api/src/lib.rs
Lines 39 to 42 in 8e324e9
A simple fix should just be to rename it to
FuncLike
:
- #[serde(rename(serialize = "func_like", deserialize = "func_like"))]
+ #[serde(rename(serialize = "FuncLike", deserialize = "FuncLike"))]
I'll try to PR a fix. edit: #16927