@@ -28,7 +28,7 @@ pub enum MemoryKind<T> {
2828 /// Stack memory. Error if deallocated except during a stack pop.
2929 Stack ,
3030 /// Heap memory.
31- Heap ,
31+ ConstHeap ,
3232 /// Memory backing vtables. Error if ever deallocated.
3333 Vtable ,
3434 /// Memory allocated by `caller_location` intrinsic. Error if ever deallocated.
@@ -42,7 +42,7 @@ impl<T: MayLeak> MayLeak for MemoryKind<T> {
4242 fn may_leak ( self ) -> bool {
4343 match self {
4444 MemoryKind :: Stack => false ,
45- MemoryKind :: Heap => false ,
45+ MemoryKind :: ConstHeap => false ,
4646 MemoryKind :: Vtable => true ,
4747 MemoryKind :: CallerLocation => true ,
4848 MemoryKind :: Machine ( k) => k. may_leak ( ) ,
@@ -54,7 +54,7 @@ impl<T: fmt::Display> fmt::Display for MemoryKind<T> {
5454 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
5555 match self {
5656 MemoryKind :: Stack => write ! ( f, "stack variable" ) ,
57- MemoryKind :: Heap => write ! ( f, "heap allocation" ) ,
57+ MemoryKind :: ConstHeap => write ! ( f, "heap allocation" ) ,
5858 MemoryKind :: Vtable => write ! ( f, "vtable" ) ,
5959 MemoryKind :: CallerLocation => write ! ( f, "caller location" ) ,
6060 MemoryKind :: Machine ( m) => write ! ( f, "{}" , m) ,
0 commit comments