diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-02-14 18:37:08 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-02-15 22:13:17 +0100 |
| commit | 1b744398718593d00cdccf81fc20b8a3cfd9ead4 (patch) | |
| tree | e3ecd540d313477d6260e3ef82da027af6dea0ac | |
| parent | 87c682a06ef03274d03cd3555c7e8ece6c447d45 (diff) | |
| download | rust-1b744398718593d00cdccf81fc20b8a3cfd9ead4.tar.gz rust-1b744398718593d00cdccf81fc20b8a3cfd9ead4.zip | |
lintcheck: rename struct field
| -rw-r--r-- | clippy_dev/src/lintcheck.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_dev/src/lintcheck.rs b/clippy_dev/src/lintcheck.rs index 3836df39adc..15b0e4a5a71 100644 --- a/clippy_dev/src/lintcheck.rs +++ b/clippy_dev/src/lintcheck.rs @@ -62,7 +62,7 @@ struct ClippyWarning { column: String, linttype: String, message: String, - ice: bool, + is_ice: bool, } impl std::fmt::Display for ClippyWarning { @@ -309,7 +309,7 @@ fn parse_json_message(json_message: &str, krate: &Crate) -> ClippyWarning { .into(), linttype: jmsg["message"]["code"]["code"].to_string().trim_matches('"').into(), message: jmsg["message"]["message"].to_string().trim_matches('"').into(), - ice: json_message.contains("internal compiler error: "), + is_ice: json_message.contains("internal compiler error: "), } } @@ -379,7 +379,7 @@ pub fn run(clap_config: &ArgMatches) { // grab crashes/ICEs, save the crate name and the ice message let ices: Vec<(&String, &String)> = clippy_warnings .iter() - .filter(|warning| warning.ice) + .filter(|warning| warning.is_ice) .map(|w| (&w.crate_name, &w.message)) .collect(); |
