cranelift-isle: Minor error-handling cleanups (#5338)

- Remove remaining references to Miette
- Borrow implementation of `line_starts` from codespan-reporting
- Clean up a use of `Result` that no longer conflicts with a local
  definition
- When printing plain errors, add a blank line between errors for
  readability
This commit is contained in:
Jamey Sharp
2022-11-28 19:07:05 -08:00
committed by GitHub
parent a5a0645aff
commit ff5abfd993
4 changed files with 18 additions and 24 deletions

View File

@@ -40,8 +40,7 @@ could cause significant confusion.
If there are any errors during ISLE compilation (e.g., a type mismatch), you
will see a basic error message with a file, line number, and one-line error. To
see a more detailed output with context, `--features isle-errors` can be used.
This will leverage the `miette` error-reporting library to give pretty-printed
errors with source context.
This will give pretty-printed errors with source context.
Additionally, the `cranelift-codegen-meta` crate will automatically generate
ISLE `extern` declarations and helpers for working with CLIF. The code that does