about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-18 08:29:14 +0000
committerbors <bors@rust-lang.org>2018-04-18 08:29:14 +0000
commitf4bb956278e395a34b416d5a3ef03044777625ef (patch)
treef81d42d2dcd0f62eeb261f55841e9431866ea4f1 /src/liballoc
parent23561c6747b0916e852aaa2a5d04c0b0eeddc6de (diff)
parente5fc06da8a3b91c8787a6395722e551550161cff (diff)
downloadrust-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