about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/thir/abstract_const.rs
AgeCommit message (Collapse)AuthorLines
2022-07-12Move abstract const to rustc_middle::tykadmin-61/+0
2022-07-05impl TypeVisitable in type traversal macrosAlan Egerton-1/+1
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-5/+5
2022-02-15Overhaul `Const`.Nicholas Nethercote-1/+1
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.
2021-09-09add a `CastKind` to `Node::Cast`Ellen-1/+9
2021-09-09nitsEllen-4/+19
2021-09-09rename mir -> thir around abstract constsEllen-0/+38