Skip to content

Commit

Permalink
change ice msg weight a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 2, 2024
1 parent bee70aa commit b36261a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2146,12 +2146,15 @@ fn find_ICE_string(
} else {
line
}})
// get the lonest ICE line
// get the lonest ICE line, assuming more text == more information == more interesting
.max_by_key(|line| {
// EXCEPTION: "error: internal compiler error: no errors encountered even though `delay_span_bug` issued" is usually longer than the actual ice line, so artifically decrease weight for this case
if delay_span_bug_regex.is_match(line) {
"internal compiler error".len()
} else {
} else if line.contains("internal compiler error") {
// artificially increase weight??
line.len() + 20
}else {
line.len()
}
}
Expand Down

0 comments on commit b36261a

Please sign in to comment.