GuillaumeGomez / rustc-tools

Some internal rustc tools made accessible
https://guillaumegomez.github.io/rustc-tools/
MIT License
42 stars 6 forks source link

Make `with_lints_and_error_output` return an `Err` if rustc diagnostics has errors #32

Closed GuillaumeGomez closed 2 months ago

GuillaumeGomez commented 3 months ago

It'll also require to update cargo_integration to:

pub fn cargo_integration<T, F: Fn(&[String]) -> Result<T, String>>(
    cargo_args: &[String],
    f: F,
) -> Result<T, String> {
GuillaumeGomez commented 2 months ago

Can't remember what I had in mind when writing this issue so closing for now.