@@ -144,10 +144,10 @@ where
144
144
#[ macro_export]
145
145
macro_rules! run {
146
146
( $args: expr, $callback_fn: ident) => {
147
- run_driver!( $args, || $callback_fn( ) )
147
+ $crate :: run_driver!( $args, || $callback_fn( ) )
148
148
} ;
149
149
( $args: expr, $callback: expr) => {
150
- run_driver!( $args, $callback)
150
+ $crate :: run_driver!( $args, $callback)
151
151
} ;
152
152
}
153
153
@@ -158,10 +158,10 @@ macro_rules! run {
158
158
#[ macro_export]
159
159
macro_rules! run_with_tcx {
160
160
( $args: expr, $callback_fn: ident) => {
161
- run_driver!( $args, |tcx| $callback_fn( tcx) , with_tcx)
161
+ $crate :: run_driver!( $args, |tcx| $callback_fn( tcx) , with_tcx)
162
162
} ;
163
163
( $args: expr, $callback: expr) => {
164
- run_driver!( $args, $callback, with_tcx)
164
+ $crate :: run_driver!( $args, $callback, with_tcx)
165
165
} ;
166
166
}
167
167
@@ -191,11 +191,11 @@ 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 StableMir <B = ( ) , C = ( ) , F = fn ( $( $crate :: optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C >>
195
195
where
196
196
B : Send ,
197
197
C : Send ,
198
- F : FnOnce ( $( optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C > + Send ,
198
+ F : FnOnce ( $( $crate :: optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C > + Send ,
199
199
{
200
200
callback: Option <F >,
201
201
result: Option <ControlFlow <B , C >>,
@@ -205,7 +205,7 @@ macro_rules! run_driver {
205
205
where
206
206
B : Send ,
207
207
C : Send ,
208
- F : FnOnce ( $( optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C > + Send ,
208
+ F : FnOnce ( $( $crate :: optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C > + Send ,
209
209
{
210
210
/// Creates a new `StableMir` instance, with given test_function and arguments.
211
211
pub fn new( callback: F ) -> Self {
@@ -240,7 +240,7 @@ macro_rules! run_driver {
240
240
where
241
241
B : Send ,
242
242
C : Send ,
243
- F : FnOnce ( $( optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C > + Send ,
243
+ F : FnOnce ( $( $crate :: optional!( $with_tcx TyCtxt ) ) ?) -> ControlFlow <B , C > + Send ,
244
244
{
245
245
/// Called after analysis. Return value instructs the compiler whether to
246
246
/// continue the compilation afterwards (defaults to `Compilation::Continue`)
@@ -251,7 +251,7 @@ macro_rules! run_driver {
251
251
) -> Compilation {
252
252
if let Some ( callback) = self . callback. take( ) {
253
253
rustc_internal:: run( tcx, || {
254
- self . result = Some ( callback( $( optional!( $with_tcx tcx) ) ?) ) ;
254
+ self . result = Some ( callback( $( $crate :: optional!( $with_tcx tcx) ) ?) ) ;
255
255
} )
256
256
. unwrap( ) ;
257
257
if self . result. as_ref( ) . is_some_and( |val| val. is_continue( ) ) {
0 commit comments