diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2021-08-12 10:04:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 10:04:15 -0700 |
| commit | 0c4e37ad5cd9bb510a2480edb9d45456b4cc092b (patch) | |
| tree | af31599564d3ebeb129e415ccbc540e8634ce9f6 /compiler/rustc_codegen_llvm/src | |
| parent | 692833a28fd7c2ddd870ef84c4b93ae2584275ee (diff) | |
| parent | 31fcc94753dec7506d3395af82c82785a86ebce8 (diff) | |
| download | rust-0c4e37ad5cd9bb510a2480edb9d45456b4cc092b.tar.gz rust-0c4e37ad5cd9bb510a2480edb9d45456b4cc092b.zip | |
Rollup merge of #87953 - m-ou-se:closure-migration-multiline-formatting, r=petrochenkov
Improve formatting of closure capture migration suggestion for multi-line closures.
Fixes https://github.com/rust-lang/rust/issues/87952
Before:
```
help: add a dummy let to cause `a` to be fully captured
|
5 ~ let _ = || { let _ = &a;
6 + dbg!(a.0);
7 ~ };
|
```
After:
```
help: add a dummy let to cause `a` to be fully captured
|
5 ~ let _ = || {
6 + let _ = &a;
7 + dbg!(a.0);
8 ~ };
|
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
