rust/crates
bors 63573d47aa 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.
2022-04-14 12:36:17 +00:00
..
base_db Simplify 2022-04-10 20:02:06 +02:00
cfg minor: Bump dependencies 2022-03-22 17:42:24 +01:00
flycheck internal: Show more project building errors to the user 2022-04-14 11:31:01 +02:00
hir Revert #11912 as it parses all visited files 2022-04-09 13:41:06 +02:00
hir_def Improve ItemTree pretty print output 2022-04-14 14:24:27 +02:00
hir_expand fix: Unset test feature in rustc source crates 2022-04-12 00:19:40 +02:00
hir_ty Bump chalk 2022-04-12 20:10:10 +03:00
ide add docs 2022-04-14 13:23:19 +02:00
ide_assists reenable test 2022-04-14 13:02:20 +02:00
ide_completion Add trailing ; when completing assoc const/type 2022-04-12 18:28:43 +02:00
ide_db Merge #11883 2022-04-12 15:17:00 +00:00
ide_diagnostics consider types of const generics 2022-04-07 05:30:33 +04:30
ide_ssr Update repo URL 2022-04-13 16:54:24 -07:00
limit
mbe minor: Bump dependencies 2022-03-22 17:42:24 +01:00
parser Parse for<'a> closure syntax 2022-04-10 17:50:14 +02:00
paths
proc_macro_api minor: Bump dependencies 2022-03-22 17:42:24 +01:00
proc_macro_srv fix comment 2022-03-25 15:30:52 +01:00
proc_macro_test minor: Bump dependencies 2022-03-22 17:42:24 +01:00
profile minor: Bump dependencies 2022-03-22 17:42:24 +01:00
project_model internal: Show more project building errors to the user 2022-04-14 11:31:01 +02:00
rust-analyzer minor: Cleanup config.rs a bit 2022-04-14 12:16:38 +02:00
sourcegen Bump xshell and fix dist 2022-03-17 08:53:33 +02:00
stdx minor: Bump dependencies 2022-03-22 17:42:24 +01:00
syntax Update repo URL 2022-04-13 16:54:24 -07:00
test_utils Merge #11805 2022-03-23 20:20:09 +00:00
text_edit minor: Bump dependencies 2022-03-22 17:42:24 +01:00
toolchain
tt minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs-notify minor: Bump dependencies 2022-03-22 17:42:24 +01:00