about summary refs log tree commit diff
path: root/compiler/rustc_smir/src/stable_mir/mod.rs
diff options
context:
space:
mode:
authorMakai <m4kai410@gmail.com>2025-05-05 15:35:54 +0800
committerMakai <m4kai410@gmail.com>2025-07-04 01:33:17 +0000
commit663e2b7e2904d68fda6d5c23fd1b8ad9fbd7ee03 (patch)
tree099728c1ffc6a4f76fc3e653ee7c11407a26817a /compiler/rustc_smir/src/stable_mir/mod.rs
parent0f6f68313d6d1b503c695bddd2f41dc09f6c1058 (diff)
downloadrust-663e2b7e2904d68fda6d5c23fd1b8ad9fbd7ee03.tar.gz
rust-663e2b7e2904d68fda6d5c23fd1b8ad9fbd7ee03.zip
refactor: move `convert` module to `stable_mir`
note that this commit delete `convert/error.rs`, we would use `SmirError::from_internal` instead.

**Unresolved questions:**
- There are still a few direct calls to rustc's internals scattered across `impl Stable`s, but most of them appear to be relatively stable, e.g., `mir::interpret::ConstAllocation::inner(self)` and `mir::syntax::SwitchTargets::otherwise(self)`.
Diffstat (limited to 'compiler/rustc_smir/src/stable_mir/mod.rs')
-rw-r--r--compiler/rustc_smir/src/stable_mir/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_smir/src/stable_mir/mod.rs b/compiler/rustc_smir/src/stable_mir/mod.rs
index d3ef5f4001d..33213fcbe08 100644
--- a/compiler/rustc_smir/src/stable_mir/mod.rs
+++ b/compiler/rustc_smir/src/stable_mir/mod.rs
@@ -41,6 +41,7 @@ use crate::{rustc_smir, stable_mir};
 
 pub mod abi;
 mod alloc;
+pub(crate) mod convert;
 #[macro_use]
 pub mod crate_def;
 pub mod compiler_interface;