@@ -246,7 +246,7 @@ impl<'a, I: Iterator<Item = Event<'a>>> Iterator for CodeBlocks<'_, 'a, I> {
246246 match kind {
247247 CodeBlockKind :: Fenced ( ref lang) => {
248248 let parse_result =
249- LangString :: parse_without_check ( lang, self . check_error_codes , false ) ;
249+ LangString :: parse_without_check ( lang, self . check_error_codes ) ;
250250 if !parse_result. rust {
251251 let added_classes = parse_result. added_classes ;
252252 let lang_string = if let Some ( lang) = parse_result. unknown . first ( ) {
@@ -707,17 +707,15 @@ pub(crate) fn find_testable_code<T: doctest::DocTestVisitor>(
707707 doc : & str ,
708708 tests : & mut T ,
709709 error_codes : ErrorCodes ,
710- enable_per_target_ignores : bool ,
711710 extra_info : Option < & ExtraInfo < ' _ > > ,
712711) {
713- find_codes ( doc, tests, error_codes, enable_per_target_ignores , extra_info, false )
712+ find_codes ( doc, tests, error_codes, extra_info, false )
714713}
715714
716715pub ( crate ) fn find_codes < T : doctest:: DocTestVisitor > (
717716 doc : & str ,
718717 tests : & mut T ,
719718 error_codes : ErrorCodes ,
720- enable_per_target_ignores : bool ,
721719 extra_info : Option < & ExtraInfo < ' _ > > ,
722720 include_non_rust : bool ,
723721) {
@@ -733,12 +731,7 @@ pub(crate) fn find_codes<T: doctest::DocTestVisitor>(
733731 if lang. is_empty ( ) {
734732 Default :: default ( )
735733 } else {
736- LangString :: parse (
737- lang,
738- error_codes,
739- enable_per_target_ignores,
740- extra_info,
741- )
734+ LangString :: parse ( lang, error_codes, extra_info)
742735 }
743736 }
744737 CodeBlockKind :: Indented => Default :: default ( ) ,
@@ -1162,18 +1155,13 @@ impl Default for LangString {
11621155}
11631156
11641157impl LangString {
1165- fn parse_without_check (
1166- string : & str ,
1167- allow_error_code_check : ErrorCodes ,
1168- enable_per_target_ignores : bool ,
1169- ) -> Self {
1170- Self :: parse ( string, allow_error_code_check, enable_per_target_ignores, None )
1158+ fn parse_without_check ( string : & str , allow_error_code_check : ErrorCodes ) -> Self {
1159+ Self :: parse ( string, allow_error_code_check, None )
11711160 }
11721161
11731162 fn parse (
11741163 string : & str ,
11751164 allow_error_code_check : ErrorCodes ,
1176- enable_per_target_ignores : bool ,
11771165 extra : Option < & ExtraInfo < ' _ > > ,
11781166 ) -> Self {
11791167 let allow_error_code_check = allow_error_code_check. as_bool ( ) ;
@@ -1201,10 +1189,8 @@ impl LangString {
12011189 seen_rust_tags = !seen_other_tags;
12021190 }
12031191 LangStringToken :: LangToken ( x) if x. starts_with ( "ignore-" ) => {
1204- if enable_per_target_ignores {
1205- ignores. push ( x. trim_start_matches ( "ignore-" ) . to_owned ( ) ) ;
1206- seen_rust_tags = !seen_other_tags;
1207- }
1192+ ignores. push ( x. trim_start_matches ( "ignore-" ) . to_owned ( ) ) ;
1193+ seen_rust_tags = !seen_other_tags;
12081194 }
12091195 LangStringToken :: LangToken ( "rust" ) => {
12101196 data. rust = true ;
@@ -1906,7 +1892,7 @@ pub(crate) fn rust_code_blocks(md: &str, extra_info: &ExtraInfo<'_>) -> Vec<Rust
19061892 let lang_string = if syntax. is_empty ( ) {
19071893 Default :: default ( )
19081894 } else {
1909- LangString :: parse ( syntax, ErrorCodes :: Yes , false , Some ( extra_info) )
1895+ LangString :: parse ( syntax, ErrorCodes :: Yes , Some ( extra_info) )
19101896 } ;
19111897 if !lang_string. rust {
19121898 continue ;
0 commit comments