Fix cross-edition fragment specifier span behavior #130484
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
In the lang call on 2024-09-04, we agreed that the span of the token used to fill in the fragment specifier should be used for deciding the behavior.
That is, if we have code like this in a Rust 2021 crate:
And code like this in a Rust 2024 crate:
We would expect that
is_expr_from_2024
would exhibit the Rust 2024 behavior.We'd also like to fix this for
pat
, pending of course a crater run.cc #129755
cc @eholk @vincenzopalazzo @compiler-errors
Tracking:
expr
macro fragment specifier for Rust 2024 #123742The text was updated successfully, but these errors were encountered: