From 8f99e5a7d21da27a38b410437187ae44715b87f1 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Fri, 3 May 2024 09:11:47 +0200 Subject: [PATCH] Fix trimming verbose type paths as the message has slightly changed with rust 1.78 --- src/normalize.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/normalize.rs b/src/normalize.rs index 5b4a2a1..1bb9b79 100644 --- a/src/normalize.rs +++ b/src/normalize.rs @@ -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; } }