Skip to content

Commit

Permalink
Fix trimming verbose type paths as the message has slightly changed with
Browse files Browse the repository at this point in the history
rust 1.78
  • Loading branch information
weiznich committed May 3, 2024
1 parent 59ef19a commit 8f99e5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,10 @@ impl<'a> Filter<'a> {
let trimmed_line = trimmed_line
.strip_prefix("= note: ")
.unwrap_or(trimmed_line);
if trimmed_line.starts_with("the full type name has been written to") {
// this message has changed in between different compiler versions
if trimmed_line.starts_with("the full type name has been written to")
|| trimmed_line.starts_with("the full name for the type has been written to")
{
return None;
}
}
Expand Down

0 comments on commit 8f99e5a

Please sign in to comment.