rust/src/librustdoc
Mara Bos 9df8dcbcde
Rollup merge of #81040 - osa1:fix_80992, r=jyn514
doctest: Reset errors before dropping the parse session

The first parse is to collect whether the code contains macros, has
`main`, and uses other crates. In that pass we ignore errors as those
will be reported when the test file is actually built.

For that we need to reset errors in the `Diagnostic` otherwise when
dropping it unhandled errors will be reported as compiler bugs.

Fixes #80992
2021-01-16 17:30:10 +00:00
..
clean Rollup merge of #81021 - CraftSpider:rustdoc-remove-import, r=jyn514 2021-01-16 17:30:08 +00:00
doctest Remove unnecessary semicolon from Rustdoc-generated code 2020-12-29 16:30:02 -05:00
formats Improve code for DocFragment rework 2021-01-02 19:16:27 +01:00
html Rollup merge of #81033 - jyn514:nested-variant, r=CraftSpider 2021-01-15 23:31:00 +01:00
json Rename VariantKind -> Variant 2021-01-15 13:55:03 -05:00
passes Rename VariantKind -> Variant 2021-01-15 13:55:03 -05:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Simplfy color availability check 2020-11-17 10:33:14 +01:00
config.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00
core.rs Rollup merge of #80372 - jyn514:fix-panics, r=Manishearth 2021-01-08 11:11:41 +09:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs doctest: Reset errors before dropping the parse session 2021-01-16 06:55:29 +03:00
doctree.rs Remove doctree::Import 2021-01-15 12:49:45 -05:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs Rename VariantKind -> Variant 2021-01-15 13:55:03 -05:00
lib.rs Auto merge of #77858 - ijackson:split-inclusive, r=KodrAus 2021-01-13 07:38:58 +00:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Replace under-used ImplPolarity enum with a boolean 2021-01-09 14:59:37 +01:00
visit_ast.rs Remove doctree::Import 2021-01-15 12:49:45 -05:00
visit_lib.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00

For more information about how librustdoc works, see the rustc dev guide.