Work out the actual policy for macros across editions wrt dependencies updating #50172
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
WG-epoch
Working group: Epoch (2018) management
I don’t think we’ve adequately worked out what we want for macros with editions.
Are we okay with a Rust 2015 crate that exposes a macro updating to Rust 2018 (including new idioms) with a minor bump? I.e. should our edition hygiene account for this? Or are macro authors instructed to do major bumps when they
Taking a hypothetical: if
dyn
were something we only exposed on Rust 2018, and a macro crate upgraded to the new edition, should we do the heavy lifting of ensuring that crates on Rust 2015 can use macros from crates on Rust 2018 that use 2018-only features? Or do we require the crate author to do a major version bump?Similarly, what level of trouble are we okay with for crates attempting to upgrade to the 2018 edition that use macros from 2015 crates?
cc @rust-lang/lang
The text was updated successfully, but these errors were encountered: