Skip to content

v2.2.0

Compare
Choose a tag to compare
@zkat zkat released this 14 Sep 02:02
· 382 commits to main since this release
c00226f

So it turns out 3.0.0 is already under way, if you didn't already hear!

It's going to be an exciting release, but we'll still be putting out bugfixes
and (backwards-compatible) features in the 2.x line until that's ready.

And there's definitely stuff in this one to be excited about! Not least of all
the ability to forward diagnostic metadata when wrapping other
Diagnostics. Huge thanks to @cormacrelf for
that one!

We've also got some nice improvements to reporter formatting that should make
output look at least a little nicer--most notably, we now wrap messages and
footers along the appropriate column so formatting keeps looking good even
when you use newlines!

Finally, huge thanks to @icewind1991 for
fixing a really weird-looking bug
caused by an off-by-one error. Oopsies 😅

Features

  • report: wrap multiline messages to keep formatting (f482dcec)
  • report: take terminal width into account for wrapping text (bc725324)
  • report: make header line as wide as terminal (eaebde92)
  • derive: Add #[diagnostic(forward(field_name), code(...))] (#41) (2fa5551c)

Bug Fixes

  • report: get rid of the weird arrow thing. it does not look good (1ba3f2f5)
  • report: fix wrapping for header and add wrapping for footer (eb07d5bd)
  • report: Fix end of previous line wrongly being included in highlight (#52) (d994add9)