rust/src/librustc_errors
Nicholas Nethercote 7bcb0cffb6 In JSON output, emit a directive after metadata is generated.
To implement pipelining, Cargo needs to know when metadata generation is
finished. This commit adds code to do that. Unfortunately, metadata file
writing currently occurs very late during compilation, so pipelining
won't produce a speed-up. Moving metadata file writing earlier will be a
follow-up.

The change involves splitting the existing `Emitter::emit` method in
two: `Emitter::emit_diagnostic` and `Emitter::emit_directive`.

The JSON directives look like this:
```
{"directive":"metadata file written: liba.rmeta"}
```
The functionality is behind the `-Z emit-directives` option, and also
requires `--error-format=json`.
2019-04-30 08:51:57 +10:00
..
Cargo.toml librustc_errors => 2018 2019-02-07 03:53:01 +09:00
diagnostic.rs Tweak unsupported negative trait bounds message 2019-03-23 13:05:30 -07:00
diagnostic_builder.rs fix bad logic 2019-03-07 08:46:18 -08:00
emitter.rs In JSON output, emit a directive after metadata is generated. 2019-04-30 08:51:57 +10:00
lib.rs In JSON output, emit a directive after metadata is generated. 2019-04-30 08:51:57 +10:00
lock.rs Remove licenses 2018-12-25 21:08:33 -07:00
registry.rs Remove licenses 2018-12-25 21:08:33 -07:00
snippet.rs Fix MultilineAnnotation field name 2019-03-28 20:19:50 -07:00
styled_buffer.rs librustc_errors => 2018 2019-02-07 03:53:01 +09:00