@@ -371,7 +371,12 @@ impl<'s> LintLevelsBuilder<'s> {
371
371
} ;
372
372
self . lint_expectations . push ( (
373
373
expect_id,
374
- LintExpectation :: new ( reason, sp, is_unfulfilled_lint_expectations) ,
374
+ LintExpectation :: new (
375
+ reason,
376
+ sp,
377
+ is_unfulfilled_lint_expectations,
378
+ tool_name,
379
+ ) ,
375
380
) ) ;
376
381
}
377
382
let src = LintLevelSource :: Node (
@@ -400,8 +405,10 @@ impl<'s> LintLevelsBuilder<'s> {
400
405
self . insert_spec ( * id, ( level, src) ) ;
401
406
}
402
407
if let Level :: Expect ( expect_id) = level {
403
- self . lint_expectations
404
- . push ( ( expect_id, LintExpectation :: new ( reason, sp, false ) ) ) ;
408
+ self . lint_expectations . push ( (
409
+ expect_id,
410
+ LintExpectation :: new ( reason, sp, false , tool_name) ,
411
+ ) ) ;
405
412
}
406
413
}
407
414
Err ( ( Some ( ids) , ref new_lint_name) ) => {
@@ -444,8 +451,10 @@ impl<'s> LintLevelsBuilder<'s> {
444
451
self . insert_spec ( * id, ( level, src) ) ;
445
452
}
446
453
if let Level :: Expect ( expect_id) = level {
447
- self . lint_expectations
448
- . push ( ( expect_id, LintExpectation :: new ( reason, sp, false ) ) ) ;
454
+ self . lint_expectations . push ( (
455
+ expect_id,
456
+ LintExpectation :: new ( reason, sp, false , tool_name) ,
457
+ ) ) ;
449
458
}
450
459
}
451
460
Err ( ( None , _) ) => {
@@ -550,8 +559,10 @@ impl<'s> LintLevelsBuilder<'s> {
550
559
}
551
560
}
552
561
if let Level :: Expect ( expect_id) = level {
553
- self . lint_expectations
554
- . push ( ( expect_id, LintExpectation :: new ( reason, sp, false ) ) ) ;
562
+ self . lint_expectations . push ( (
563
+ expect_id,
564
+ LintExpectation :: new ( reason, sp, false , tool_name) ,
565
+ ) ) ;
555
566
}
556
567
} else {
557
568
panic ! ( "renamed lint does not exist: {}" , new_name) ;
0 commit comments