Jonathan Turner
00b78d0d6a
Back to single line between errors. Add header space to secondary files
2016-05-24 10:42:32 -04:00
Jonathan Turner
9e5574803f
Update error format for readability. Add spacing header<->snippet and another line between errors
2016-05-23 12:51:00 -04:00
Jonathan Turner
3e9747af49
De-emph minimized spans, add better debugging output
2016-05-17 06:46:08 -04:00
Jonathan Turner
ae1e73affe
Print secondary labels as notes in old skool mode
2016-05-17 06:46:08 -04:00
bors
5ebe41835f
Auto merge of #33619 - jonathandturner:improve_structured_errors, r=nikomatsakis
...
Batch of improvements to errors for new error format
This is a batch of improvements to existing errors to help get the most out of the new error format.
* Added labels to primary spans (^^^) for a set of errors that didn't currently have them
* Highlight the source blue under the secondary notes for better readability
* Move some of the "Note:" into secondary spans+labels
* Fix span_label to take &mut instead, which makes it work the same as other methods in that set
2016-05-15 15:08:46 -07:00
Jonathan Turner
f3054ce18c
Set of fixes to improve borrowcks that weren't updated
2016-05-12 16:39:19 -07:00
Seo Sanghyeon
c331032755
Better handling of tab in error
2016-05-12 16:28:13 +09:00
Niko Matsakis
f030b5dbc2
degrade gracefully with empty spans
2016-05-03 06:15:39 -04:00
Niko Matsakis
9355a91224
assert we get at least two rendered lines back
2016-05-02 13:05:14 -04:00
Niko Matsakis
9d151a71c0
do not fail if len(rendered_lines) is == 1
...
also handle more rendered-lines
2016-05-02 11:49:26 -04:00
Niko Matsakis
95576b8ec4
update unit tests
2016-05-02 11:49:26 -04:00
Jonathan Turner
84cb56f8ee
Add back in a 'old school' error format
2016-05-02 11:49:25 -04:00
Niko Matsakis
8a9ad72c1d
Nit: use Range::contains
2016-05-02 11:49:25 -04:00
Niko Matsakis
1fdbfcdbd0
only emit ^
at the start of a multi-line error
...
as a result, simplify elision code
2016-05-02 11:49:25 -04:00
Niko Matsakis
24f4b151b1
Nit: use last_mut better
2016-05-02 11:49:25 -04:00
Niko Matsakis
f6496cd370
Nit: address various style nits
2016-05-02 11:49:24 -04:00
Niko Matsakis
d5529f000d
Nit: do not use RLK
2016-05-02 11:49:24 -04:00
Niko Matsakis
d58a4becf3
Nit: do not import variants from Style
2016-05-02 11:49:24 -04:00
Niko Matsakis
e56121c584
Do not import variants from RenderedLineKind
2016-05-02 11:49:24 -04:00
Niko Matsakis
a20ee76b56
revamp MultiSpan and introduce new snippet code
...
MultiSpan model is now:
- set of primary spans
- set of span+label pairs
Primary spans render with `^^^`, secondary spans with `---`.
Labels are placed next to the `^^^` or `---` marker as appropriate.
2016-05-02 11:47:09 -04:00