rust/compiler/rustc_metadata/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
..
rmeta Overhaul Const. 2022-02-15 16:19:59 +11:00
creader.rs rustc_metadata: Switch crate data iteration from a callback to iterator 2021-12-21 19:46:19 +08:00
dependency_format.rs Move rustc_middle::middle::cstore to rustc_session. 2021-10-03 16:08:51 +02:00
foreign_modules.rs Remove in_band_lifetimes from rustc_metadata 2021-12-14 17:35:27 +00:00
lib.rs add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
locator.rs Add a comment about possible mismatches. 2022-02-04 13:10:05 +11:00
native_libs.rs Add more *-unwind ABI variants 2022-02-02 22:21:24 +01:00