You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code expects a semicolon at the cursor position:
fntest(){println!{"Hello world"}<|>
return;}
This might be caused by the fact that the macro call is being treated as a non-block expression, though I don't know for sure (I am not very familiar with the parser):
The problem is that some macros should be treated as blocks and other shouldn't, so determining whether the element is a block based on SyntaxKind is insufficient in this case (unless we introduce a special syntax kind for block-like macro calls)
The text was updated successfully, but these errors were encountered:
273: Add a test to ensure that we can parse each file r=matklad a=DJMcNab
Note that this has a non-spurious failure in ra_analysis/src/mock_analysis.
Probably fixes#195.
If my understanding is correct, fixes#214 and fixes#225.
Co-authored-by: DJMcNab <[email protected]>
The following code expects a semicolon at the cursor position:
This might be caused by the fact that the macro call is being treated as a non-block expression, though I don't know for sure (I am not very familiar with the parser):
https://github.com/rust-analyzer/rust-analyzer/blob/477de790b0211196256a772befe4f577d1a8ba14/crates/ra_syntax/src/grammar/expressions/mod.rs#L204-L209
The problem is that some macros should be treated as blocks and other shouldn't, so determining whether the element is a block based on
SyntaxKind
is insufficient in this case (unless we introduce a special syntax kind for block-like macro calls)The text was updated successfully, but these errors were encountered: