Skip to content

Commit b7b8b75

Browse files
committed
use RustcPublic instead of StableMir
1 parent 6a87e95 commit b7b8b75

23 files changed

+28
-28
lines changed

compiler/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($(optional!($with_tcx TyCtxt))?) -> ControlFlow<B, C>>
194+
pub struct RustcPublic<B = (), C = (), F = fn($(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($(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
}

tests/ui-fulldeps/rustc_public/check_abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl MirVisitor for AdtDefVisitor {
167167

168168
/// This test will generate and analyze a dummy crate using the stable mir.
169169
/// For that, it will first write the dummy crate into a file.
170-
/// Then it will create a `StableMir` using custom arguments and then
170+
/// Then it will create a `RustcPublic` using custom arguments and then
171171
/// it will run the compiler.
172172
fn main() {
173173
let path = "alloc_input.rs";

tests/ui-fulldeps/rustc_public/check_allocation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn get_item<'a>(
202202

203203
/// This test will generate and analyze a dummy crate using the stable mir.
204204
/// For that, it will first write the dummy crate into a file.
205-
/// Then it will create a `StableMir` using custom arguments and then
205+
/// Then it will create a `RustcPublic` using custom arguments and then
206206
/// it will run the compiler.
207207
fn main() {
208208
let path = "alloc_input.rs";

tests/ui-fulldeps/rustc_public/check_attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn get_item<'a>(
5252

5353
/// This test will generate and analyze a dummy crate using the stable mir.
5454
/// For that, it will first write the dummy crate into a file.
55-
/// Then it will create a `StableMir` using custom arguments and then
55+
/// Then it will create a `RustcPublic` using custom arguments and then
5656
/// it will run the compiler.
5757
fn main() {
5858
let path = "attribute_input.rs";

tests/ui-fulldeps/rustc_public/check_binop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<'a> MirVisitor for Visitor<'a> {
7676

7777
/// This test will generate and analyze a dummy crate using the stable mir.
7878
/// For that, it will first write the dummy crate into a file.
79-
/// Then it will create a `StableMir` using custom arguments and then
79+
/// Then it will create a `RustcPublic` using custom arguments and then
8080
/// it will run the compiler.
8181
fn main() {
8282
let path = "binop_input.rs";

tests/ui-fulldeps/rustc_public/check_crate_defs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn contains<T: CrateDef + std::fmt::Debug>(items: &[T], expected: &[&str]) {
7979

8080
/// This test will generate and analyze a dummy crate using the stable mir.
8181
/// For that, it will first write the dummy crate into a file.
82-
/// Then it will create a `StableMir` using custom arguments and then
82+
/// Then it will create a `RustcPublic` using custom arguments and then
8383
/// it will run the compiler.
8484
fn main() {
8585
let path = "crate_definitions.rs";

tests/ui-fulldeps/rustc_public/check_def_ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn check_fn_def(ty: Ty) {
7070

7171
/// This test will generate and analyze a dummy crate using the stable mir.
7272
/// For that, it will first write the dummy crate into a file.
73-
/// Then it will create a `StableMir` using custom arguments and then
73+
/// Then it will create a `RustcPublic` using custom arguments and then
7474
/// it will run the compiler.
7575
fn main() {
7676
let path = "defs_ty_input.rs";

tests/ui-fulldeps/rustc_public/check_defs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fn get_instances(body: mir::Body) -> Vec<Instance> {
106106

107107
/// This test will generate and analyze a dummy crate using the stable mir.
108108
/// For that, it will first write the dummy crate into a file.
109-
/// Then it will create a `StableMir` using custom arguments and then
109+
/// Then it will create a `RustcPublic` using custom arguments and then
110110
/// it will run the compiler.
111111
fn main() {
112112
let path = "defs_input.rs";

tests/ui-fulldeps/rustc_public/check_foreign.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn test_foreign() -> ControlFlow<()> {
5252

5353
/// This test will generate and analyze a dummy crate using the stable mir.
5454
/// For that, it will first write the dummy crate into a file.
55-
/// Then it will create a `StableMir` using custom arguments and then
55+
/// Then it will create a `RustcPublic` using custom arguments and then
5656
/// it will run the compiler.
5757
fn main() {
5858
let path = "foreign_input.rs";

tests/ui-fulldeps/rustc_public/check_instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn test_body(body: mir::Body) {
8181

8282
/// This test will generate and analyze a dummy crate using the stable mir.
8383
/// For that, it will first write the dummy crate into a file.
84-
/// Then it will create a `StableMir` using custom arguments and then
84+
/// Then it will create a `RustcPublic` using custom arguments and then
8585
/// it will run the compiler.
8686
fn main() {
8787
let path = "instance_input.rs";

0 commit comments

Comments
 (0)