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