File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ struct ArtifactNotification {
23
23
artifact : PathBuf ,
24
24
}
25
25
26
+ #[ derive( Deserialize ) ]
27
+ struct UnusedExternNotification {
28
+ #[ allow( dead_code) ]
29
+ lint_level : String ,
30
+ #[ allow( dead_code) ]
31
+ unused_extern_names : Vec < String > ,
32
+ }
33
+
26
34
#[ derive( Deserialize , Clone ) ]
27
35
struct DiagnosticSpan {
28
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: {}\n output: {}" ,
You can’t perform that action at this time.
0 commit comments