diff options
| author | bors <bors@rust-lang.org> | 2018-04-18 08:29:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-18 08:29:14 +0000 |
| commit | f4bb956278e395a34b416d5a3ef03044777625ef (patch) | |
| tree | f81d42d2dcd0f62eeb261f55841e9431866ea4f1 /src/liballoc | |
| parent | 23561c6747b0916e852aaa2a5d04c0b0eeddc6de (diff) | |
| parent | e5fc06da8a3b91c8787a6395722e551550161cff (diff) | |
| download | rust-f4bb956278e395a34b416d5a3ef03044777625ef.tar.gz rust-f4bb956278e395a34b416d5a3ef03044777625ef.zip | |
Auto merge of #49349 - Zoxc:sync-errors, r=michaelwoerister
Make Handler more thread-safe
The use of `code_emitted` to suppress extended explanations is not thread safe. I'm not sure why we keep the documentation for errors outside `diagnostics.rs` anyway. It would be better to add a `teach` method to `DiagnosticsBuilder`, so instead of:
```
if self.tcx.sess.teach(&err.get_code().unwrap()) {
err.note("...");
}
```
we'd use `err.teach("...")`
cc @estebank
r? @michaelwoerister
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions
