@@ -22,7 +22,7 @@ mod tests;
22
22
/// configuration values. This struct parses them all in one go and then they
23
23
/// get processed by their respective use sites.
24
24
#[ derive( Default , Debug ) ]
25
- pub ( crate ) struct Comments {
25
+ pub struct Comments {
26
26
/// List of revision names to execute. Can only be specified once
27
27
pub revisions : Option < Vec < String > > ,
28
28
/// Comments that are only available under specific revisions.
@@ -94,7 +94,7 @@ impl Comments {
94
94
95
95
#[ derive( Debug ) ]
96
96
/// Comments that can be filtered for specific revisions.
97
- pub ( crate ) struct Revisioned {
97
+ pub struct Revisioned {
98
98
/// The character range in which this revisioned item was first added.
99
99
/// Used for reporting errors on unknown revisions.
100
100
pub span : Span ,
@@ -115,16 +115,18 @@ pub(crate) struct Revisioned {
115
115
/// Arbitrary patterns to look for in the stderr.
116
116
/// The error must be from another file, as errors from the current file must be
117
117
/// checked via `error_matches`.
118
- pub error_in_other_files : Vec < Spanned < Pattern > > ,
119
- pub error_matches : Vec < ErrorMatch > ,
118
+ pub ( crate ) error_in_other_files : Vec < Spanned < Pattern > > ,
119
+ pub ( crate ) error_matches : Vec < ErrorMatch > ,
120
120
/// Ignore diagnostics below this level.
121
121
/// `None` means pick the lowest level from the `error_pattern`s.
122
122
pub require_annotations_for_level : OptWithLine < Level > ,
123
+ /// Files that get built and exposed as dependencies to the current test.
123
124
pub aux_builds : Vec < Spanned < PathBuf > > ,
125
+ /// Set the `--edition` flag on the test.
124
126
pub edition : OptWithLine < String > ,
125
127
/// Overwrites the mode from `Config`.
126
128
pub mode : OptWithLine < Mode > ,
127
- pub needs_asm_support : bool ,
129
+ pub ( crate ) needs_asm_support : bool ,
128
130
/// Don't run [`rustfix`] for this test
129
131
pub no_rustfix : OptWithLine < ( ) > ,
130
132
}
@@ -157,7 +159,7 @@ impl<T> std::ops::DerefMut for CommentParser<T> {
157
159
158
160
/// The conditions used for "ignore" and "only" filters.
159
161
#[ derive( Debug ) ]
160
- pub ( crate ) enum Condition {
162
+ pub enum Condition {
161
163
/// The given string must appear in the host triple.
162
164
Host ( String ) ,
163
165
/// The given string must appear in the target triple.
0 commit comments