From f9c13d10060cc9d06f6cb5b757328f7268c1e483 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Wed, 1 May 2024 10:55:53 +0200 Subject: [PATCH] Don't ICE on dummy spans (rustc uses `0` for dummy values, we use usize::MAX) --- src/rustc_stderr.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/rustc_stderr.rs b/src/rustc_stderr.rs index f95a1756..eae180ee 100644 --- a/src/rustc_stderr.rs +++ b/src/rustc_stderr.rs @@ -67,12 +67,17 @@ fn span_line(span: &DiagnosticSpan, file: &Path, primary: bool) -> Option