Skip to content

Commit 1b74439

Browse files
committed
lintcheck: rename struct field
1 parent 87c682a commit 1b74439

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_dev/src/lintcheck.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct ClippyWarning {
6262
column: String,
6363
linttype: String,
6464
message: String,
65-
ice: bool,
65+
is_ice: bool,
6666
}
6767

6868
impl std::fmt::Display for ClippyWarning {
@@ -309,7 +309,7 @@ fn parse_json_message(json_message: &str, krate: &Crate) -> ClippyWarning {
309309
.into(),
310310
linttype: jmsg["message"]["code"]["code"].to_string().trim_matches('"').into(),
311311
message: jmsg["message"]["message"].to_string().trim_matches('"').into(),
312-
ice: json_message.contains("internal compiler error: "),
312+
is_ice: json_message.contains("internal compiler error: "),
313313
}
314314
}
315315

@@ -379,7 +379,7 @@ pub fn run(clap_config: &ArgMatches) {
379379
// grab crashes/ICEs, save the crate name and the ice message
380380
let ices: Vec<(&String, &String)> = clippy_warnings
381381
.iter()
382-
.filter(|warning| warning.ice)
382+
.filter(|warning| warning.is_ice)
383383
.map(|w| (&w.crate_name, &w.message))
384384
.collect();
385385

0 commit comments

Comments
 (0)