@@ -57,7 +57,7 @@ impl EarlyProps {
5757 & mut poisoned,
5858 testfile,
5959 rdr,
60- & mut |HeaderLine { directive : ln, .. } | {
60+ & mut |DirectiveLine { directive : ln, .. } | {
6161 parse_and_update_aux ( config, ln, & mut props. aux ) ;
6262 config. parse_and_update_revisions ( ln, & mut props. revisions ) ;
6363 } ,
@@ -344,7 +344,7 @@ impl TestProps {
344344 & mut poisoned,
345345 testfile,
346346 file,
347- & mut |HeaderLine { header_revision, directive : ln, .. } | {
347+ & mut |DirectiveLine { header_revision, directive : ln, .. } | {
348348 if header_revision. is_some ( ) && header_revision != test_revision {
349349 return ;
350350 }
@@ -680,7 +680,7 @@ impl TestProps {
680680
681681/// Extract an `(Option<line_revision>, directive)` directive from a line if comment is present.
682682///
683- /// See [`HeaderLine `] for a diagram.
683+ /// See [`DirectiveLine `] for a diagram.
684684pub fn line_directive < ' line > (
685685 comment : & str ,
686686 original_line : & ' line str ,
@@ -745,7 +745,7 @@ const KNOWN_JSONDOCCK_DIRECTIVE_NAMES: &[&str] =
745745/// ^^^^^^^^^^^^^^^^^ directive
746746/// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ original_line
747747/// ```
748- struct HeaderLine < ' ln > {
748+ struct DirectiveLine < ' ln > {
749749 line_number : usize ,
750750 /// Raw line from the test file, including comment prefix and any revision.
751751 original_line : & ' ln str ,
@@ -803,7 +803,7 @@ fn iter_header(
803803 poisoned : & mut bool ,
804804 testfile : & Path ,
805805 rdr : impl Read ,
806- it : & mut dyn FnMut ( HeaderLine < ' _ > ) ,
806+ it : & mut dyn FnMut ( DirectiveLine < ' _ > ) ,
807807) {
808808 if testfile. is_dir ( ) {
809809 return ;
@@ -824,7 +824,12 @@ fn iter_header(
824824 ] ;
825825 // Process the extra implied directives, with a dummy line number of 0.
826826 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+ } ) ;
828833 }
829834 }
830835
@@ -897,7 +902,7 @@ fn iter_header(
897902 }
898903 }
899904
900- it ( HeaderLine {
905+ it ( DirectiveLine {
901906 line_number,
902907 original_line,
903908 header_revision,
@@ -1292,7 +1297,7 @@ pub fn make_test_description<R: Read>(
12921297 & mut local_poisoned,
12931298 path,
12941299 src,
1295- & mut |HeaderLine { header_revision, original_line, directive : ln, line_number } | {
1300+ & mut |DirectiveLine { header_revision, original_line, directive : ln, line_number } | {
12961301 if header_revision. is_some ( ) && header_revision != test_revision {
12971302 return ;
12981303 }
0 commit comments