const-eval interner: from-scratch rewrite using mutability information from provenance rather than types
This commit is contained in:
parent
a58ec8ff03
commit
2f1a8e2d7a
52 changed files with 1093 additions and 688 deletions
|
@ -277,6 +277,12 @@ impl From<AllocId> for Pointer {
|
|||
Pointer::new(alloc_id.into(), Size::ZERO)
|
||||
}
|
||||
}
|
||||
impl From<CtfeProvenance> for Pointer {
|
||||
#[inline(always)]
|
||||
fn from(prov: CtfeProvenance) -> Self {
|
||||
Pointer::new(prov, Size::ZERO)
|
||||
}
|
||||
}
|
||||
|
||||
impl<Prov> From<Pointer<Prov>> for Pointer<Option<Prov>> {
|
||||
#[inline(always)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue