rust/src/librustdoc
Ömer Sinan Ağacan c4e3558b8c Rename HIR UnOp variants
This renames the variants in HIR UnOp from

    enum UnOp {
        UnDeref,
        UnNot,
        UnNeg,
    }

to

    enum UnOp {
        Deref,
        Not,
        Neg,
    }

Motivations:

- This is more consistent with the rest of the code base where most enum
  variants don't have a prefix.

- These variants are never used without the `UnOp` prefix so the extra
  `Un` prefix doesn't help with readability. E.g. we don't have any
  `UnDeref`s in the code, we only have `UnOp::UnDeref`.

- MIR `UnOp` type variants don't have a prefix so this is more
  consistent with MIR types.

- "un" prefix reads like "inverse" or "reverse", so as a beginner in
  rustc code base when I see "UnDeref" what comes to my mind is
  something like "&*" instead of just "*".
2021-02-09 11:39:20 +03:00
..
clean Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
doctest Remove unnecessary semicolon from Rustdoc-generated code 2020-12-29 16:30:02 -05:00
formats Remove Function all_types and ret_types fields 2021-02-05 17:23:52 +01:00
html Auto merge of #81313 - LeSeulArtichaut:revert-32558, r=jyn514 2021-02-08 10:46:10 +00:00
json Auto merge of #81502 - CraftSpider:method-abi, r=jyn514 2021-02-07 10:59:41 +00:00
passes Cleanup rustdoc pass descriptions a bit 2021-02-04 13:51:11 -08:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml rustdoc tweaking 2021-01-30 01:02:18 +00:00
config.rs Rollup merge of #81495 - camelid:rustdoc-output_format-optional, r=GuillaumeGomez 2021-01-30 13:36:53 +09:00
core.rs Cleanup rustdoc pass descriptions a bit 2021-02-04 13:51:11 -08:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Make rustdoc respect --error-format short 2021-02-02 22:03:28 +01:00
doctree.rs Move StructType to clean, remove it from Unions, make JSON output whether something is a union 2021-01-20 16:46:34 -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 Rollup merge of #80011 - Stupremee:stabilize-peekable-next-if, r=dtolnay 2021-02-06 00:14:06 +01: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.