Uh oh!
There was an error while loading. Please reload this page.
Make Handler more thread-safe - #49349
Conversation
993a195 to
fba94e9Compareshepmaster
commented
Mar 30, 2018
Ping from review, @michaelwoerister ! |
Zoxc
commented
Apr 2, 2018
The |
bors
commented
Apr 5, 2018
☔ The latest upstream changes (presumably #49045) made this pull request unmergeable. Please resolve the merge conflicts. |
emilyalbini
commented
Apr 9, 2018
Ping from triage @michaelwoerister! This PR still needs your review. |
estebank
commented
Apr 11, 2018
IIRC, I tried that first, but hit a wall with some of the module dependencies. I agree that it'd be a better API, but it'll probably require a larger refactoring (and I was trying to get the proof of concept for |
Zoxc
commented
Apr 11, 2018
Actually the scheme used by Neither is compatible with incremental compilation though. @michaelwoerister Do we have a tracking issue for incremental compilation? |
rust-highfive
commented
Apr 11, 2018
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
michaelwoerister
commented
Apr 12, 2018
bors
commented
Apr 12, 2018
☔ The latest upstream changes (presumably #49558) made this pull request unmergeable. Please resolve the merge conflicts. |
emilyalbini
commented
Apr 16, 2018
Ping from triage @michaelwoerister! What's the status of this PR? |
bors
commented
Apr 17, 2018
☔ The latest upstream changes (presumably #49882) made this pull request unmergeable. Please resolve the merge conflicts. |
rust-highfive
commented
Apr 17, 2018
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
michaelwoerister
commented
Apr 18, 2018
@bors r+ |
bors
commented
Apr 18, 2018
📌 Commit e5fc06d has been approved by |
bors
commented
Apr 18, 2018
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? @michaelwoeristerbors
commented
Apr 18, 2018
☀️ Test successful - status-appveyor, status-travis |
The use of
code_emittedto suppress extended explanations is not thread safe. I'm not sure why we keep the documentation for errors outsidediagnostics.rsanyway. It would be better to add ateachmethod toDiagnosticsBuilder, so instead of:we'd use
err.teach("...")cc @estebank
r? @michaelwoerister