@@ -84,6 +84,7 @@ macro_rules! expand_combined_late_lint_pass_method {
8484macro_rules! expand_combined_late_lint_pass_methods {
8585 ( $passes: tt, [ $( $( #[ $attr: meta] ) * fn $name: ident( $( $param: ident: $arg: ty) ,* ) ; ) * ] ) => (
8686 $( fn $name( & mut self , context: & $crate:: LateContext <' tcx>, $( $param: $arg) ,* ) {
87+ return ;
8788 $crate:: expand_combined_late_lint_pass_method!( $passes, self , $name, ( context, $( $param) ,* ) ) ;
8889 } ) *
8990 )
@@ -92,7 +93,7 @@ macro_rules! expand_combined_late_lint_pass_methods {
9293/// Combines multiple lints passes into a single lint pass, at compile time,
9394/// for maximum speed. Each `check_foo` method in `$methods` within this pass
9495/// simply calls `check_foo` once per `$pass`. Compare with
95- /// `LateLintPassObjects `, which is similar, but combines lint passes at
96+ /// `RuntimeCombinedLateLintPass `, which is similar, but combines lint passes at
9697/// runtime.
9798#[ macro_export]
9899macro_rules! declare_combined_late_lint_pass {
@@ -201,6 +202,7 @@ macro_rules! expand_combined_early_lint_pass_method {
201202macro_rules! expand_combined_early_lint_pass_methods {
202203 ( $passes: tt, [ $( $( #[ $attr: meta] ) * fn $name: ident( $( $param: ident: $arg: ty) ,* ) ; ) * ] ) => (
203204 $( fn $name( & mut self , context: & $crate:: EarlyContext <' _>, $( $param: $arg) ,* ) {
205+ return ;
204206 $crate:: expand_combined_early_lint_pass_method!( $passes, self , $name, ( context, $( $param) ,* ) ) ;
205207 } ) *
206208 )
0 commit comments