rust/src/librustdoc
Manish Goregaokar 04380482b9
Rollup merge of #88639 - Emilgardis:fix-issue-88600, r=GuillaumeGomez
rustdoc: Fix ICE with `doc(hidden)` on tuple variant fields

Fixes #88600.

```rust
pub struct H;
pub struct S;

pub enum FooEnum {
    HiddenTupleItem(#[doc(hidden)] H),
    MultipleHidden(#[doc(hidden)] H, #[doc(hidden)] H),
    MixedHiddenFirst(#[doc(hidden)] H, S),
    MixedHiddenLast(S, #[doc(hidden)] H),
    HiddenStruct {
        #[doc(hidden)]
        h: H,
        s: S,
    },
}
```

Generates
![image](https://user-images.githubusercontent.com/1502855/132259152-382f9517-c2a0-41d8-acd0-64e5993931fc.png)
2021-09-10 08:23:20 -07:00
..
clean Ignore automatically derived impls of Clone and Debug in dead code analysis 2021-09-09 19:49:07 +02:00
doctest Fix injected errors when running doctests on a crate named after a keyword 2021-02-11 17:16:43 -05:00
formats Fix more “a”/“an” typos 2021-08-22 16:35:29 +02:00
html Rollup merge of #88639 - Emilgardis:fix-issue-88600, r=GuillaumeGomez 2021-09-10 08:23:20 -07:00
json Auto merge of #88604 - camelid:rustdoc-lifetime-bounds, r=GuillaumeGomez 2021-09-05 12:52:34 +00:00
passes Use summary_opts() for Markdown summaries 2021-09-03 17:10:52 -07:00
theme Clean up rustdoc static files 2021-07-07 17:52:18 +02:00
Cargo.toml rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
config.rs Stabilize force-warn 2021-08-24 11:19:55 -04:00
core.rs Rollup merge of #88215 - jyn514:lazy-loading, r=petrochenkov 2021-08-26 12:38:07 -07:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Rename walk_crate. 2021-09-02 19:23:11 +02:00
doctree.rs Teach tools that macros are now HIR items 2021-08-28 00:24:39 -07:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Use Tera templates for rustdoc. 2021-06-20 23:07:28 -07:00
fold.rs Use the correct type for Enum variant tuples 2021-08-29 16:00:48 +02:00
lib.rs Rename rustc_mir to rustc_const_eval. 2021-09-07 20:46:26 +02:00
lint.rs Warn when rustdoc:: group is omitted from lint names 2021-07-03 15:32:09 -04:00
markdown.rs Move calls to test_main into one function 2021-07-22 17:01:12 +02: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 Change librustdoc write(.. \n) to writeln(..); fix comment in grammar 2021-05-03 02:19:57 -05:00
visit_ast.rs Teach tools that macros are now HIR items 2021-08-28 00:24:39 -07:00
visit_lib.rs Remove the dummy cache in DocContext 2021-03-01 00:30:30 -05:00

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