'unresolved import' after adding '#![feature(proc_macro)]' #50187
Labels
A-macros-2.0
Area: Declarative macros 2.0 (#39412)
A-resolve
Area: Path resolution
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I've found a strange bug related to proc macros, which I have hard time reproducing. The simplest steps are:
futures_rs
(https://github.com/rust-lang-nursery/futures-rs)0.1.18
(it does not fail on the newest version)cargo check
- it passes#![feature(proc_macro)]
on the beginning ofsrc/lib.rs
cargo check
- it fails:I'm sorry for convoluted instructions, I could not reproduce the issue from the scratch or by reducing
futures-rs
to a failing bare minimum.The failing code looks really casual, just reexports of a simple function. If anybody could find the root cause, that would probably help a lot.
I'm using
rustc 1.27.0-nightly (ac3c2288f 2018-04-18)
on Ubuntu 17.10.The text was updated successfully, but these errors were encountered: