Commit 5aaea2f
committed
Print failures in boundsViolations, via TypeComparer.explaining
TypeComparer.explaining is like TypeComparer.explained, but instead of
just returning the trace, returns the result, still allowing the trace
to be accessed via .lastTrace, as exemplified by implementing
TypeComparer.explained in terms of TypeComparer.explaining.
Also add, but leave commented out the call of, a trace.dumpStack, which
is like Thread.dumpStack(), but outputing to System.out, like all our
tracing does - so the two don't interact when unbuffering onto the
terminal. Also, we can do customisations like filtering out stack
elements, limiting the stack.1 parent 2405109 commit 5aaea2f
File tree
3 files changed
+35
-8
lines changed- compiler/src/dotty/tools/dotc
- core
- reporting
3 files changed
+35
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3268 | 3268 | | |
3269 | 3269 | | |
3270 | 3270 | | |
3271 | | - | |
3272 | | - | |
3273 | | - | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
3274 | 3275 | | |
3275 | 3276 | | |
3276 | 3277 | | |
| |||
3440 | 3441 | | |
3441 | 3442 | | |
3442 | 3443 | | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
3443 | 3447 | | |
3444 | 3448 | | |
3445 | 3449 | | |
| |||
3873 | 3877 | | |
3874 | 3878 | | |
3875 | 3879 | | |
3876 | | - | |
| 3880 | + | |
3877 | 3881 | | |
3878 | 3882 | | |
3879 | 3883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
695 | | - | |
696 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
697 | 707 | | |
698 | | - | |
| 708 | + | |
| 709 | + | |
699 | 710 | | |
700 | 711 | | |
701 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
0 commit comments