@@ -3277,13 +3277,13 @@ impl Parse for VOffset {
3277
3277
#[ derive( Clone , Debug , PartialEq , Eq ) ]
3278
3278
pub enum CtorDtorName {
3279
3279
/// "C1", the "complete object constructor"
3280
- CompleteConstructor ( Option < Box < Name > > ) ,
3280
+ CompleteConstructor ( Option < TypeHandle > ) ,
3281
3281
/// "C2", the "base object constructor"
3282
- BaseConstructor ( Option < Box < Name > > ) ,
3282
+ BaseConstructor ( Option < TypeHandle > ) ,
3283
3283
/// "C3", the "complete object allocating constructor"
3284
- CompleteAllocatingConstructor ( Option < Box < Name > > ) ,
3284
+ CompleteAllocatingConstructor ( Option < TypeHandle > ) ,
3285
3285
/// "C4", the "maybe in-charge constructor"
3286
- MaybeInChargeConstructor ( Option < Box < Name > > ) ,
3286
+ MaybeInChargeConstructor ( Option < TypeHandle > ) ,
3287
3287
/// "D0", the "deleting destructor"
3288
3288
DeletingDestructor ,
3289
3289
/// "D1", the "complete object destructor"
@@ -3295,7 +3295,7 @@ pub enum CtorDtorName {
3295
3295
}
3296
3296
3297
3297
impl CtorDtorName {
3298
- fn inheriting_mut ( & mut self ) -> & mut Option < Box < Name > > {
3298
+ fn inheriting_mut ( & mut self ) -> & mut Option < TypeHandle > {
3299
3299
match self {
3300
3300
CtorDtorName :: CompleteConstructor ( ref mut inheriting)
3301
3301
| CtorDtorName :: BaseConstructor ( ref mut inheriting)
@@ -3354,8 +3354,8 @@ impl Parse for CtorDtorName {
3354
3354
} ?;
3355
3355
3356
3356
if inheriting {
3357
- let ( ty, tail) = Name :: parse ( ctx, subs, tail) ?;
3358
- * ctor_type. inheriting_mut ( ) = Some ( Box :: new ( ty ) ) ;
3357
+ let ( ty, tail) = TypeHandle :: parse ( ctx, subs, tail) ?;
3358
+ * ctor_type. inheriting_mut ( ) = Some ( ty ) ;
3359
3359
Ok ( ( ctor_type, tail) )
3360
3360
} else {
3361
3361
Ok ( ( ctor_type, tail) )
0 commit comments