@@ -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 ) ]
@@ -566,7 +567,7 @@ pub enum AttributeKind {
566567 MayDangle ( Span ) ,
567568
568569 /// Represents `#[move_size_limit]`
569- MoveSizeLimit { attr_span : Span , limit_span : Span , limit : usize } ,
570+ MoveSizeLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
570571
571572 /// Represents `#[must_use]`.
572573 MustUse {
@@ -600,7 +601,7 @@ pub enum AttributeKind {
600601 Path ( Symbol , Span ) ,
601602
602603 /// Represents `#[pattern_complexity_limit]`
603- PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : usize } ,
604+ PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
604605
605606 /// Represents `#[pointee]`
606607 Pointee ( Span ) ,
@@ -618,7 +619,7 @@ pub enum AttributeKind {
618619 PubTransparent ( Span ) ,
619620
620621 /// 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 } ,
622623
623624 /// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
624625 Repr { reprs : ThinVec < ( ReprAttr , Span ) > , first_span : Span } ,
@@ -671,7 +672,7 @@ pub enum AttributeKind {
671672 TypeConst ( Span ) ,
672673
673674 /// Represents `#[type_length_limit]`
674- TypeLengthLimit { attr_span : Span , limit_span : Span , limit : usize } ,
675+ TypeLengthLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
675676
676677 /// Represents `#[rustc_unsafe_specialization_marker]`.
677678 UnsafeSpecializationMarker ( Span ) ,
0 commit comments