about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-14 12:36:17 +0000
committerbors <bors@rust-lang.org>2022-04-14 12:36:17 +0000
commit63573d47aaf841abb803af26dadc95e86f1fe572 (patch)
tree929da9ada43127d5062977b3313bf061d65f0212 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent1b15638b4dc0f3ef9c528e2087109ead8af431b1 (diff)
parentf96fd401049f11842b8e934092024566fcabbb8e (diff)
downloadrust-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

![Peek 2022-04-12 19-41](https://user-images.githubusercontent.com/1786438/163022079-1ed114ef-7c75-490f-a8ed-731a13f0b44d.gif)

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/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions