@@ -24,11 +24,11 @@ mod needs;
2424#[ cfg( test) ]
2525mod tests;
2626
27- pub struct HeadersCache {
27+ pub struct DirectivesCache {
2828 needs : CachedNeedsConditions ,
2929}
3030
31- impl HeadersCache {
31+ impl DirectivesCache {
3232 pub fn load ( config : & Config ) -> Self {
3333 Self { needs : CachedNeedsConditions :: load ( config) }
3434 }
@@ -54,7 +54,7 @@ impl EarlyProps {
5454 pub fn from_reader < R : Read > ( config : & Config , testfile : & Utf8Path , rdr : R ) -> Self {
5555 let mut props = EarlyProps :: default ( ) ;
5656 let mut poisoned = false ;
57- iter_header (
57+ iter_directives (
5858 config. mode ,
5959 & config. suite ,
6060 & mut poisoned,
@@ -347,7 +347,7 @@ impl TestProps {
347347
348348 let mut poisoned = false ;
349349
350- iter_header (
350+ iter_directives (
351351 config. mode ,
352352 & config. suite ,
353353 & mut poisoned,
@@ -794,7 +794,7 @@ const KNOWN_JSONDOCCK_DIRECTIVE_NAMES: &[&str] =
794794 & [ "count" , "!count" , "has" , "!has" , "is" , "!is" , "ismany" , "!ismany" , "set" , "!set" ] ;
795795
796796/// The (partly) broken-down contents of a line containing a test directive,
797- /// which [`iter_header `] passes to its callback function.
797+ /// which [`iter_directives `] passes to its callback function.
798798///
799799/// For example:
800800///
@@ -867,7 +867,7 @@ pub(crate) fn check_directive<'a>(
867867
868868const COMPILETEST_DIRECTIVE_PREFIX : & str = "//@" ;
869869
870- fn iter_header (
870+ fn iter_directives (
871871 mode : Mode ,
872872 _suite : & str ,
873873 poisoned : & mut bool ,
@@ -1372,7 +1372,7 @@ where
13721372
13731373pub ( crate ) fn make_test_description < R : Read > (
13741374 config : & Config ,
1375- cache : & HeadersCache ,
1375+ cache : & DirectivesCache ,
13761376 name : String ,
13771377 path : & Utf8Path ,
13781378 src : R ,
@@ -1386,7 +1386,7 @@ pub(crate) fn make_test_description<R: Read>(
13861386 let mut local_poisoned = false ;
13871387
13881388 // Scan through the test file to handle `ignore-*`, `only-*`, and `needs-*` directives.
1389- iter_header (
1389+ iter_directives (
13901390 config. mode ,
13911391 & config. suite ,
13921392 & mut local_poisoned,
0 commit comments