f4bb956278
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 |
||
---|---|---|
.. | ||
clean | ||
html | ||
passes | ||
Cargo.toml | ||
README.md | ||
core.rs | ||
doctree.rs | ||
externalfiles.rs | ||
fold.rs | ||
lib.rs | ||
markdown.rs | ||
plugins.rs | ||
test.rs | ||
theme.rs | ||
visit_ast.rs | ||
visit_lib.rs |
README.md
For more information about how librustdoc
works, see the rustc guide.