Use statics + clone instead of const until const can access statics

This commit is contained in:
Lukas Wirth 2024-07-14 12:19:19 +02:00
parent dd626e78c7
commit f2d51073d2
49 changed files with 389 additions and 362 deletions

View file

@ -114,7 +114,7 @@ impl DeclarativeMacroExpander {
.find(|it| {
it.path
.as_ident()
.map(|it| *it == sym::rustc_macro_transparency)
.map(|it| *it == sym::rustc_macro_transparency.clone())
.unwrap_or(false)
})?
.token_tree_value()?