@@ -374,7 +374,7 @@ fn extract_labels<'v, 'a>(ctxt: &mut LifetimeContext<'a>, b: &'v ast::Block) {
374
374
fn visit_expr ( & mut self , ex : & ' v ast:: Expr ) {
375
375
if let Some ( label) = expression_label ( ex) {
376
376
for & ( prior, prior_span) in & self . labels_in_fn [ ..] {
377
- // FIXME (#24278): non-hygienic comparision
377
+ // FIXME (#24278): non-hygienic comparison
378
378
if label. name == prior. name {
379
379
signal_shadowing_problem ( self . sess ,
380
380
label. name ,
@@ -420,7 +420,7 @@ fn extract_labels<'v, 'a>(ctxt: &mut LifetimeContext<'a>, b: &'v ast::Block) {
420
420
EarlyScope ( _, lifetimes, s) |
421
421
LateScope ( lifetimes, s) => {
422
422
for lifetime_def in lifetimes {
423
- // FIXME (#24278): non-hygienic comparision
423
+ // FIXME (#24278): non-hygienic comparison
424
424
if label. name == lifetime_def. lifetime . name {
425
425
signal_shadowing_problem (
426
426
sess,
@@ -677,7 +677,7 @@ impl<'a> LifetimeContext<'a> {
677
677
lifetime : & ast:: Lifetime )
678
678
{
679
679
for & ( label, label_span) in & self . labels_in_fn {
680
- // FIXME (#24278): non-hygienic comparision
680
+ // FIXME (#24278): non-hygienic comparison
681
681
if lifetime. name == label. name {
682
682
signal_shadowing_problem ( self . sess ,
683
683
lifetime. name ,
0 commit comments