rust/compiler/rustc_passes/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
..
liveness Move RWUTable to a separate module 2020-12-09 00:00:00 +00:00
check_attr.rs Fixed #[inline] to be warned in fields, arms, macro defs 2021-02-01 23:36:19 +09:00
check_const.rs Add loop head span to hir 2021-01-21 21:41:46 -08:00
dead.rs Add missing brace 2021-01-28 17:49:40 +01:00
diagnostic_items.rs Use visitor for its very purpose. 2020-11-26 21:32:29 +01:00
entry.rs Formatting. 2020-11-26 21:32:29 +01:00
hir_id_validator.rs Do not visit ForeignItemRef for HIR indexing and validation. 2020-11-28 18:08:17 +01:00
hir_stats.rs rustc_ast: visit_mac -> visit_mac_call 2020-11-03 23:39:51 +03:00
intrinsicck.rs Use ty::{IntTy,UintTy,FloatTy} in rustc 2021-01-18 21:09:30 +01:00
lang_items.rs Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
layout_test.rs Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
lib_features.rs
lib.rs Validate use of parameters in naked functions 2020-11-25 00:00:00 +00:00
liveness.rs Add loop head span to hir 2021-01-21 21:41:46 -08:00
loops.rs Do not suggest using a break label when one is already present 2021-01-21 21:43:29 -08:00
naked_functions.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
reachable.rs Allow to query the HIR crate node. 2021-01-23 13:58:09 +01:00
region.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
stability.rs Bump rustfmt version 2021-02-02 09:09:52 -05:00
upvars.rs
weak_lang_items.rs This should address issue 81294. 2021-01-25 14:37:27 -05:00