Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

use proc_macro::... -> use crate::proc_macro::... in examples? #27

Closed
anp opened this issue Nov 10, 2018 · 2 comments
Closed

use proc_macro::... -> use crate::proc_macro::... in examples? #27

anp opened this issue Nov 10, 2018 · 2 comments

Comments

@anp
Copy link

anp commented Nov 10, 2018

In a 2018 edition crate, the recent module system changes prevent the current README example from working on a recent nightly. Referencing the proc_macro crate as crate::proc_macro appears to resolve the problem for me. Is this the correct fix?

@dtolnay
Copy link
Owner

dtolnay commented Nov 10, 2018

Yes, I would use crate::proc_macro:: until we land the stabilization (and possibly backport) for rust-lang/rust#55599. Let's update the documentation to use 2018 edition as soon as the edition is officially released.

@dtolnay
Copy link
Owner

dtolnay commented Dec 31, 2018

Updated example code to 2018 edition in 87f7291.

@dtolnay dtolnay closed this as completed Dec 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants