Open
Description
Something which frequently frustrates me with rust-analyzer:
- I am editing a Kas widget (to reproduce: clone Kas, pick any widget (but especially a large one; maybe try
Spinner
), and start typing a newfn
with an unclosed brace:{
) - RA correctly emits
[rust-analyzer] (syntax-error) Syntax Error: expected R_CURLY
- RA also emits
[rust-analyzer] (macro-error) unexpected end of input, expected one of:
enum
,struct
,type
,union
The latter error causes the whole impl_scope
to be marked as erroneous by the editor, making it harder to focus on the actual error.
Meanwhile, cargo check
will only report
error: this file contains an unclosed delimiter
[details omitted]
Macros cannot be evaluated on input that won't even tokenize.