File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -347,14 +347,14 @@ pub trait LintPass {
347
347
fn name ( & self ) -> & ' static str ;
348
348
}
349
349
350
- /// Implements `LintPass for $name ` with the given list of `Lint` statics.
350
+ /// Implements `LintPass for $ty ` with the given list of `Lint` statics.
351
351
#[ macro_export]
352
352
macro_rules! impl_lint_pass {
353
- ( $name : ident => [ $( $lint: expr) ,* $( , ) ?] ) => {
354
- impl $crate:: lint:: LintPass for $name {
355
- fn name( & self ) -> & ' static str { stringify!( $name ) }
353
+ ( $ty : ty => [ $( $lint: expr) ,* $( , ) ?] ) => {
354
+ impl $crate:: lint:: LintPass for $ty {
355
+ fn name( & self ) -> & ' static str { stringify!( $ty ) }
356
356
}
357
- impl $name {
357
+ impl $ty {
358
358
pub fn get_lints( ) -> $crate:: lint:: LintArray { $crate:: lint_array!( $( $lint) ,* ) }
359
359
}
360
360
} ;
You can’t perform that action at this time.
0 commit comments