@@ -14,6 +14,7 @@ pub use rustc_target::spec::SanitizerSet;
1414use thin_vec:: ThinVec ;
1515
1616use crate :: attrs:: pretty_printing:: PrintAttribute ;
17+ use crate :: limit:: Limit ;
1718use crate :: { DefaultBodyStability , PartialConstStability , RustcVersion , Stability } ;
1819
1920#[ derive( Copy , Clone , PartialEq , Encodable , Decodable , Debug , HashStable_Generic , PrintAttribute ) ]
@@ -449,7 +450,7 @@ pub enum AttributeKind {
449450 MayDangle ( Span ) ,
450451
451452 /// Represents `#[move_size_limit]`
452- MoveSizeLimit { attr_span : Span , limit_span : Span , limit : usize } ,
453+ MoveSizeLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
453454
454455 /// Represents `#[must_use]`.
455456 MustUse {
@@ -483,7 +484,7 @@ pub enum AttributeKind {
483484 Path ( Symbol , Span ) ,
484485
485486 /// Represents `#[pattern_complexity_limit]`
486- PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : usize } ,
487+ PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
487488
488489 /// Represents `#[pointee]`
489490 Pointee ( Span ) ,
@@ -501,7 +502,7 @@ pub enum AttributeKind {
501502 PubTransparent ( Span ) ,
502503
503504 /// Represents [`#[recursion_limit]`](https://doc.rust-lang.org/reference/attributes/limits.html#the-recursion_limit-attribute)
504- RecursionLimit { attr_span : Span , limit_span : Span , limit : usize } ,
505+ RecursionLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
505506
506507 /// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
507508 Repr { reprs : ThinVec < ( ReprAttr , Span ) > , first_span : Span } ,
@@ -554,7 +555,7 @@ pub enum AttributeKind {
554555 TypeConst ( Span ) ,
555556
556557 /// Represents `#[type_length_limit]`
557- TypeLengthLimit { attr_span : Span , limit_span : Span , limit : usize } ,
558+ TypeLengthLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
558559
559560 /// Represents `#[rustc_unsafe_specialization_marker]`.
560561 UnsafeSpecializationMarker ( Span ) ,
0 commit comments