rust/compiler/rustc_middle/src/ty
Yuki Okushi a58feb9282
Rollup merge of #81913 - osa1:rename_unop_variants, r=matthewjasper
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-10 12:24:28 +09:00
..
consts Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
inhabitedness Implement Debug for DefIdForest 2021-01-16 17:56:32 -05:00
print path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
query Auto merge of #81905 - Dylan-DPC:rollup-mxpz1j7, r=Dylan-DPC 2021-02-09 05:57:18 +00:00
_match.rs More rebinds 2020-12-19 04:26:35 -05:00
adjustment.rs Reduce boilerplate with the matches! macro 2020-09-21 05:28:40 +02:00
binding.rs words 2020-11-16 22:42:09 +01:00
cast.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
codec.rs Rollup merge of #81100 - lcnr:encode_with_shorthand, r=oli-obk 2021-01-18 21:53:26 +10:00
consts.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
context.rs Adapt to latest master changes by using PredicateKind 2021-02-05 18:56:57 -03:00
diagnostics.rs Bump rustfmt version 2021-02-02 09:09:52 -05:00
erase_regions.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
error.rs Bump rustfmt version 2021-02-02 09:09:52 -05:00
fast_reject.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
flags.rs Review changes 2021-01-16 18:56:37 -05:00
fold.rs Make BoundRegion have a kind of BoungRegionKind 2020-12-18 15:27:28 -05:00
instance.rs Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
layout.rs Auto merge of #80652 - calebzulawski:simd-lanes, r=nagisa 2021-02-07 22:25:14 +00:00
list.rs Fix typo 2020-12-23 13:08:15 -08:00
mod.rs Fix typos 2021-01-29 16:01:27 -05:00
normalize_erasing_regions.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
outlives.rs Address comments 2020-10-14 00:17:42 -04:00
relate.rs Auto merge of #79635 - lcnr:const-eval-idk, r=oli-obk 2020-12-20 00:50:46 +00:00
structural_impls.rs Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
sty.rs use generic arguments of associated item in trait_ref method 2021-02-04 21:37:14 +01:00
subst.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
trait_def.rs Enforce that query results implement Debug 2021-01-16 17:53:02 -05:00
util.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
walk.rs MiniSet/MiniMap moved and renamed into SsoHashSet/SsoHashMap 2020-09-26 14:30:05 -05:00