diff options
| author | Jeremy Fitzhardinge <jsgf@fb.com> | 2019-05-21 12:38:46 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jsgf@fb.com> | 2019-05-21 13:51:36 -0700 |
| commit | 6c3862594210cc0a5e60fbad32d3aab7a4fb512c (patch) | |
| tree | 8843a8f4a17c54514ab2937b87e3ea0b9ad93806 /src/librustc_interface | |
| parent | 09189591c4c4f6784ffd4bbe99eaefbfe1d5e4a4 (diff) | |
| download | rust-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.rs | 3 |
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"); } } |
