diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-06-22 12:57:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 12:57:19 +0200 |
| commit | 58fc27f571605ac60cd4d68aefdd8642c8f28b6d (patch) | |
| tree | 3e9538fbfe1d7107ab89bd602a1f3dc46ff32ac7 | |
| parent | f6661f5b9bb26fd733f70c8751e3263e267b65a4 (diff) | |
| parent | 3baafd2e8c385c6c976e628a1689fa9033345502 (diff) | |
| download | rust-58fc27f571605ac60cd4d68aefdd8642c8f28b6d.tar.gz rust-58fc27f571605ac60cd4d68aefdd8642c8f28b6d.zip | |
Rollup merge of #126723 - estebank:dot-dot-dot, r=Nadrieril
Fix `...` in multline code-skips in suggestions When we have long code skips, we write `...` in the line number gutter. For suggestions, we were "centering" the `...` with the line, but that was inconsistent with what we do in every other case *and* off-center.
| -rw-r--r-- | tests/ui/bind_instead_of_map_multipart.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/needless_collect_indirect.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/needless_late_init.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/needless_return.stderr | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/bind_instead_of_map_multipart.stderr b/tests/ui/bind_instead_of_map_multipart.stderr index 73255651abe..b15857c325a 100644 --- a/tests/ui/bind_instead_of_map_multipart.stderr +++ b/tests/ui/bind_instead_of_map_multipart.stderr @@ -62,7 +62,7 @@ LL | } LL | match s.len() { LL ~ 10 => 2, LL | 20 => { - ... +... LL | if foo() { LL ~ return 20; LL | } diff --git a/tests/ui/needless_collect_indirect.stderr b/tests/ui/needless_collect_indirect.stderr index 0cce718a1ac..f25c0293754 100644 --- a/tests/ui/needless_collect_indirect.stderr +++ b/tests/ui/needless_collect_indirect.stderr @@ -212,7 +212,7 @@ help: check if the original Iterator contains an element instead of collecting t | LL ~ LL | - ... +... LL | // Do lint LL ~ vec.iter().map(|k| k * k).any(|x| x == n); | diff --git a/tests/ui/needless_late_init.stderr b/tests/ui/needless_late_init.stderr index ce64861fa40..de048091cfb 100644 --- a/tests/ui/needless_late_init.stderr +++ b/tests/ui/needless_late_init.stderr @@ -215,7 +215,7 @@ help: move the declaration `x` here | LL ~ LL | // types that should be considered insignificant - ... +... LL | let y = Box::new(4); LL ~ let x = SignificantDrop; | diff --git a/tests/ui/needless_return.stderr b/tests/ui/needless_return.stderr index bf5a89d8b75..b49f199ba5a 100644 --- a/tests/ui/needless_return.stderr +++ b/tests/ui/needless_return.stderr @@ -518,7 +518,7 @@ help: remove `return` | LL ~ 10 LL | }, - ... +... LL | }, LL ~ } | |
