Skip to content

Unresolved import for declarative macros 2.0 #6059

Closed
@fmease

Description

@fmease

Since #6016. Importing a declarative macro 2.0 (an experimental feature) is falsely flagged as unresolved.

Minimal example to reproduce:

#![feature(decl_macro)]

use foo as _; // error: unresolved import
macro foo() {}

fn main() {}

If I am not mistaken, RA itself already handles declarative macros 2.0 in some places and it is in fact not rustc which resolves them:

#![feature(decl_macro)]

foo!(); // RA's name resolver can handle this
macro foo() {}

fn main() {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionE-unknownIt's unclear if the issue is E-hard or E-easy without digging inS-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