This makes the bevy_lint_driver binary behave a bit more like clippy-driver, which means it also behaves a bit more like rustc. Some changes include:
Panicking will now result in an ICE, which can be used to debug issues.
Logging is now setup, so you can set the RUSTC_LOG variable to configure logging levels and scope. (It uses tracing internally!)
Exit code logic now mirrors the functionality recommended for rustc drivers: specifically using catch_with_exit_code().
I'm currently debugging an issue with this where serde_derive fails to compile (I believe it's the rustc_driver::args::raw_args() call), so I'll update this when I fix it. :)
This makes the
bevy_lint_driver
binary behave a bit more likeclippy-driver
, which means it also behaves a bit more likerustc
. Some changes include:RUSTC_LOG
variable to configure logging levels and scope. (It usestracing
internally!)rustc
drivers: specifically usingcatch_with_exit_code()
.I'm currently debugging an issue with this whereserde_derive
fails to compile (I believe it's therustc_driver::args::raw_args()
call), so I'll update this when I fix it. :)