Remove unnecessary predefined symbol clones

Now that they're const it's no longer needed.

Nothing manual was performed: only a regexp search of `sym::([\w][\w\d]*)\.clone\(\)` and replace by `sym::$1`.
This commit is contained in:
Chayim Refael Friedman 2025-04-21 03:10:13 +03:00
parent 9477e46bec
commit 0f325c7ff8
55 changed files with 312 additions and 361 deletions

View file

@ -284,14 +284,14 @@ mod tests {
},
);
builder.push(Leaf::Literal(Literal {
symbol: sym::INTEGER_0.clone(),
symbol: sym::INTEGER_0,
span: Span {
range: TextRange::at(TextSize::new(15), TextSize::of("0u32")),
anchor,
ctx: SyntaxContext::root(Edition::CURRENT),
},
kind: tt::LitKind::Integer,
suffix: Some(sym::u32.clone()),
suffix: Some(sym::u32),
}));
builder.close(Span {
range: TextRange::at(TextSize::new(19), TextSize::of('}')),