Skip to content

Commit ab6dfc7

Browse files
committed
[Experiment] Repalce ASCII compiler output with Unicode block-drawing
1 parent f158600 commit ab6dfc7

File tree

10,126 files changed

+277388
-268886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

10,126 files changed

+277388
-268886
lines changed

Diff for: compiler/rustc_errors/src/emitter.rs

+160-51
Large diffs are not rendered by default.

Diff for: compiler/rustc_parse/src/parser/tests.rs

+197-183
Large diffs are not rendered by default.

Diff for: tests/ui/abi/abi-typo-unstable.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0703]: invalid ABI: found `rust-intrinsec`
2-
--> $DIR/abi-typo-unstable.rs:2:8
3-
|
4-
LL | extern "rust-intrinsec" fn rust_intrinsic() {}
5-
| ^^^^^^^^^^^^^^^^ invalid ABI
6-
|
7-
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
2+
╭▸ $DIR/abi-typo-unstable.rs:2:8
3+
4+
LL extern "rust-intrinsec" fn rust_intrinsic() {}
5+
━━━━━━━━━━━━━━━━ invalid ABI
6+
7+
note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
88

99
error: aborting due to 1 previous error
1010

Diff for: tests/ui/abi/debug.stderr

+47-47
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ error: fn_abi_of(test) = FnAbi {
8787
conv: Rust,
8888
can_unwind: $SOME_BOOL,
8989
}
90-
--> $DIR/debug.rs:15:1
91-
|
92-
LL | fn test(_x: u8) -> bool { true }
93-
| ^^^^^^^^^^^^^^^^^^^^^^^
90+
╭▸ $DIR/debug.rs:15:1
91+
92+
LL fn test(_x: u8) -> bool { true }
93+
╰╴━━━━━━━━━━━━━━━━━━━━━━━
9494

9595
error: fn_abi_of(TestFnPtr) = FnAbi {
9696
args: [
@@ -181,10 +181,10 @@ error: fn_abi_of(TestFnPtr) = FnAbi {
181181
conv: Rust,
182182
can_unwind: $SOME_BOOL,
183183
}
184-
--> $DIR/debug.rs:18:1
185-
|
186-
LL | type TestFnPtr = fn(bool) -> u8;
187-
| ^^^^^^^^^^^^^^
184+
╭▸ $DIR/debug.rs:18:1
185+
186+
LL type TestFnPtr = fn(bool) -> u8;
187+
╰╴━━━━━━━━━━━━━━
188188

189189
error: fn_abi_of(test_generic) = FnAbi {
190190
args: [
@@ -257,16 +257,16 @@ error: fn_abi_of(test_generic) = FnAbi {
257257
conv: Rust,
258258
can_unwind: $SOME_BOOL,
259259
}
260-
--> $DIR/debug.rs:21:1
261-
|
262-
LL | fn test_generic<T>(_x: *const T) { }
263-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
260+
╭▸ $DIR/debug.rs:21:1
261+
262+
LL fn test_generic<T>(_x: *const T) { }
263+
╰╴━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
264264

265265
error: `#[rustc_abi]` can only be applied to function items, type aliases, and associated functions
266-
--> $DIR/debug.rs:24:1
267-
|
268-
LL | const C: () = ();
269-
| ^^^^^^^^^^^
266+
╭▸ $DIR/debug.rs:24:1
267+
268+
LL const C: () = ();
269+
╰╴━━━━━━━━━━━
270270

271271
error: ABIs are not compatible
272272
left ABI = FnAbi {
@@ -409,10 +409,10 @@ error: ABIs are not compatible
409409
conv: Rust,
410410
can_unwind: $SOME_BOOL,
411411
}
412-
--> $DIR/debug.rs:40:1
413-
|
414-
LL | type TestAbiNe = (fn(u8), fn(u32));
415-
| ^^^^^^^^^^^^^^
412+
╭▸ $DIR/debug.rs:40:1
413+
414+
LL type TestAbiNe = (fn(u8), fn(u32));
415+
╰╴━━━━━━━━━━━━━━
416416

417417
error: ABIs are not compatible
418418
left ABI = FnAbi {
@@ -557,10 +557,10 @@ error: ABIs are not compatible
557557
conv: Rust,
558558
can_unwind: $SOME_BOOL,
559559
}
560-
--> $DIR/debug.rs:43:1
561-
|
562-
LL | type TestAbiNeLarger = (fn([u8; 32]), fn([u32; 32]));
563-
| ^^^^^^^^^^^^^^^^^^^^
560+
╭▸ $DIR/debug.rs:43:1
561+
562+
LL type TestAbiNeLarger = (fn([u8; 32]), fn([u32; 32]));
563+
╰╴━━━━━━━━━━━━━━━━━━━━
564564

565565
error: ABIs are not compatible
566566
left ABI = FnAbi {
@@ -702,10 +702,10 @@ error: ABIs are not compatible
702702
conv: Rust,
703703
can_unwind: $SOME_BOOL,
704704
}
705-
--> $DIR/debug.rs:46:1
706-
|
707-
LL | type TestAbiNeFloat = (fn(f32), fn(u32));
708-
| ^^^^^^^^^^^^^^^^^^^
705+
╭▸ $DIR/debug.rs:46:1
706+
707+
LL type TestAbiNeFloat = (fn(f32), fn(u32));
708+
╰╴━━━━━━━━━━━━━━━━━━━
709709

710710
error: ABIs are not compatible
711711
left ABI = FnAbi {
@@ -848,25 +848,25 @@ error: ABIs are not compatible
848848
conv: Rust,
849849
can_unwind: $SOME_BOOL,
850850
}
851-
--> $DIR/debug.rs:50:1
852-
|
853-
LL | type TestAbiNeSign = (fn(i32), fn(u32));
854-
| ^^^^^^^^^^^^^^^^^^
851+
╭▸ $DIR/debug.rs:50:1
852+
853+
LL type TestAbiNeSign = (fn(i32), fn(u32));
854+
╰╴━━━━━━━━━━━━━━━━━━
855855

856856
error[E0277]: the size for values of type `str` cannot be known at compilation time
857-
--> $DIR/debug.rs:53:46
858-
|
859-
LL | type TestAbiEqNonsense = (fn((str, str)), fn((str, str)));
860-
| ^^^^^^^^^^ doesn't have a size known at compile-time
861-
|
862-
= help: the trait `Sized` is not implemented for `str`
863-
= note: only the last element of a tuple may have a dynamically sized type
857+
╭▸ $DIR/debug.rs:53:46
858+
859+
LL type TestAbiEqNonsense = (fn((str, str)), fn((str, str)));
860+
━━━━━━━━━━ doesn't have a size known at compile-time
861+
862+
help: the trait `Sized` is not implemented for `str`
863+
note: only the last element of a tuple may have a dynamically sized type
864864

865865
error: `#[rustc_abi]` can only be applied to function items, type aliases, and associated functions
866-
--> $DIR/debug.rs:28:5
867-
|
868-
LL | const C: () = ();
869-
| ^^^^^^^^^^^
866+
╭▸ $DIR/debug.rs:28:5
867+
868+
LL const C: () = ();
869+
╰╴ ━━━━━━━━━━━
870870

871871
error: fn_abi_of(assoc_test) = FnAbi {
872872
args: [
@@ -951,10 +951,10 @@ error: fn_abi_of(assoc_test) = FnAbi {
951951
conv: Rust,
952952
can_unwind: $SOME_BOOL,
953953
}
954-
--> $DIR/debug.rs:33:5
955-
|
956-
LL | fn assoc_test(&self) { }
957-
| ^^^^^^^^^^^^^^^^^^^^
954+
╭▸ $DIR/debug.rs:33:5
955+
956+
LL fn assoc_test(&self) { }
957+
╰╴ ━━━━━━━━━━━━━━━━━━━━
958958

959959
error: aborting due to 11 previous errors
960960

Diff for: tests/ui/abi/issues/issue-22565-rust-call.stderr

+36-36
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
2-
--> $DIR/issue-22565-rust-call.rs:3:1
3-
|
4-
LL | extern "rust-call" fn b(_i: i32) {}
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `i32`
2+
╭▸ $DIR/issue-22565-rust-call.rs:3:1
3+
4+
LL extern "rust-call" fn b(_i: i32) {}
5+
╰╴━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ the trait `Tuple` is not implemented for `i32`
66

77
error: functions with the "rust-call" ABI must take a single non-self tuple argument
8-
--> $DIR/issue-22565-rust-call.rs:17:5
9-
|
10-
LL | extern "rust-call" fn bar() {}
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
8+
╭▸ $DIR/issue-22565-rust-call.rs:17:5
9+
10+
LL extern "rust-call" fn bar() {}
11+
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━
1212

1313
error: functions with the "rust-call" ABI must take a single non-self tuple argument
14-
--> $DIR/issue-22565-rust-call.rs:22:5
15-
|
16-
LL | extern "rust-call" fn a() {}
17-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
14+
╭▸ $DIR/issue-22565-rust-call.rs:22:5
15+
16+
LL extern "rust-call" fn a() {}
17+
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━
1818

1919
error: functions with the "rust-call" ABI must take a single non-self tuple argument
20-
--> $DIR/issue-22565-rust-call.rs:7:5
21-
|
22-
LL | extern "rust-call" fn a();
23-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
20+
╭▸ $DIR/issue-22565-rust-call.rs:7:5
21+
22+
LL extern "rust-call" fn a();
23+
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━
2424

2525
error: functions with the "rust-call" ABI must take a single non-self tuple argument
26-
--> $DIR/issue-22565-rust-call.rs:10:5
27-
|
28-
LL | extern "rust-call" fn b() {}
29-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
26+
╭▸ $DIR/issue-22565-rust-call.rs:10:5
27+
28+
LL extern "rust-call" fn b() {}
29+
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━
3030

3131
error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
32-
--> $DIR/issue-22565-rust-call.rs:27:7
33-
|
34-
LL | b(10);
35-
| ^^ the trait `Tuple` is not implemented for `i32`
32+
╭▸ $DIR/issue-22565-rust-call.rs:27:7
33+
34+
LL b(10);
35+
╰╴ ━━ the trait `Tuple` is not implemented for `i32`
3636

3737
error: functions with the "rust-call" ABI must take a single non-self tuple argument
38-
--> $DIR/issue-22565-rust-call.rs:29:5
39-
|
40-
LL | Foo::bar();
41-
| ^^^^^^^^^^
38+
╭▸ $DIR/issue-22565-rust-call.rs:29:5
39+
40+
LL Foo::bar();
41+
╰╴ ━━━━━━━━━━
4242

4343
error: functions with the "rust-call" ABI must take a single non-self tuple argument
44-
--> $DIR/issue-22565-rust-call.rs:31:5
45-
|
46-
LL | <Foo as Tr>::a();
47-
| ^^^^^^^^^^^^^^^^
44+
╭▸ $DIR/issue-22565-rust-call.rs:31:5
45+
46+
LL <Foo as Tr>::a();
47+
╰╴ ━━━━━━━━━━━━━━━━
4848

4949
error: functions with the "rust-call" ABI must take a single non-self tuple argument
50-
--> $DIR/issue-22565-rust-call.rs:33:5
51-
|
52-
LL | <Foo as Tr>::b();
53-
| ^^^^^^^^^^^^^^^^
50+
╭▸ $DIR/issue-22565-rust-call.rs:33:5
51+
52+
LL <Foo as Tr>::b();
53+
╰╴ ━━━━━━━━━━━━━━━━
5454

5555
error: aborting due to 9 previous errors
5656

Diff for: tests/ui/abi/riscv-discoverability-guidance.riscv32.stderr

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
error[E0703]: invalid ABI: found `riscv-interrupt`
2-
--> $DIR/riscv-discoverability-guidance.rs:17:8
3-
|
4-
LL | extern "riscv-interrupt" fn isr() {}
5-
| ^^^^^^^^^^^^^^^^^
6-
| |
7-
| invalid ABI
8-
| help: did you mean: `"riscv-interrupt-m"`
9-
|
10-
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
11-
= note: please use one of riscv-interrupt-m or riscv-interrupt-s for machine- or supervisor-level interrupts, respectively
2+
╭▸ $DIR/riscv-discoverability-guidance.rs:17:8
3+
4+
LL extern "riscv-interrupt" fn isr() {}
5+
┯━━━━━━━━━━━━━━━━
6+
7+
invalid ABI
8+
help: did you mean: `"riscv-interrupt-m"`
9+
10+
note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
11+
note: please use one of riscv-interrupt-m or riscv-interrupt-s for machine- or supervisor-level interrupts, respectively
1212

1313
error[E0703]: invalid ABI: found `riscv-interrupt-u`
14-
--> $DIR/riscv-discoverability-guidance.rs:23:8
15-
|
16-
LL | extern "riscv-interrupt-u" fn isr_U() {}
17-
| ^^^^^^^^^^^^^^^^^^^
18-
| |
19-
| invalid ABI
20-
| help: did you mean: `"riscv-interrupt-m"`
21-
|
22-
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
23-
= note: user-mode interrupt handlers have been removed from LLVM pending standardization, see: https://reviews.llvm.org/D149314
14+
╭▸ $DIR/riscv-discoverability-guidance.rs:23:8
15+
16+
LL extern "riscv-interrupt-u" fn isr_U() {}
17+
┯━━━━━━━━━━━━━━━━━━
18+
19+
invalid ABI
20+
help: did you mean: `"riscv-interrupt-m"`
21+
22+
note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
23+
note: user-mode interrupt handlers have been removed from LLVM pending standardization, see: https://reviews.llvm.org/D149314
2424

2525
error: aborting due to 2 previous errors
2626

Diff for: tests/ui/abi/riscv-discoverability-guidance.riscv64.stderr

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
error[E0703]: invalid ABI: found `riscv-interrupt`
2-
--> $DIR/riscv-discoverability-guidance.rs:17:8
3-
|
4-
LL | extern "riscv-interrupt" fn isr() {}
5-
| ^^^^^^^^^^^^^^^^^
6-
| |
7-
| invalid ABI
8-
| help: did you mean: `"riscv-interrupt-m"`
9-
|
10-
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
11-
= note: please use one of riscv-interrupt-m or riscv-interrupt-s for machine- or supervisor-level interrupts, respectively
2+
╭▸ $DIR/riscv-discoverability-guidance.rs:17:8
3+
4+
LL extern "riscv-interrupt" fn isr() {}
5+
┯━━━━━━━━━━━━━━━━
6+
7+
invalid ABI
8+
help: did you mean: `"riscv-interrupt-m"`
9+
10+
note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
11+
note: please use one of riscv-interrupt-m or riscv-interrupt-s for machine- or supervisor-level interrupts, respectively
1212

1313
error[E0703]: invalid ABI: found `riscv-interrupt-u`
14-
--> $DIR/riscv-discoverability-guidance.rs:23:8
15-
|
16-
LL | extern "riscv-interrupt-u" fn isr_U() {}
17-
| ^^^^^^^^^^^^^^^^^^^
18-
| |
19-
| invalid ABI
20-
| help: did you mean: `"riscv-interrupt-m"`
21-
|
22-
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
23-
= note: user-mode interrupt handlers have been removed from LLVM pending standardization, see: https://reviews.llvm.org/D149314
14+
╭▸ $DIR/riscv-discoverability-guidance.rs:23:8
15+
16+
LL extern "riscv-interrupt-u" fn isr_U() {}
17+
┯━━━━━━━━━━━━━━━━━━
18+
19+
invalid ABI
20+
help: did you mean: `"riscv-interrupt-m"`
21+
22+
note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
23+
note: user-mode interrupt handlers have been removed from LLVM pending standardization, see: https://reviews.llvm.org/D149314
2424

2525
error: aborting due to 2 previous errors
2626

0 commit comments

Comments
 (0)