diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-19 19:30:36 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-19 19:30:36 +0100 |
commit | 2d76b176c0b0f86648a038a5e4ca84fb04e809dc (patch) | |
tree | 72009d761e24e5807e3ffc0b1f49509301ed144f /crates/ide/src/syntax_highlighting/test_data/highlight_injection.html | |
parent | c7196620abd5e9bab4fbd53388da361f0f6987a1 (diff) | |
parent | 5c5fedb9454b4fcb237728da7c9e29e981fcdc3a (diff) |
Merge #8884
8884: fix: add_explicit_type produces invalid code on `@` patterns r=Veykril a=iDawer
In
```rust
let name @ () = ();
```
an explicit type should be inserted after the pattern, not just after the name.
`let` statement defined as `LetStmt = Attr* 'let' Pat (':' Type)? '=' initializer:Expr ';'`
Co-authored-by: Dawer <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting/test_data/highlight_injection.html')
0 files changed, 0 insertions, 0 deletions