rust/compiler/rustc_lint/src
Ö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
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
builtin.rs Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
context.rs Add --extern-loc to augment unused crate dependency diagnostics 2021-02-07 14:54:20 -08:00
early.rs Really fix early lints inside an async desugaring 2021-02-03 10:05:58 +01:00
internal.rs Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
late.rs Reset LateContext enclosing body in nested items 2021-01-18 13:38:14 -06:00
levels.rs introduce future-compatibility warning for forbidden lint groups 2021-02-02 18:21:37 -05:00
lib.rs Add lint for panic!(123) which is not accepted in Rust 2021. 2021-02-03 22:42:53 +01:00
methods.rs Fix doctest 2020-10-26 18:19:49 -04:00
non_ascii_idents.rs Auto merge of #76541 - matthiaskrgr:unstable_sort, r=davidtwco 2020-09-14 21:43:17 +00:00
non_fmt_panic.rs Add lint for panic!(123) which is not accepted in Rust 2021. 2021-02-03 22:42:53 +01:00
nonstandard_style.rs review comments 2021-01-30 22:06:10 -08:00
passes.rs Add check_generic_arg early pass 2020-10-16 17:14:36 -03:00
redundant_semicolon.rs Lint on redundant trailing semicolon after item 2020-12-29 16:30:02 -05:00
traits.rs Review changes 2021-01-16 18:56:37 -05:00
types.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
unused.rs Fix an old FIXME in redundant paren lint 2021-01-30 22:39:56 +03:00