@@ -15,8 +15,8 @@ use rustc_target::abi::{Abi, DiscriminantKind, HasDataLayout, Integer, LayoutOf,
15
15
use rustc_target:: abi:: { VariantIdx , Variants } ;
16
16
17
17
use super :: {
18
- from_known_layout, sign_extend, truncate, AllocId , ConstValue , GlobalId , InterpCx ,
19
- InterpResult , MPlaceTy , Machine , MemPlace , Place , PlaceTy , Pointer , Scalar , ScalarMaybeUndef ,
18
+ from_known_layout, sign_extend, truncate, ConstValue , GlobalId , InterpCx , InterpResult ,
19
+ MPlaceTy , Machine , MemPlace , Place , PlaceTy , Pointer , Scalar , ScalarMaybeUndef ,
20
20
} ;
21
21
22
22
/// An `Immediate` represents a single immediate self-contained Rust value.
@@ -27,9 +27,9 @@ use super::{
27
27
/// In particular, thanks to `ScalarPair`, arithmetic operations and casts can be entirely
28
28
/// defined on `Immediate`, and do not have to work with a `Place`.
29
29
#[ derive( Copy , Clone , Debug , PartialEq , Eq , HashStable , Hash ) ]
30
- pub enum Immediate < Tag = ( ) , Id = AllocId > {
31
- Scalar ( ScalarMaybeUndef < Tag , Id > ) ,
32
- ScalarPair ( ScalarMaybeUndef < Tag , Id > , ScalarMaybeUndef < Tag , Id > ) ,
30
+ pub enum Immediate < Tag = ( ) > {
31
+ Scalar ( ScalarMaybeUndef < Tag > ) ,
32
+ ScalarPair ( ScalarMaybeUndef < Tag > , ScalarMaybeUndef < Tag > ) ,
33
33
}
34
34
35
35
impl < Tag > From < ScalarMaybeUndef < Tag > > for Immediate < Tag > {
@@ -145,9 +145,9 @@ impl<'tcx, Tag> ::std::ops::Deref for ImmTy<'tcx, Tag> {
145
145
/// or still in memory. The latter is an optimization, to delay reading that chunk of
146
146
/// memory and to avoid having to store arbitrary-sized data here.
147
147
#[ derive( Copy , Clone , Debug , PartialEq , Eq , HashStable , Hash ) ]
148
- pub enum Operand < Tag = ( ) , Id = AllocId > {
149
- Immediate ( Immediate < Tag , Id > ) ,
150
- Indirect ( MemPlace < Tag , Id > ) ,
148
+ pub enum Operand < Tag = ( ) > {
149
+ Immediate ( Immediate < Tag > ) ,
150
+ Indirect ( MemPlace < Tag > ) ,
151
151
}
152
152
153
153
#[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash ) ]
0 commit comments