rust/compiler/rustc_traits/src
Nicholas Nethercote a95fb8b150 Overhaul Const.
Specifically, rename the `Const` struct as `ConstS` and re-introduce `Const` as
this:
```
pub struct Const<'tcx>(&'tcx Interned<ConstS>);
```
This now matches `Ty` and `Predicate` more closely, including using
pointer-based `eq` and `hash`.

Notable changes:
- `mk_const` now takes a `ConstS`.
- `Const` was copy, despite being 48 bytes. Now `ConstS` is not, so need a
  we need separate arena for it, because we can't use the `Dropless` one any
  more.
- Many `&'tcx Const<'tcx>`/`&Const<'tcx>` to `Const<'tcx>` changes
- Many `ct.ty` to `ct.ty()` and `ct.val` to `ct.val()` changes.
- Lots of tedious sigil fiddling.
2022-02-15 16:19:59 +11:00
..
chalk Overhaul Const. 2022-02-15 16:19:59 +11:00
dropck_outlives.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
evaluate_obligation.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
implied_outlives_bounds.rs Revert "Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis" 2022-02-11 07:18:06 +00:00
lib.rs Removed in_band_lifetimes from rustc_traits 2021-12-30 13:59:19 -05:00
normalize_erasing_regions.rs Overhaul PredicateInner and Predicate. 2022-02-15 16:03:26 +11:00
normalize_projection_ty.rs Remove generalization over projection 2022-01-28 00:25:36 +00:00
type_op.rs Removed in_band_lifetimes from rustc_traits 2021-12-30 13:59:19 -05:00