@@ -13,7 +13,6 @@ use self::newline_style::apply_newline_style;
13
13
use crate :: comment:: { CharClasses , FullCodeCharKind } ;
14
14
use crate :: config:: { Config , FileName , Verbosity } ;
15
15
use crate :: formatting:: generated:: is_generated_file;
16
- use crate :: issues:: BadIssueSeeker ;
17
16
use crate :: modules:: Module ;
18
17
use crate :: parse:: parser:: { DirectoryOwnership , Parser , ParserError } ;
19
18
use crate :: parse:: session:: ParseSess ;
@@ -332,7 +331,6 @@ impl FormattingError {
332
331
ErrorKind :: LineOverflow ( found, max) => ( max, found - max) ,
333
332
ErrorKind :: TrailingWhitespace
334
333
| ErrorKind :: DeprecatedAttr
335
- | ErrorKind :: BadIssue ( _)
336
334
| ErrorKind :: BadAttr
337
335
| ErrorKind :: LostComment
338
336
| ErrorKind :: LicenseCheck => {
@@ -483,11 +481,9 @@ struct FormatLines<'a> {
483
481
cur_line : usize ,
484
482
newline_count : usize ,
485
483
errors : Vec < FormattingError > ,
486
- issue_seeker : BadIssueSeeker ,
487
484
line_buffer : String ,
488
485
current_line_contains_string_literal : bool ,
489
486
format_line : bool ,
490
- allow_issue_seek : bool ,
491
487
config : & ' a Config ,
492
488
}
493
489
@@ -497,7 +493,6 @@ impl<'a> FormatLines<'a> {
497
493
skipped_range : & ' a [ ( usize , usize ) ] ,
498
494
config : & ' a Config ,
499
495
) -> FormatLines < ' a > {
500
- let issue_seeker = BadIssueSeeker :: new ( ) ;
501
496
FormatLines {
502
497
name,
503
498
skipped_range,
@@ -506,8 +501,6 @@ impl<'a> FormatLines<'a> {
506
501
cur_line : 1 ,
507
502
newline_count : 0 ,
508
503
errors : vec ! [ ] ,
509
- allow_issue_seek : !issue_seeker. is_disabled ( ) ,
510
- issue_seeker,
511
504
line_buffer : String :: with_capacity ( config. max_width ( ) * 2 ) ,
512
505
current_line_contains_string_literal : false ,
513
506
format_line : config. file_lines ( ) . contains_line ( name, 1 ) ,
@@ -536,13 +529,6 @@ impl<'a> FormatLines<'a> {
536
529
continue ;
537
530
}
538
531
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
-
546
532
if c == '\n' {
547
533
self . new_line ( kind) ;
548
534
} else {
0 commit comments