rust/compiler/rustc_ast_lowering/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
..
expr.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
item.rs Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
lib.rs lowering of generic args in AssocTyConstraint 2021-02-04 16:20:58 +01:00
pat.rs
path.rs lowering of generic args in AssocTyConstraint 2021-02-04 16:20:58 +01:00