$crate
in macros is accepted in any identifier position
#42898
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-parser
Area: The parsing of Rust source code to an AST
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
E.g. this compiles on
rustc 1.20.0-nightly (c9bb93576 2017-06-24)
This is a regression from Rust 1.14.0.
$crate
should be accepted only as a first segment in a path, so it would be reasonable to turn it from an "arbitrary identifier" into a "path segment keyword" likeSelf
/self
/super
.The text was updated successfully, but these errors were encountered: