mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-02-13 12:43:38 +00:00
Fix `tt::Punct`'s spacing calculation
Fixes #13499
We currently set a `tt::Punct`'s spacing to `Spacing::Joint` unless its next token is a trivia (i.e. whitespaces or comment). As I understand it, rustc only [sets `Spacing::Joint` if the next token is an operator](
|
||
---|---|---|
.. | ||
ast_id_map.rs | ||
builtin_attr_macro.rs | ||
builtin_derive_macro.rs | ||
builtin_fn_macro.rs | ||
db.rs | ||
eager.rs | ||
fixup.rs | ||
hygiene.rs | ||
lib.rs | ||
mod_path.rs | ||
name.rs | ||
proc_macro.rs | ||
quote.rs |