Skip to content

Commit 58fc27f

Browse files
Rollup merge of rust-lang#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.
2 parents f6661f5 + 3baafd2 commit 58fc27f

4 files changed

+4
-4
lines changed

tests/ui/bind_instead_of_map_multipart.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ LL | }
6262
LL | match s.len() {
6363
LL ~ 10 => 2,
6464
LL | 20 => {
65-
...
65+
...
6666
LL | if foo() {
6767
LL ~ return 20;
6868
LL | }

tests/ui/needless_collect_indirect.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ help: check if the original Iterator contains an element instead of collecting t
212212
|
213213
LL ~
214214
LL |
215-
...
215+
...
216216
LL | // Do lint
217217
LL ~ vec.iter().map(|k| k * k).any(|x| x == n);
218218
|

tests/ui/needless_late_init.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ help: move the declaration `x` here
215215
|
216216
LL ~
217217
LL | // types that should be considered insignificant
218-
...
218+
...
219219
LL | let y = Box::new(4);
220220
LL ~ let x = SignificantDrop;
221221
|

tests/ui/needless_return.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ help: remove `return`
518518
|
519519
LL ~ 10
520520
LL | },
521-
...
521+
...
522522
LL | },
523523
LL ~ }
524524
|

0 commit comments

Comments
 (0)