rust/lintcheck/src
bors eecff6d07b Auto merge of #12439 - Jacherr:issue-12185, r=blyxyas
fix ice reporting in lintcheck

Fixes https://github.com/rust-lang/rust-clippy/issues/12185

This PR fixes the lack of reported ICEs within lintcheck by modifying the way in which data is collected from each crate being linted.

Instead of lintcheck only reading `stdout` for warnings, it now also reads `stderr` for any potential ICE (although admittedly, it is not the cleanest method of doing so). If it is detected, it parses the ICE into its message and backtrace separately, and then adds them to the list of outputs via clippy.

Once all outputs are collected, the formatter then proceeds to generate the file as normal.

Note that this PR also has a couple of side effects:
- When clippy fails to process a package, but said failure is not an ICE, the `stderr` will be sent to the console;
- Instead of `ClippyWarning` being the primary struct for everything reported, there is now `ClippyCheckOutput`, an enum which splits the outputs into warnings and ICEs.

changelog: none
2024-04-05 18:16:07 +00:00
..
config.rs Add imports_granularity = "Module" to rustfmt.toml 2023-07-13 12:44:57 +00:00
driver.rs Apply manual fixes 2022-10-22 07:42:41 -04:00
main.rs Auto merge of #12439 - Jacherr:issue-12185, r=blyxyas 2024-04-05 18:16:07 +00:00
popular-crates.rs Add the popular-crates binary 2023-03-08 09:43:28 +01:00
recursive.rs Add imports_granularity = "Module" to rustfmt.toml 2023-07-13 12:44:57 +00:00