@@ -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 ) ]
@@ -449,7 +450,7 @@ pub enum AttributeKind {
449
450
MayDangle ( Span ) ,
450
451
451
452
/// Represents `#[move_size_limit]`
452
- MoveSizeLimit { attr_span : Span , limit_span : Span , limit : usize } ,
453
+ MoveSizeLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
453
454
454
455
/// Represents `#[must_use]`.
455
456
MustUse {
@@ -483,7 +484,7 @@ pub enum AttributeKind {
483
484
Path ( Symbol , Span ) ,
484
485
485
486
/// Represents `#[pattern_complexity_limit]`
486
- PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : usize } ,
487
+ PatternComplexityLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
487
488
488
489
/// Represents `#[pointee]`
489
490
Pointee ( Span ) ,
@@ -501,7 +502,7 @@ pub enum AttributeKind {
501
502
PubTransparent ( Span ) ,
502
503
503
504
/// 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 } ,
505
506
506
507
/// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
507
508
Repr { reprs : ThinVec < ( ReprAttr , Span ) > , first_span : Span } ,
@@ -554,7 +555,7 @@ pub enum AttributeKind {
554
555
TypeConst ( Span ) ,
555
556
556
557
/// Represents `#[type_length_limit]`
557
- TypeLengthLimit { attr_span : Span , limit_span : Span , limit : usize } ,
558
+ TypeLengthLimit { attr_span : Span , limit_span : Span , limit : Limit } ,
558
559
559
560
/// Represents `#[rustc_unsafe_specialization_marker]`.
560
561
UnsafeSpecializationMarker ( Span ) ,
0 commit comments