We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff18038 commit 0981b98Copy full SHA for 0981b98
src/tools/compiletest/src/json.rs
@@ -23,6 +23,14 @@ struct ArtifactNotification {
23
artifact: PathBuf,
24
}
25
26
+#[derive(Deserialize)]
27
+struct UnusedExternNotification {
28
+ #[allow(dead_code)]
29
+ lint_level: String,
30
31
+ unused_extern_names: Vec<String>,
32
+}
33
+
34
#[derive(Deserialize, Clone)]
35
struct DiagnosticSpan {
36
file_name: String,
@@ -113,6 +121,9 @@ pub fn extract_rendered(output: &str) -> String {
113
121
} else if serde_json::from_str::<ArtifactNotification>(line).is_ok() {
114
122
// Ignore the notification.
115
123
None
124
+ } else if serde_json::from_str::<UnusedExternNotification>(line).is_ok() {
125
+ // Ignore the notification.
126
+ None
116
127
} else {
117
128
print!(
118
129
"failed to decode compiler output as json: line: {}\noutput: {}",
0 commit comments