2
0
Fork 0
mirror of https://github.com/rust-lang/rust-analyzer synced 2025-02-13 12:43:38 +00:00
rust-analyzer/crates/hir-expand/src
bors 6f313cef8e Auto merge of - lowr:fix/tt-punct-spacing, r=Veykril
Fix `tt::Punct`'s spacing calculation

Fixes 

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](5b3e909075/compiler/rustc_parse/src/lexer/tokentrees.rs (L77-L78)) and we should follow it to guarantee the consistent behavior of proc macros.
2022-11-11 12:19:30 +00:00
..
ast_id_map.rs Emit unconfigured code diagnostics for fields 2022-09-26 19:04:57 +01:00
builtin_attr_macro.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
builtin_derive_macro.rs Support const generics for builtin derive macro 2022-10-23 00:05:22 +09:00
builtin_fn_macro.rs Use $crate instead of std for panic builtin_fn_macro 2022-10-10 10:33:49 +02:00
db.rs Prefer similar tokens when expanding macros speculatively 2022-10-10 22:47:52 +02:00
eager.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
fixup.rs Test TokenTrees' equality modulo Puncts' spacing 2022-11-10 19:40:40 +09:00
hygiene.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
lib.rs Fix typos 2022-11-07 12:54:12 +02:00
mod_path.rs Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
name.rs Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
proc_macro.rs fix: Report proc macro errors in expressions correctly as well 2022-06-28 10:43:22 +02:00
quote.rs minor: align with rustc on escaping characters in macro expansion 2022-08-05 22:01:09 +09:00