@@ -38,9 +38,9 @@ pub struct TestGenerator {
38
38
pub ( crate ) defines : Vec < ( String , Option < String > ) > ,
39
39
cfg : Vec < ( String , Option < String > ) > ,
40
40
mapped_names : Vec < MappedName > ,
41
- skips : Vec < Skip > ,
41
+ pub ( crate ) skips : Vec < Skip > ,
42
42
verbose_skip : bool ,
43
- volatile_items : Vec < VolatileItem > ,
43
+ pub ( crate ) volatile_items : Vec < VolatileItem > ,
44
44
array_arg : Option < ArrayArg > ,
45
45
skip_private : bool ,
46
46
skip_roundtrip : Option < SkipTest > ,
@@ -872,7 +872,6 @@ impl TestGenerator {
872
872
let mut ffi_items = FfiItems :: new ( ) ;
873
873
ffi_items. visit_file ( & ast) ;
874
874
875
- // FIXME(ctest): Does not filter out tests for fields.
876
875
self . filter_ffi_items ( & mut ffi_items) ;
877
876
878
877
let output_directory = self
@@ -945,7 +944,7 @@ impl TestGenerator {
945
944
}
946
945
947
946
/// Maps Rust identifiers or types to C counterparts, or defaults to the original name.
948
- pub ( crate ) fn map < ' a > ( & self , item : impl Into < MapInput < ' a > > ) -> String {
947
+ pub ( crate ) fn rty_to_cty < ' a > ( & self , item : impl Into < MapInput < ' a > > ) -> String {
949
948
let item = item. into ( ) ;
950
949
if let Some ( mapped) = self . mapped_names . iter ( ) . find_map ( |f| f ( & item) ) {
951
950
return mapped;
0 commit comments