rust/compiler/rustc_query_impl/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
..
keys.rs Overhaul Const. 2022-02-15 16:19:59 +11:00
lib.rs Auto merge of #93741 - Mark-Simulacrum:global-job-id, r=cjgillot 2022-02-09 18:54:30 +00:00
on_disk_cache.rs Make Decodable and Decoder infallible. 2022-01-22 10:38:31 +11:00
plumbing.rs Auto merge of #93741 - Mark-Simulacrum:global-job-id, r=cjgillot 2022-02-09 18:54:30 +00:00
profiling_support.rs Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk 2021-12-19 09:31:37 +00:00
README.md Move the query system to rustc_query_impl. 2021-02-19 17:51:58 +01:00
util.rs Note that type aliases cannot be recursive 2021-08-27 14:50:51 -07:00
values.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00

For more information about how the query system works, see the rustc dev guide.