You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extern crate is still required by the language itself as it doesn't put the crate into the extern prelude. What has changed is that Cargo now puts the crate into the extern prelude, but that's not part of the language.
Yea, I don't really care one way or the other for the examples.
Ideally we could use better user-level documentation for proc-macros (maybe a dedicated book!). TRPL could mention it, though I'm not sure it is super important.
The procedural macro examples use
extern crate proc_macro;
which as of1.42.0
is no longer required. https://doc.rust-lang.org/reference/procedural-macros.htmlThe text was updated successfully, but these errors were encountered: