mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-10 20:36:23 +00:00
Merge pull request #19644 from ChayimFriedman2/const-syms
internal: Make predefined symbols `const` instead of `static`
This commit is contained in:
commit
34e7d60e30
72 changed files with 432 additions and 473 deletions
|
@ -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('}')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue