We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9e27ab commit 2a000c8Copy full SHA for 2a000c8
src/tools/compiletest/src/json.rs
@@ -127,11 +127,10 @@ pub fn extract_rendered(output: &str) -> String {
127
// Ignore the notification.
128
None
129
} else {
130
- print!(
131
- "failed to decode compiler output as json: line: {}\noutput: {}",
132
- line, output
133
- );
134
- panic!()
+ // This function is called for both compiler and non-compiler output,
+ // so if the line isn't recognized as JSON from the compiler then
+ // just print it as-is.
+ Some(format!("{line}\n"))
135
}
136
137
// preserve non-JSON lines, such as ICEs
0 commit comments