diff options
| author | bors <bors@rust-lang.org> | 2022-04-14 12:36:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-14 12:36:17 +0000 |
| commit | 63573d47aaf841abb803af26dadc95e86f1fe572 (patch) | |
| tree | 929da9ada43127d5062977b3313bf061d65f0212 /src/test/codegen/src-hash-algorithm | |
| parent | 1b15638b4dc0f3ef9c528e2087109ead8af431b1 (diff) | |
| parent | f96fd401049f11842b8e934092024566fcabbb8e (diff) | |
| download | rust-63573d47aaf841abb803af26dadc95e86f1fe572.tar.gz rust-63573d47aaf841abb803af26dadc95e86f1fe572.zip | |
Auto merge of #11971 - jonas-schievink:on-type-fmt-assignments, r=jonas-schievink
feat: Add trailing `;` when typing `=` in assignment

This does have a false positive to keep in mind, it will add a trailing `;` in the following snippet too, which is probably not desired:
```rust
fn is_zero(i: i32) -> bool {
i $0 0
}
```
However, that function is unlikely to be written from the "inside out" like that, so it might be acceptable. Typically `=` is only inserted last when the author realizes that an existing expression should be assigned to some variable.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
