@@ -157,8 +157,8 @@ pub(super) trait Tracker<'matcher> {
157
157
/// This is called before trying to match next MatcherLoc on the current token.
158
158
fn before_match_loc ( & mut self , _parser : & TtParser , _matcher : & ' matcher MatcherLoc ) { }
159
159
160
- /// This is called after an arm has been parsed, either successfully or unsuccessfully. When this is called,
161
- /// `before_match_loc` was called at least once (with a `MatcherLoc::Eof`).
160
+ /// This is called after an arm has been parsed, either successfully or unsuccessfully. When
161
+ /// this is called, `before_match_loc` was called at least once (with a `MatcherLoc::Eof`).
162
162
fn after_arm ( & mut self , _result : & NamedParseResult < Self :: Failure > ) { }
163
163
164
164
/// For tracing.
@@ -169,7 +169,8 @@ pub(super) trait Tracker<'matcher> {
169
169
}
170
170
}
171
171
172
- /// A noop tracker that is used in the hot path of the expansion, has zero overhead thanks to monomorphization.
172
+ /// A noop tracker that is used in the hot path of the expansion, has zero overhead thanks to
173
+ /// monomorphization.
173
174
pub ( super ) struct NoopTracker ;
174
175
175
176
impl < ' matcher > Tracker < ' matcher > for NoopTracker {
@@ -492,7 +493,7 @@ pub fn compile_declarative_macro(
492
493
. pop ( )
493
494
. unwrap ( ) ;
494
495
// We don't handle errors here, the driver will abort
495
- // after parsing/expansion. we can report every error in every macro this way.
496
+ // after parsing/expansion. We can report every error in every macro this way.
496
497
check_emission ( check_lhs_nt_follows ( sess, def, & tt) ) ;
497
498
return tt;
498
499
}
@@ -528,7 +529,7 @@ pub fn compile_declarative_macro(
528
529
check_emission ( check_rhs ( sess, rhs) ) ;
529
530
}
530
531
531
- // don 't abort iteration early, so that errors for multiple lhses can be reported
532
+ // Don 't abort iteration early, so that errors for multiple lhses can be reported.
532
533
for lhs in & lhses {
533
534
check_emission ( check_lhs_no_empty_seq ( sess, slice:: from_ref ( lhs) ) ) ;
534
535
}
0 commit comments