Open W95Psp opened 5 days ago
Since https://github.com/hacspec/hax/pull/735 Rustc doesn't allow us to report diagnostics with custom error codes any more. This was needed for https://github.com/hacspec/hax/issues/277 anyway, and decoupling rustc sessions and error reporting will help in general with the design of the CLI.
Miette was not the best candidate, since it's output format is very different from the one used in Rustc. Also, Rustc exposes its own reporting crate, annotate_snippets, so let's use that instead.
Since https://github.com/hacspec/hax/pull/735 Rustc doesn't allow us to report diagnostics with custom error codes any more. This was needed for https://github.com/hacspec/hax/issues/277 anyway, and decoupling rustc sessions and error reporting will help in general with the design of the CLI.