Skip to content

Commit a1d92b5

Browse files
committed
use RustcPublic instead of StableMir
1 parent ddcd4a6 commit a1d92b5

File tree

1 file changed

+6
-6
lines changed
  • rustc_public/src/rustc_internal

1 file changed

+6
-6
lines changed

rustc_public/src/rustc_internal/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ macro_rules! run_driver {
191191
use rustc_public::CompilerError;
192192
use std::ops::ControlFlow;
193193

194-
pub struct StableMir<B = (), C = (), F = fn($($crate::optional!($with_tcx TyCtxt))?) -> ControlFlow<B, C>>
194+
pub struct RustcPublic<B = (), C = (), F = fn($($crate::optional!($with_tcx TyCtxt))?) -> ControlFlow<B, C>>
195195
where
196196
B: Send,
197197
C: Send,
@@ -201,15 +201,15 @@ macro_rules! run_driver {
201201
result: Option<ControlFlow<B, C>>,
202202
}
203203

204-
impl<B, C, F> StableMir<B, C, F>
204+
impl<B, C, F> RustcPublic<B, C, F>
205205
where
206206
B: Send,
207207
C: Send,
208208
F: FnOnce($($crate::optional!($with_tcx TyCtxt))?) -> ControlFlow<B, C> + Send,
209209
{
210-
/// Creates a new `StableMir` instance, with given test_function and arguments.
210+
/// Creates a new `RustcPublic` instance, with given test_function and arguments.
211211
pub fn new(callback: F) -> Self {
212-
StableMir { callback: Some(callback), result: None }
212+
RustcPublic { callback: Some(callback), result: None }
213213
}
214214

215215
/// Runs the compiler against given target and tests it with `test_function`
@@ -236,7 +236,7 @@ macro_rules! run_driver {
236236
}
237237
}
238238

239-
impl<B, C, F> Callbacks for StableMir<B, C, F>
239+
impl<B, C, F> Callbacks for RustcPublic<B, C, F>
240240
where
241241
B: Send,
242242
C: Send,
@@ -265,6 +265,6 @@ macro_rules! run_driver {
265265
}
266266
}
267267

268-
StableMir::new($callback).run($args)
268+
RustcPublic::new($callback).run($args)
269269
}};
270270
}

0 commit comments

Comments
 (0)