@@ -13,7 +13,6 @@ use self::newline_style::apply_newline_style;
1313use crate :: comment:: { CharClasses , FullCodeCharKind } ;
1414use crate :: config:: { Config , FileName , Verbosity } ;
1515use crate :: formatting:: generated:: is_generated_file;
16- use crate :: issues:: BadIssueSeeker ;
1716use crate :: modules:: Module ;
1817use crate :: parse:: parser:: { DirectoryOwnership , Parser , ParserError } ;
1918use crate :: parse:: session:: ParseSess ;
@@ -332,7 +331,6 @@ impl FormattingError {
332331 ErrorKind :: LineOverflow ( found, max) => ( max, found - max) ,
333332 ErrorKind :: TrailingWhitespace
334333 | ErrorKind :: DeprecatedAttr
335- | ErrorKind :: BadIssue ( _)
336334 | ErrorKind :: BadAttr
337335 | ErrorKind :: LostComment
338336 | ErrorKind :: LicenseCheck => {
@@ -483,11 +481,9 @@ struct FormatLines<'a> {
483481 cur_line : usize ,
484482 newline_count : usize ,
485483 errors : Vec < FormattingError > ,
486- issue_seeker : BadIssueSeeker ,
487484 line_buffer : String ,
488485 current_line_contains_string_literal : bool ,
489486 format_line : bool ,
490- allow_issue_seek : bool ,
491487 config : & ' a Config ,
492488}
493489
@@ -497,7 +493,6 @@ impl<'a> FormatLines<'a> {
497493 skipped_range : & ' a [ ( usize , usize ) ] ,
498494 config : & ' a Config ,
499495 ) -> FormatLines < ' a > {
500- let issue_seeker = BadIssueSeeker :: new ( ) ;
501496 FormatLines {
502497 name,
503498 skipped_range,
@@ -506,8 +501,6 @@ impl<'a> FormatLines<'a> {
506501 cur_line : 1 ,
507502 newline_count : 0 ,
508503 errors : vec ! [ ] ,
509- allow_issue_seek : !issue_seeker. is_disabled ( ) ,
510- issue_seeker,
511504 line_buffer : String :: with_capacity ( config. max_width ( ) * 2 ) ,
512505 current_line_contains_string_literal : false ,
513506 format_line : config. file_lines ( ) . contains_line ( name, 1 ) ,
@@ -536,13 +529,6 @@ impl<'a> FormatLines<'a> {
536529 continue ;
537530 }
538531
539- if self . allow_issue_seek && self . format_line {
540- // Add warnings for bad fixmes
541- if let Some ( issue) = self . issue_seeker . inspect ( c) {
542- self . push_err ( ErrorKind :: BadIssue ( issue) , false , false ) ;
543- }
544- }
545-
546532 if c == '\n' {
547533 self . new_line ( kind) ;
548534 } else {
0 commit comments