@@ -191,7 +191,7 @@ macro_rules! run_driver {
191
191
use rustc_public:: CompilerError ;
192
192
use std:: ops:: ControlFlow ;
193
193
194
- pub struct StableMir <B = ( ) , C = ( ) , F = fn ( $( optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C >>
194
+ pub struct RustcPublic <B = ( ) , C = ( ) , F = fn ( $( optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C >>
195
195
where
196
196
B : Send ,
197
197
C : Send ,
@@ -201,15 +201,15 @@ macro_rules! run_driver {
201
201
result: Option <ControlFlow <B , C >>,
202
202
}
203
203
204
- impl <B , C , F > StableMir <B , C , F >
204
+ impl <B , C , F > RustcPublic <B , C , F >
205
205
where
206
206
B : Send ,
207
207
C : Send ,
208
208
F : FnOnce ( $( optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C > + Send ,
209
209
{
210
- /// Creates a new `StableMir ` instance, with given test_function and arguments.
210
+ /// Creates a new `RustcPublic ` instance, with given test_function and arguments.
211
211
pub fn new( callback: F ) -> Self {
212
- StableMir { callback: Some ( callback) , result: None }
212
+ RustcPublic { callback: Some ( callback) , result: None }
213
213
}
214
214
215
215
/// Runs the compiler against given target and tests it with `test_function`
@@ -236,7 +236,7 @@ macro_rules! run_driver {
236
236
}
237
237
}
238
238
239
- impl <B , C , F > Callbacks for StableMir <B , C , F >
239
+ impl <B , C , F > Callbacks for RustcPublic <B , C , F >
240
240
where
241
241
B : Send ,
242
242
C : Send ,
@@ -265,6 +265,6 @@ macro_rules! run_driver {
265
265
}
266
266
}
267
267
268
- StableMir :: new( $callback) . run( $args)
268
+ RustcPublic :: new( $callback) . run( $args)
269
269
} } ;
270
270
}
0 commit comments