]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/json.rs
Auto merge of #61212 - alexcrichton:skip-rustc, r=pietroalbini
[rust.git] / src / libsyntax / json.rs
index 2dd2ecb749300ec19853d138e18710a9f919663c..767ab74355e66213ff8c27fbec2ba22be41f7302 100644 (file)
@@ -92,8 +92,8 @@ fn emit_diagnostic(&mut self, db: &DiagnosticBuilder<'_>) {
         }
     }
 
-    fn emit_artifact_notification(&mut self, path: &Path) {
-        let data = ArtifactNotification { artifact: path };
+    fn emit_artifact_notification(&mut self, path: &Path, artifact_type: &str) {
+        let data = ArtifactNotification { artifact: path, emit: artifact_type };
         let result = if self.pretty {
             writeln!(&mut self.dst, "{}", as_pretty_json(&data))
         } else {
@@ -185,6 +185,8 @@ struct DiagnosticCode {
 struct ArtifactNotification<'a> {
     /// The path of the artifact.
     artifact: &'a Path,
+    /// What kind of artifact we're emitting.
+    emit: &'a str,
 }
 
 impl Diagnostic {