@@ -313,7 +313,7 @@ pub trait RegisterInfo: Sized {
313313pub trait Register : Debug + Sized + Clone + Copy + Hash + Eq {
314314 type InfoType : RegisterInfo < RegType = Self > ;
315315
316- fn name ( & self ) -> Cow < str > ;
316+ fn name ( & self ) -> Cow < ' _ , str > ;
317317 fn info ( & self ) -> Self :: InfoType ;
318318
319319 /// Unique identifier for this `Register`.
@@ -341,7 +341,7 @@ pub trait RegisterStack: Debug + Sized + Clone + Copy {
341341 type RegType : Register < InfoType = Self :: RegInfoType > ;
342342 type RegInfoType : RegisterInfo < RegType = Self :: RegType > ;
343343
344- fn name ( & self ) -> Cow < str > ;
344+ fn name ( & self ) -> Cow < ' _ , str > ;
345345 fn info ( & self ) -> Self :: InfoType ;
346346
347347 /// Unique identifier for this `RegisterStack`.
@@ -353,7 +353,7 @@ pub trait RegisterStack: Debug + Sized + Clone + Copy {
353353pub trait Flag : Debug + Sized + Clone + Copy + Hash + Eq {
354354 type FlagClass : FlagClass ;
355355
356- fn name ( & self ) -> Cow < str > ;
356+ fn name ( & self ) -> Cow < ' _ , str > ;
357357 fn role ( & self , class : Option < Self :: FlagClass > ) -> FlagRole ;
358358
359359 /// Unique identifier for this `Flag`.
@@ -366,7 +366,7 @@ pub trait FlagWrite: Sized + Clone + Copy {
366366 type FlagType : Flag ;
367367 type FlagClass : FlagClass ;
368368
369- fn name ( & self ) -> Cow < str > ;
369+ fn name ( & self ) -> Cow < ' _ , str > ;
370370 fn class ( & self ) -> Option < Self :: FlagClass > ;
371371
372372 /// Unique identifier for this `FlagWrite`.
@@ -379,7 +379,7 @@ pub trait FlagWrite: Sized + Clone + Copy {
379379}
380380
381381pub trait FlagClass : Sized + Clone + Copy + Hash + Eq {
382- fn name ( & self ) -> Cow < str > ;
382+ fn name ( & self ) -> Cow < ' _ , str > ;
383383
384384 /// Unique identifier for this `FlagClass`.
385385 ///
@@ -392,7 +392,7 @@ pub trait FlagGroup: Debug + Sized + Clone + Copy {
392392 type FlagType : Flag ;
393393 type FlagClass : FlagClass ;
394394
395- fn name ( & self ) -> Cow < str > ;
395+ fn name ( & self ) -> Cow < ' _ , str > ;
396396
397397 /// Unique identifier for this `FlagGroup`.
398398 ///
@@ -427,7 +427,7 @@ pub trait FlagGroup: Debug + Sized + Clone + Copy {
427427}
428428
429429pub trait Intrinsic : Debug + Sized + Clone + Copy {
430- fn name ( & self ) -> Cow < str > ;
430+ fn name ( & self ) -> Cow < ' _ , str > ;
431431
432432 /// Unique identifier for this `Intrinsic`.
433433 fn id ( & self ) -> IntrinsicId ;
@@ -704,7 +704,7 @@ impl<R: Register> RegisterStack for UnusedRegisterStack<R> {
704704 type RegType = R ;
705705 type RegInfoType = R :: InfoType ;
706706
707- fn name ( & self ) -> Cow < str > {
707+ fn name ( & self ) -> Cow < ' _ , str > {
708708 unreachable ! ( )
709709 }
710710 fn id ( & self ) -> RegisterStackId {
@@ -721,7 +721,7 @@ pub struct UnusedFlag;
721721
722722impl Flag for UnusedFlag {
723723 type FlagClass = Self ;
724- fn name ( & self ) -> Cow < str > {
724+ fn name ( & self ) -> Cow < ' _ , str > {
725725 unreachable ! ( )
726726 }
727727 fn role ( & self , _class : Option < Self :: FlagClass > ) -> FlagRole {
@@ -735,7 +735,7 @@ impl Flag for UnusedFlag {
735735impl FlagWrite for UnusedFlag {
736736 type FlagType = Self ;
737737 type FlagClass = Self ;
738- fn name ( & self ) -> Cow < str > {
738+ fn name ( & self ) -> Cow < ' _ , str > {
739739 unreachable ! ( )
740740 }
741741 fn class ( & self ) -> Option < Self > {
@@ -750,7 +750,7 @@ impl FlagWrite for UnusedFlag {
750750}
751751
752752impl FlagClass for UnusedFlag {
753- fn name ( & self ) -> Cow < str > {
753+ fn name ( & self ) -> Cow < ' _ , str > {
754754 unreachable ! ( )
755755 }
756756 fn id ( & self ) -> FlagClassId {
@@ -761,7 +761,7 @@ impl FlagClass for UnusedFlag {
761761impl FlagGroup for UnusedFlag {
762762 type FlagType = Self ;
763763 type FlagClass = Self ;
764- fn name ( & self ) -> Cow < str > {
764+ fn name ( & self ) -> Cow < ' _ , str > {
765765 unreachable ! ( )
766766 }
767767 fn id ( & self ) -> FlagGroupId {
@@ -780,7 +780,7 @@ impl FlagGroup for UnusedFlag {
780780pub struct UnusedIntrinsic ;
781781
782782impl Intrinsic for UnusedIntrinsic {
783- fn name ( & self ) -> Cow < str > {
783+ fn name ( & self ) -> Cow < ' _ , str > {
784784 unreachable ! ( )
785785 }
786786 fn id ( & self ) -> IntrinsicId {
@@ -862,7 +862,7 @@ impl CoreRegister {
862862impl Register for CoreRegister {
863863 type InfoType = CoreRegisterInfo ;
864864
865- fn name ( & self ) -> Cow < str > {
865+ fn name ( & self ) -> Cow < ' _ , str > {
866866 unsafe {
867867 let name = BNGetArchitectureRegisterName ( self . arch . handle , self . id . into ( ) ) ;
868868
@@ -988,7 +988,7 @@ impl RegisterStack for CoreRegisterStack {
988988 type RegType = CoreRegister ;
989989 type RegInfoType = CoreRegisterInfo ;
990990
991- fn name ( & self ) -> Cow < str > {
991+ fn name ( & self ) -> Cow < ' _ , str > {
992992 unsafe {
993993 let name = BNGetArchitectureRegisterStackName ( self . arch . handle , self . id . into ( ) ) ;
994994
@@ -1043,7 +1043,7 @@ impl CoreFlag {
10431043impl Flag for CoreFlag {
10441044 type FlagClass = CoreFlagClass ;
10451045
1046- fn name ( & self ) -> Cow < str > {
1046+ fn name ( & self ) -> Cow < ' _ , str > {
10471047 unsafe {
10481048 let name = BNGetArchitectureFlagName ( self . arch . handle , self . id . into ( ) ) ;
10491049
@@ -1103,7 +1103,7 @@ impl FlagWrite for CoreFlagWrite {
11031103 type FlagType = CoreFlag ;
11041104 type FlagClass = CoreFlagClass ;
11051105
1106- fn name ( & self ) -> Cow < str > {
1106+ fn name ( & self ) -> Cow < ' _ , str > {
11071107 unsafe {
11081108 let name = BNGetArchitectureFlagWriteTypeName ( self . arch . handle , self . id . into ( ) ) ;
11091109
@@ -1187,7 +1187,7 @@ impl CoreFlagClass {
11871187}
11881188
11891189impl FlagClass for CoreFlagClass {
1190- fn name ( & self ) -> Cow < str > {
1190+ fn name ( & self ) -> Cow < ' _ , str > {
11911191 unsafe {
11921192 let name = BNGetArchitectureSemanticFlagClassName ( self . arch . handle , self . id . into ( ) ) ;
11931193
@@ -1238,7 +1238,7 @@ impl FlagGroup for CoreFlagGroup {
12381238 type FlagType = CoreFlag ;
12391239 type FlagClass = CoreFlagClass ;
12401240
1241- fn name ( & self ) -> Cow < str > {
1241+ fn name ( & self ) -> Cow < ' _ , str > {
12421242 unsafe {
12431243 let name = BNGetArchitectureSemanticFlagGroupName ( self . arch . handle , self . id . into ( ) ) ;
12441244
@@ -1336,7 +1336,7 @@ impl CoreIntrinsic {
13361336}
13371337
13381338impl Intrinsic for CoreIntrinsic {
1339- fn name ( & self ) -> Cow < str > {
1339+ fn name ( & self ) -> Cow < ' _ , str > {
13401340 unsafe {
13411341 let name = BNGetArchitectureIntrinsicName ( self . arch . handle , self . id . into ( ) ) ;
13421342
0 commit comments