@@ -57,7 +57,7 @@ impl EarlyProps {
57
57
& mut poisoned,
58
58
testfile,
59
59
rdr,
60
- & mut |HeaderLine { directive : ln, .. } | {
60
+ & mut |DirectiveLine { directive : ln, .. } | {
61
61
parse_and_update_aux ( config, ln, & mut props. aux ) ;
62
62
config. parse_and_update_revisions ( ln, & mut props. revisions ) ;
63
63
} ,
@@ -344,7 +344,7 @@ impl TestProps {
344
344
& mut poisoned,
345
345
testfile,
346
346
file,
347
- & mut |HeaderLine { header_revision, directive : ln, .. } | {
347
+ & mut |DirectiveLine { header_revision, directive : ln, .. } | {
348
348
if header_revision. is_some ( ) && header_revision != test_revision {
349
349
return ;
350
350
}
@@ -745,7 +745,7 @@ const KNOWN_JSONDOCCK_DIRECTIVE_NAMES: &[&str] =
745
745
/// ^^^^^^^^^^^^^^^^^ directive
746
746
/// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ original_line
747
747
/// ```
748
- struct HeaderLine < ' ln > {
748
+ struct DirectiveLine < ' ln > {
749
749
line_number : usize ,
750
750
/// Raw line from the test file, including comment prefix and any revision.
751
751
original_line : & ' ln str ,
@@ -803,7 +803,7 @@ fn iter_header(
803
803
poisoned : & mut bool ,
804
804
testfile : & Path ,
805
805
rdr : impl Read ,
806
- it : & mut dyn FnMut ( HeaderLine < ' _ > ) ,
806
+ it : & mut dyn FnMut ( DirectiveLine < ' _ > ) ,
807
807
) {
808
808
if testfile. is_dir ( ) {
809
809
return ;
@@ -824,7 +824,12 @@ fn iter_header(
824
824
] ;
825
825
// Process the extra implied directives, with a dummy line number of 0.
826
826
for directive in extra_directives {
827
- it ( HeaderLine { line_number : 0 , original_line : "" , header_revision : None , directive } ) ;
827
+ it ( DirectiveLine {
828
+ line_number : 0 ,
829
+ original_line : "" ,
830
+ header_revision : None ,
831
+ directive,
832
+ } ) ;
828
833
}
829
834
}
830
835
@@ -897,7 +902,7 @@ fn iter_header(
897
902
}
898
903
}
899
904
900
- it ( HeaderLine {
905
+ it ( DirectiveLine {
901
906
line_number,
902
907
original_line,
903
908
header_revision,
@@ -1292,7 +1297,7 @@ pub fn make_test_description<R: Read>(
1292
1297
& mut local_poisoned,
1293
1298
path,
1294
1299
src,
1295
- & mut |HeaderLine { header_revision, original_line, directive : ln, line_number } | {
1300
+ & mut |DirectiveLine { header_revision, original_line, directive : ln, line_number } | {
1296
1301
if header_revision. is_some ( ) && header_revision != test_revision {
1297
1302
return ;
1298
1303
}
0 commit comments