Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/expected_type.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/struct_name_as_context.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/renderer/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2229,7 +2229,7 @@ fn draw_note_separator(
fn draw_line_separator(renderer: &Renderer, buffer: &mut StyledBuffer, line: usize, col: usize) {
let (column, dots) = match renderer.decor_style {
DecorStyle::Ascii => (0, "..."),
DecorStyle::Unicode => (col - 2, ""),
DecorStyle::Unicode => (col - 2, ""),
};
buffer.puts(line, column, dots, ElementStyle::LineNumber);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/color/fold_ann_multiline.unicode.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/color/highlight_source.unicode.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/color/issue_9.unicode.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/color/multiple_highlight_duplicated.unicode.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions tests/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ error[E0599]: no method named `pick` found for struct `Chaenomeles` in the curre
╭▸
LL │ pub struct Chaenomeles;
│ ────────────────────── method `pick` not found for this struct
LL │ banana::Chaenomeles.pick()
│ ━━━━ method not found in `Chaenomeles`
╰╴
Expand Down Expand Up @@ -2487,7 +2487,7 @@ LL │ ┏ Box::new(
LL │ ┃ Ok::<_, ()>(
LL │ ┃ Err::<(), _>(
LL │ ┃ Ok::<_, ()>(
LL │ ┃ )
│ ┗━━━━━┛ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
╰╴
Expand Down Expand Up @@ -2600,7 +2600,7 @@ LL │ ┏ Box::new(
LL │ ┃ Ok::<_, ()>(
LL │ ┃ Err::<(), _>(
LL │ ┃ Ok::<_, ()>(
LL │ ┃ )
│ ┗━━━━━┛ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
╰╴
Expand Down Expand Up @@ -2785,7 +2785,7 @@ LL │ let x: Atype<
LL │ │ Btype<
LL │ │ Ctype<
LL │ │ Atype<
LL │ │ i32
LL │ │ > = Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(O…
│ │┏━━━━━│━━━┛
Expand Down Expand Up @@ -4309,7 +4309,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim
╭▸
12 │ cargo
│ ━━━━━
18 │ zappy
╰╴
"#]];
Expand Down Expand Up @@ -4800,7 +4800,7 @@ error: consider adding a `;` to the last statement for consistent formatting
5 │ ┃ if *x > 0 {
6 │ ┃ println!("Positive number");
7 │ ┃ } else {
10 │ ┃ })
│ ┗━━━━━━┛
╰╴
Expand Down
22 changes: 11 additions & 11 deletions tests/rustc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ error: foo
2 │ fn foo() {
│ ┏━━━━━━━━━━┛
5 │ ┃ }
╰╴┗━━━┛ test
"#]];
Expand Down Expand Up @@ -1029,7 +1029,7 @@ error: foo
5 │ │ 1
6 │ │ 2
7 │ │ 3
15 │ │ X2 Y2 Z2
16 │ │ X3 Y3 Z3
╰╴ └──────────┘ `Y` is a good letter too
Expand Down Expand Up @@ -1113,7 +1113,7 @@ error: foo
10 │ ┃│ 6
11 │ ┃│ X2 Y2 Z2
│ ┃└──────────┘ `Z` is a good letter too
15 │ ┃ 10
16 │ ┃ X3 Y3 Z3
╰╴┗━━━━━━━━┛ `Y` is a good letter
Expand Down Expand Up @@ -1512,7 +1512,7 @@ LL │ Dst: TransmuteFrom<Src, {
LL │ ┃ Assume {
LL │ ┃ alignment: true,
LL │ ┃ lifetimes: true,
LL │ ┃ }>
╰╴┗━━━━━━━━━━┛ required by this bound in `is_transmutable`
"#]];
Expand Down Expand Up @@ -1806,7 +1806,7 @@ warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be
LL │ macro_rules! outer_macro {
│ ──────────────────────── in this expansion of `nested_macro_rules::outer_macro!`
LL │ ┏ macro_rules! inner_macro {
LL │ ┃ ($bang_macro:ident, $attr_macro:ident) => {
LL │ ┃ $bang_macro!($name);
Expand Down Expand Up @@ -2703,7 +2703,7 @@ error: unclosed frontmatter
╭▸ $DIR/unclosed-1.rs:1:1
LL │ ┏ ----cargo
LL │ ┃
│ ┗━┛
╰╴
Expand Down Expand Up @@ -2776,7 +2776,7 @@ error: unclosed frontmatter
╭▸ $DIR/unclosed-2.rs:1:1
LL │ ┏ ----cargo
LL │ ┃ "----"
LL │ ┃ }
│ ┗━━┛
Expand Down Expand Up @@ -2982,7 +2982,7 @@ error: unclosed frontmatter
╭▸ $DIR/unclosed-5.rs:1:1
LL │ ┏ ----cargo
LL │ ┃
│ ┗━┛
╰╴
Expand Down Expand Up @@ -4175,7 +4175,7 @@ error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its
LL │ struct Ipv4Addr;
│ ─────────────── 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`
LL │ let _ = quote! { $($ip)* }; //~ ERROR the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not sat…
│ ━━━━━━━━━━━━━━━━━━ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds
Expand Down Expand Up @@ -4274,7 +4274,7 @@ error[E0220]: associated type `Pr` not found for `S<bool>` in the current scope
LL │ struct S<T>(T);
│ ─────────── associated type `Pr` not found for this struct
LL │ let _: S::<bool>::Pr = ();
│ ━━ associated item not found in `S<bool>`
Expand Down Expand Up @@ -5508,7 +5508,7 @@ error[E0599]: no method named `bar` found for struct `Thing` in the current scop
LL │ struct Thing {
│ ──────────── method `bar` not found for this struct
LL │ t.bar();
│ ━━━ method not found in `Thing`
╰╴
Expand Down
Loading