rust/compiler/rustc_mir_build/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
..
build Overhaul Const. 2022-02-15 16:19:59 +11:00
thir Overhaul Const. 2022-02-15 16:19:59 +11:00
check_unsafety.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
lib.rs add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
lints.rs Check the number of arguments first in is_recursive_call 2022-01-29 23:00:54 +01:00