about summary refs log tree commit diff
path: root/src/librustc_interface
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jsgf@fb.com>2019-05-21 12:38:46 -0700
committerJeremy Fitzhardinge <jsgf@fb.com>2019-05-21 13:51:36 -0700
commit6c3862594210cc0a5e60fbad32d3aab7a4fb512c (patch)
tree8843a8f4a17c54514ab2937b87e3ea0b9ad93806 /src/librustc_interface
parent09189591c4c4f6784ffd4bbe99eaefbfe1d5e4a4 (diff)
downloadrust-6c3862594210cc0a5e60fbad32d3aab7a4fb512c.tar.gz
rust-6c3862594210cc0a5e60fbad32d3aab7a4fb512c.zip
Make -Zemit-artifact-notifications also emit the artifact type
This is easier for tooling to handle than trying to reverse-engineer it from the filename extension.
Diffstat (limited to 'src/librustc_interface')
-rw-r--r--src/librustc_interface/passes.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_interface/passes.rs b/src/librustc_interface/passes.rs
index c5ac8860ccd..f17554b1fbd 100644
--- a/src/librustc_interface/passes.rs
+++ b/src/librustc_interface/passes.rs
@@ -1052,7 +1052,8 @@ fn encode_and_write_metadata<'tcx>(
             tcx.sess.fatal(&format!("failed to write {}: {}", out_filename.display(), e));
         }
         if tcx.sess.opts.debugging_opts.emit_artifact_notifications {
-            tcx.sess.parse_sess.span_diagnostic.emit_artifact_notification(&out_filename);
+            tcx.sess.parse_sess.span_diagnostic
+                .emit_artifact_notification(&out_filename, "metadata");
         }
     }