Skip to content
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

Unexpected token in input (macro-error) #17528

Open
VaRusLAN opened this issue Jul 2, 2024 · 0 comments
Open

Unexpected token in input (macro-error) #17528

VaRusLAN opened this issue Jul 2, 2024 · 0 comments
Labels
A-macro macro expansion C-bug Category: bug

Comments

@VaRusLAN
Copy link

VaRusLAN commented Jul 2, 2024

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
}

image
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.

@VaRusLAN VaRusLAN added the C-bug Category: bug label Jul 2, 2024
@Veykril Veykril added the A-macro macro expansion label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants