Skip to content

Proc macros do not expand on latest nightly #13373

@SkyfallWasTaken

Description

@SkyfallWasTaken

rust-analyzer version: rust-analyzer version: 0.3.1229-standalone

rustc version: rustc 1.66.0-nightly (8796e7a 2022-10-08)

relevant settings: n/a I think?

RA no longer works with today's nightly when it comes to proc macros:

This can be reproduced with the following code:

#[tokio::main]
async fn main() {
    println!("Hello world");
}

fn f1() {}

The error is:

proc macro `main` not expanded: Cannot create expander for /home/skyfall/Projects/custard/target/debug/deps/libtokio_macros-a5c4f94b46da1247.so: UnsupportedABIrust-analyzer[unresolved-proc-macro](https://rust-analyzer.github.io/manual.html#unresolved-proc-macro)

The rest of RA works, so in the example it'd warn about f1 not being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-supportCategory: support questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions