Skip to content

postgres-query proc macro not resolved #6740

Closed
@yokujin

Description

@yokujin

Using the following macro:

#[macro_export]
macro_rules! query_dyn {
    ($($tt:tt)*) => {
        $crate::__query_dynamic!($($tt)*)
    };
}

error flagged in rust-analyzer: could not resolve macro $crate::__query_dynamic rust-analyzer(macro-error).

Rust compiler compiles that code without any error. cargo check/cargo clippy find no errors/warnings.

Latest release version of rust-analyzer (2020-11-30) does not flag this error either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions