@@ -14,6 +14,7 @@ pub use rustc_target::spec::SanitizerSet;
14
14
use thin_vec:: ThinVec ;
15
15
16
16
use crate :: attrs:: pretty_printing:: PrintAttribute ;
17
+ use crate :: limit:: Limit ;
17
18
use crate :: { DefaultBodyStability , PartialConstStability , RustcVersion , Stability } ;
18
19
19
20
#[ derive( Copy , Clone , PartialEq , Encodable , Decodable , Debug , HashStable_Generic , PrintAttribute ) ]
@@ -566,7 +567,7 @@ pub enum AttributeKind {
566
567
MayDangle ( Span ) ,
567
568
568
569
/// Represents `#[move_size_limit]`
569
- MoveSizeLimit { attr_span : Span , limit_span : Span , limit : usize } ,
570
+ MoveSizeLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
570
571
571
572
/// Represents `#[must_use]`.
572
573
MustUse {
@@ -600,7 +601,7 @@ pub enum AttributeKind {
600
601
Path ( Symbol , Span ) ,
601
602
602
603
/// Represents `#[pattern_complexity_limit]`
603
- PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : usize } ,
604
+ PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
604
605
605
606
/// Represents `#[pointee]`
606
607
Pointee ( Span ) ,
@@ -618,7 +619,7 @@ pub enum AttributeKind {
618
619
PubTransparent ( Span ) ,
619
620
620
621
/// Represents [`#[recursion_limit]`](https://doc.rust-lang.org/reference/attributes/limits.html#the-recursion_limit-attribute)
621
- RecursionLimit { attr_span : Span , limit_span : Span , limit : usize } ,
622
+ RecursionLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
622
623
623
624
/// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
624
625
Repr { reprs : ThinVec < ( ReprAttr , Span ) > , first_span : Span } ,
@@ -671,7 +672,7 @@ pub enum AttributeKind {
671
672
TypeConst ( Span ) ,
672
673
673
674
/// Represents `#[type_length_limit]`
674
- TypeLengthLimit { attr_span : Span , limit_span : Span , limit : usize } ,
675
+ TypeLengthLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
675
676
676
677
/// Represents `#[rustc_unsafe_specialization_marker]`.
677
678
UnsafeSpecializationMarker ( Span ) ,
0 commit comments