about summary refs log tree commit diff
path: root/compiler/rustc_public
diff options
context:
space:
mode:
authorMakai <m4kai410@gmail.com>2025-07-15 16:37:26 +0000
committerMakai <m4kai410@gmail.com>2025-07-18 18:49:32 +0000
commit4d79328091167135e890b77f0fbf5b8b9479c80b (patch)
treedc103d9867e34b0e8ce8845e6d0f1ca6b4289826 /compiler/rustc_public
parent483877a9b2140065df08e15a27c20c9431028ec5 (diff)
downloadrust-4d79328091167135e890b77f0fbf5b8b9479c80b.tar.gz
rust-4d79328091167135e890b77f0fbf5b8b9479c80b.zip
use `RustcPublic` instead of `StableMir`
Diffstat (limited to 'compiler/rustc_public')
-rw-r--r--compiler/rustc_public/src/rustc_internal/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_public/src/rustc_internal/mod.rs b/compiler/rustc_public/src/rustc_internal/mod.rs
index a119958974e..225c811ab3a 100644
--- a/compiler/rustc_public/src/rustc_internal/mod.rs
+++ b/compiler/rustc_public/src/rustc_internal/mod.rs
@@ -191,7 +191,7 @@ macro_rules! run_driver {
         use rustc_public::CompilerError;
         use std::ops::ControlFlow;
 
-        pub struct StableMir<B = (), C = (), F = fn($($crate::optional!($with_tcx TyCtxt))?) -> ControlFlow<B, C>>
+        pub struct RustcPublic<B = (), C = (), F = fn($($crate::optional!($with_tcx TyCtxt))?) -> ControlFlow<B, C>>
         where
             B: Send,
             C: Send,
@@ -201,15 +201,15 @@ macro_rules! run_driver {
             result: Option<ControlFlow<B, C>>,
         }
 
-        impl<B, C, F> StableMir<B, C, F>
+        impl<B, C, F> RustcPublic<B, C, F>
         where
             B: Send,
             C: Send,
             F: FnOnce($($crate::optional!($with_tcx TyCtxt))?) -> ControlFlow<B, C> + Send,
         {
-            /// Creates a new `StableMir` instance, with given test_function and arguments.
+            /// Creates a new `RustcPublic` instance, with given test_function and arguments.
             pub fn new(callback: F) -> Self {
-                StableMir { callback: Some(callback), result: None }
+                RustcPublic { callback: Some(callback), result: None }
             }
 
             /// Runs the compiler against given target and tests it with `test_function`
@@ -236,7 +236,7 @@ macro_rules! run_driver {
             }
         }
 
-        impl<B, C, F> Callbacks for StableMir<B, C, F>
+        impl<B, C, F> Callbacks for RustcPublic<B, C, F>
         where
             B: Send,
             C: Send,
@@ -265,6 +265,6 @@ macro_rules! run_driver {
             }
         }
 
-        StableMir::new($callback).run($args)
+        RustcPublic::new($callback).run($args)
     }};
 }