syn-miette 0.2.0

A `syn::Error` wrapper that provides pretty diagnostic messages using `miette`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
---
source: src/lib.rs
expression: "render(Error::new(syn::Error::new(Span::call_site(),\n            \"the whole thing is fucked\"), \"this is the source code\"))"
---
  × the whole thing is fucked
   ╭────
 1 │ this is the source code
   · ▲
   · ╰── the whole thing is fucked
   ╰────