Skip to content

unresolved-macro-call: vec! in library/proc_macro/src/bridge #9446

Closed
@lf-

Description

@lf-

r-a version: 11b9233

.vim/coc-settings.json:

{
    "rust-analyzer.checkOnSave.overrideCommand": [
        "./x.py",
        "check",
        "--json-output"
    ],
    "rust-analyzer.rustfmt.overrideCommand": [
      "./build/x86_64-unknown-linux-gnu/stage0/bin/rustfmt"
    ],
    "rust-analyzer.cargo.runBuildScripts": false,
    "rust-analyzer.procMacro.enable": false
}

Reproduction steps:

  • Open library/proc_macro/src/bridge/buffer.rs in the rust repo (I happened to use 64de4979) with the recommended config.
  • Get an unresolved-macro-call here:
impl<T: Copy> Default for Buffer<T> {
    fn default() -> Self {
        Self::from(vec![])
                // ^^^
    }
}

cc #8915

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-nameresname, path and module resolutionC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions