Skip to content

Commit

Permalink
Normalize compiler build date note
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 14, 2024
1 parent 94a33cb commit 7126507
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ impl<'a> Filter<'a> {
return None;
}

if trim_start.starts_with("= note: this compiler was built on 2")
&& trim_start.ends_with("; consider upgrading it if it is out of date")
{
return None;
}

if self.normalization >= StripCouldNotCompile {
if line.starts_with("error: Could not compile `") {
return None;
Expand Down

0 comments on commit 7126507

Please sign in to comment.