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

@@ -99,7 +99,7 @@ incremental-cache = [
# Enable support for the Souper harvester.
souper-harvest = ["souper-ir", "souper-ir/stringify"]
# Provide fancy Miette-produced errors for ISLE.
# Report any ISLE errors in pretty-printed style.
isle-errors = ["cranelift-isle/fancy-errors"]
# Put ISLE generated files in isle_generated_code/, for easier