rust-analyzer
rust-analyzer copied to clipboard
Unexpected token in input (macro-error)
rust-analyzer version: 0.3.2020
rustc version: 1.75.0
editor or extension: vscode
relevant settings: None
repository link (if public, optional): https://github.com/VaRusLAN/rust-analyzer-bug
code snippet to reproduce:
use redis_module::{redis_module, Context, RedisString, Status};
redis_module! {
name: "Test",
version: 1.0,
allocator: (redis_module::alloc::RedisAlloc, redis_module::alloc::RedisAlloc),
data_types: [],
init: module_init,
deinit: module_deinit,
commands: []
}
fn module_init(_: &Context, args: &Vec<RedisString>) -> Status {
Status::Ok
}
fn module_deinit(_: &Context) -> Status {
Status::Err
}
This project compiles just fine.
Since version 0.3.1992 I get this error in my projects. That never happened before. Version 0.3.1983 does not have this problem.