mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-23 10:25:06 +00:00
98819d8919
4029: Fix various proc-macro bugs r=matklad a=edwin0cheng This PRs does the following things: 1. Fixed #4001 by splitting `LIFETIME` lexer token to two mbe tokens. It is because rustc token stream expects `LIFETIME` as a combination of punct and ident, but RA `tt:TokenTree` treats it as a single `Ident` previously. 2. Fixed #4003, by skipping `proc-macro` for completion. It is because currently we don't have `AstNode` for `proc-macro`. We would need to redesign how to implement `HasSource` for `proc-macro`. 3. Fixed a bug how empty `TokenStream` merging in `proc-macro-srv` such that no L_DOLLAR and R_DOLLAR will be emitted accidentally. Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com> |
||
---|---|---|
.. | ||
completion | ||
display | ||
references | ||
snapshots | ||
syntax_highlighting | ||
typing | ||
assists.rs | ||
call_hierarchy.rs | ||
call_info.rs | ||
completion.rs | ||
diagnostics.rs | ||
display.rs | ||
expand_macro.rs | ||
extend_selection.rs | ||
folding_ranges.rs | ||
goto_definition.rs | ||
goto_type_definition.rs | ||
hover.rs | ||
impls.rs | ||
inlay_hints.rs | ||
join_lines.rs | ||
lib.rs | ||
marks.rs | ||
matching_brace.rs | ||
mock_analysis.rs | ||
parent_module.rs | ||
prime_caches.rs | ||
references.rs | ||
runnables.rs | ||
source_change.rs | ||
ssr.rs | ||
status.rs | ||
syntax_highlighting.rs | ||
syntax_tree.rs | ||
test_utils.rs | ||
typing.rs |