@@ -3260,13 +3260,13 @@ impl Parse for VOffset {
3260
3260
#[ derive( Clone , Debug , PartialEq , Eq ) ]
3261
3261
pub enum CtorDtorName {
3262
3262
/// "C1", the "complete object constructor"
3263
- CompleteConstructor ( Option < TypeHandle > ) ,
3263
+ CompleteConstructor ( Option < Box < Name > > ) ,
3264
3264
/// "C2", the "base object constructor"
3265
- BaseConstructor ( Option < TypeHandle > ) ,
3265
+ BaseConstructor ( Option < Box < Name > > ) ,
3266
3266
/// "C3", the "complete object allocating constructor"
3267
- CompleteAllocatingConstructor ( Option < TypeHandle > ) ,
3267
+ CompleteAllocatingConstructor ( Option < Box < Name > > ) ,
3268
3268
/// "C4", the "maybe in-charge constructor"
3269
- MaybeInChargeConstructor ( Option < TypeHandle > ) ,
3269
+ MaybeInChargeConstructor ( Option < Box < Name > > ) ,
3270
3270
/// "D0", the "deleting destructor"
3271
3271
DeletingDestructor ,
3272
3272
/// "D1", the "complete object destructor"
@@ -3278,7 +3278,7 @@ pub enum CtorDtorName {
3278
3278
}
3279
3279
3280
3280
impl CtorDtorName {
3281
- fn inheriting_mut ( & mut self ) -> & mut Option < TypeHandle > {
3281
+ fn inheriting_mut ( & mut self ) -> & mut Option < Box < Name > > {
3282
3282
match self {
3283
3283
CtorDtorName :: CompleteConstructor ( ref mut inheriting)
3284
3284
| CtorDtorName :: BaseConstructor ( ref mut inheriting)
@@ -3337,8 +3337,8 @@ impl Parse for CtorDtorName {
3337
3337
} ?;
3338
3338
3339
3339
if inheriting {
3340
- let ( ty, tail) = TypeHandle :: parse ( ctx, subs, tail) ?;
3341
- * ctor_type. inheriting_mut ( ) = Some ( ty ) ;
3340
+ let ( ty, tail) = Name :: parse ( ctx, subs, tail) ?;
3341
+ * ctor_type. inheriting_mut ( ) = Some ( Box :: new ( ty ) ) ;
3342
3342
Ok ( ( ctor_type, tail) )
3343
3343
} else {
3344
3344
Ok ( ( ctor_type, tail) )
0 commit comments