diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-06-20 04:25:17 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-06-20 04:25:17 +0000 |
| commit | 3baafd2e8c385c6c976e628a1689fa9033345502 (patch) | |
| tree | abbc5558c4ab08c20325e297ae9f739da2452735 | |
| parent | 4b7ae63fbff1b74d91ef326da6abe82d05151b0b (diff) | |
| download | rust-3baafd2e8c385c6c976e628a1689fa9033345502.tar.gz rust-3baafd2e8c385c6c976e628a1689fa9033345502.zip | |
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 consistent with what we do in every other case.
| -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 ~ } | |
