Skip to content

Commit daa0d03

Browse files
committed
fix: Unicode renderer: Use vertical ellipsis rather than double-dagger
The Unicode renderer used "‡", the double-dagger symbol, to ellipsize the vertical bar to indicate elided lines. Use a vertical ellipsis instead.
1 parent ffa5268 commit daa0d03

10 files changed

+25
-25
lines changed

examples/expected_type.svg

Lines changed: 1 addition & 1 deletion
Loading

examples/struct_name_as_context.svg

Lines changed: 1 addition & 1 deletion
Loading

src/renderer/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ fn draw_note_separator(
22292229
fn draw_line_separator(renderer: &Renderer, buffer: &mut StyledBuffer, line: usize, col: usize) {
22302230
let (column, dots) = match renderer.decor_style {
22312231
DecorStyle::Ascii => (0, "..."),
2232-
DecorStyle::Unicode => (col - 2, ""),
2232+
DecorStyle::Unicode => (col - 2, ""),
22332233
};
22342234
buffer.puts(line, column, dots, ElementStyle::LineNumber);
22352235
}

tests/color/fold_ann_multiline.unicode.term.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/color/highlight_duplicated_diff_lines.unicode.term.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/color/highlight_source.unicode.term.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/color/issue_9.unicode.term.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/color/multiple_highlight_duplicated.unicode.term.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/formatter.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ error[E0599]: no method named `pick` found for struct `Chaenomeles` in the curre
17001700
╭▸
17011701
LL │ pub struct Chaenomeles;
17021702
│ ────────────────────── method `pick` not found for this struct
1703-
1703+
17041704
LL │ banana::Chaenomeles.pick()
17051705
│ ━━━━ method not found in `Chaenomeles`
17061706
╰╴
@@ -2487,7 +2487,7 @@ LL │ ┏ Box::new(
24872487
LL │ ┃ Ok::<_, ()>(
24882488
LL │ ┃ Err::<(), _>(
24892489
LL │ ┃ Ok::<_, ()>(
2490-
2490+
24912491
LL │ ┃ )
24922492
│ ┗━━━━━┛ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
24932493
╰╴
@@ -2600,7 +2600,7 @@ LL │ ┏ Box::new(
26002600
LL │ ┃ Ok::<_, ()>(
26012601
LL │ ┃ Err::<(), _>(
26022602
LL │ ┃ Ok::<_, ()>(
2603-
2603+
26042604
LL │ ┃ )
26052605
│ ┗━━━━━┛ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
26062606
╰╴
@@ -2785,7 +2785,7 @@ LL │ let x: Atype<
27852785
LL │ │ Btype<
27862786
LL │ │ Ctype<
27872787
LL │ │ Atype<
2788-
2788+
27892789
LL │ │ i32
27902790
LL │ │ > = Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(O…
27912791
│ │┏━━━━━│━━━┛
@@ -4309,7 +4309,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim
43094309
╭▸
43104310
12 │ cargo
43114311
│ ━━━━━
4312-
4312+
43134313
18 │ zappy
43144314
╰╴
43154315
"#]];
@@ -4800,7 +4800,7 @@ error: consider adding a `;` to the last statement for consistent formatting
48004800
5 │ ┃ if *x > 0 {
48014801
6 │ ┃ println!("Positive number");
48024802
7 │ ┃ } else {
4803-
4803+
48044804
10 │ ┃ })
48054805
│ ┗━━━━━━┛
48064806
╰╴

tests/rustc_tests.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ error: foo
7777
7878
2 │ fn foo() {
7979
│ ┏━━━━━━━━━━┛
80-
80+
8181
5 │ ┃ }
8282
╰╴┗━━━┛ test
8383
"#]];
@@ -1029,7 +1029,7 @@ error: foo
10291029
5 │ │ 1
10301030
6 │ │ 2
10311031
7 │ │ 3
1032-
1032+
10331033
15 │ │ X2 Y2 Z2
10341034
16 │ │ X3 Y3 Z3
10351035
╰╴ └──────────┘ `Y` is a good letter too
@@ -1113,7 +1113,7 @@ error: foo
11131113
10 │ ┃│ 6
11141114
11 │ ┃│ X2 Y2 Z2
11151115
│ ┃└──────────┘ `Z` is a good letter too
1116-
1116+
11171117
15 │ ┃ 10
11181118
16 │ ┃ X3 Y3 Z3
11191119
╰╴┗━━━━━━━━┛ `Y` is a good letter
@@ -1512,7 +1512,7 @@ LL │ Dst: TransmuteFrom<Src, {
15121512
LL │ ┃ Assume {
15131513
LL │ ┃ alignment: true,
15141514
LL │ ┃ lifetimes: true,
1515-
1515+
15161516
LL │ ┃ }>
15171517
╰╴┗━━━━━━━━━━┛ required by this bound in `is_transmutable`
15181518
"#]];
@@ -1806,7 +1806,7 @@ warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be
18061806
18071807
LL │ macro_rules! outer_macro {
18081808
│ ──────────────────────── in this expansion of `nested_macro_rules::outer_macro!`
1809-
1809+
18101810
LL │ ┏ macro_rules! inner_macro {
18111811
LL │ ┃ ($bang_macro:ident, $attr_macro:ident) => {
18121812
LL │ ┃ $bang_macro!($name);
@@ -2703,7 +2703,7 @@ error: unclosed frontmatter
27032703
╭▸ $DIR/unclosed-1.rs:1:1
27042704
27052705
LL │ ┏ ----cargo
2706-
2706+
27072707
LL │ ┃
27082708
│ ┗━┛
27092709
╰╴
@@ -2776,7 +2776,7 @@ error: unclosed frontmatter
27762776
╭▸ $DIR/unclosed-2.rs:1:1
27772777
27782778
LL │ ┏ ----cargo
2779-
2779+
27802780
LL │ ┃ "----"
27812781
LL │ ┃ }
27822782
│ ┗━━┛
@@ -2982,7 +2982,7 @@ error: unclosed frontmatter
29822982
╭▸ $DIR/unclosed-5.rs:1:1
29832983
29842984
LL │ ┏ ----cargo
2985-
2985+
29862986
LL │ ┃
29872987
│ ┗━┛
29882988
╰╴
@@ -4175,7 +4175,7 @@ error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its
41754175
41764176
LL │ struct Ipv4Addr;
41774177
│ ─────────────── method `quote_into_iter` not found for this struct because it doesn't satisfy `Ipv4Addr: Iterator`, `Ipv4Addr: ToTokens`, `Ipv4Addr: proc_macro::ext::RepIteratorExt` or `Ipv4Addr: proc_macro::ext::RepToTokensExt`
4178-
4178+
41794179
LL │ let _ = quote! { $($ip)* }; //~ ERROR the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not sat…
41804180
│ ━━━━━━━━━━━━━━━━━━ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds
41814181
@@ -4274,7 +4274,7 @@ error[E0220]: associated type `Pr` not found for `S<bool>` in the current scope
42744274
42754275
LL │ struct S<T>(T);
42764276
│ ─────────── associated type `Pr` not found for this struct
4277-
4277+
42784278
LL │ let _: S::<bool>::Pr = ();
42794279
│ ━━ associated item not found in `S<bool>`
42804280
@@ -5508,7 +5508,7 @@ error[E0599]: no method named `bar` found for struct `Thing` in the current scop
55085508
55095509
LL │ struct Thing {
55105510
│ ──────────── method `bar` not found for this struct
5511-
5511+
55125512
LL │ t.bar();
55135513
│ ━━━ method not found in `Thing`
55145514
╰╴

0 commit comments

Comments
 (0)