Rollup merge of #137606 - davidtwco:next-edition, r=traviscross,ehuss
add a "future" edition This idea has been discussed previously [on Zulip](https://rust-lang.zulipchat.com/#narrow/channel/213817-t-lang/topic/Continuous.20edition-like.20changes.3F/near/432559262) (though what I've implemented isn't exactly the "next"/"future" editions proposed in that message, just the "future" edition). I've found myself prototyping changes that involve edition migrations and wanting to target an upcoming edition for those migrations, but none exists. This should be permanently unstable and not removed.
This commit is contained in:
commit
4ec8407196
5 changed files with 67 additions and 2 deletions
|
@ -60,6 +60,7 @@ pub fn inject(
|
|||
Edition2018 => sym::rust_2018,
|
||||
Edition2021 => sym::rust_2021,
|
||||
Edition2024 => sym::rust_2024,
|
||||
EditionFuture => sym::rust_future,
|
||||
}])
|
||||
.map(|&symbol| Ident::new(symbol, span))
|
||||
.collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue