@@ -371,7 +371,12 @@ impl<'s> LintLevelsBuilder<'s> {
371371 } ;
372372 self . lint_expectations . push ( (
373373 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+ ) ,
375380 ) ) ;
376381 }
377382 let src = LintLevelSource :: Node (
@@ -400,8 +405,10 @@ impl<'s> LintLevelsBuilder<'s> {
400405 self . insert_spec ( * id, ( level, src) ) ;
401406 }
402407 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+ ) ) ;
405412 }
406413 }
407414 Err ( ( Some ( ids) , ref new_lint_name) ) => {
@@ -444,8 +451,10 @@ impl<'s> LintLevelsBuilder<'s> {
444451 self . insert_spec ( * id, ( level, src) ) ;
445452 }
446453 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+ ) ) ;
449458 }
450459 }
451460 Err ( ( None , _) ) => {
@@ -550,8 +559,10 @@ impl<'s> LintLevelsBuilder<'s> {
550559 }
551560 }
552561 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+ ) ) ;
555566 }
556567 } else {
557568 panic ! ( "renamed lint does not exist: {}" , new_name) ;
0 commit comments