rust/compiler/rustc_const_eval/src/interpret
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
..
intrinsics Overhaul Const. 2022-02-15 16:19:59 +11:00
cast.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
eval_context.rs use body.tainted_by_error to skip loading MIR 2022-02-11 12:45:51 -08:00
intern.rs Remove in_band_lifetimes from rustc_const_eval 2021-12-13 22:39:00 -05:00
intrinsics.rs Rollup merge of #91814 - japm48:spelling-fix, r=RalfJung 2021-12-12 07:45:30 +01:00
machine.rs Rollup merge of #90102 - nbdd0121:box3, r=jonas-schievink 2022-01-03 14:44:15 +01:00
memory.rs fix ICE on Miri/CTFE copy of half a pointer 2021-11-13 20:56:01 -05:00
mod.rs Rename rustc_mir to rustc_const_eval. 2021-09-07 20:46:26 +02:00
operand.rs Overhaul Const. 2022-02-15 16:19:59 +11:00
operator.rs comment update 2021-12-14 19:29:29 +03:00
place.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
step.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
terminator.rs don't ICE on variadic function calls 2021-12-20 22:37:14 +01:00
traits.rs Turn tcx.vtable_allocation() into a query. 2021-10-07 20:03:00 +02:00
util.rs Overhaul Const. 2022-02-15 16:19:59 +11:00
validity.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
visitor.rs Rename rustc_mir to rustc_const_eval. 2021-09-07 20:46:26 +02:00