rust/clippy_lints/src/methods
Ömer Sinan Ağacan 34b373d309 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
..
bind_instead_of_map.rs Merge commit '3e7c6dec24' into clippyup 2020-11-23 13:51:04 +01:00
inefficient_to_string.rs Merge commit 'b20d4c155d' into clippyup 2020-11-05 14:29:48 +01:00
inspect_for_each.rs Merge commit '95c0459217' into clippyup 2021-01-30 18:06:34 +01:00
manual_saturating_arithmetic.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
mod.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
option_map_unwrap_or.rs Merge commit 'b20d4c155d' into clippyup 2020-11-05 14:29:48 +01:00
unnecessary_filter_map.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
unnecessary_lazy_eval.rs Merge commit '3e7c6dec24' into clippyup 2020-11-23 13:51:04 +01:00