Closed
Description
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() {}