about summary refs log tree commit diff
path: root/compiler/rustc_smir/src/lib.rs
diff options
context:
space:
mode:
authorMakai <m4kai410@gmail.com>2025-04-18 14:34:20 +0800
committerMakai <m4kai410@gmail.com>2025-04-18 14:34:20 +0800
commit35a20ded329500de1acba172a2b50bdfef85f431 (patch)
treec7c202c56c2fad6252f6f0987231dfca9b4e21a8 /compiler/rustc_smir/src/lib.rs
parent18a029cfe8e761533634bda8fe8a14e30280a21b (diff)
downloadrust-35a20ded329500de1acba172a2b50bdfef85f431.tar.gz
rust-35a20ded329500de1acba172a2b50bdfef85f431.zip
Implement `SmirInterface`
 - With `Context` wrapped by `SmirInterface`, the stable-mir's TLV stores a pointer to `SmirInterface`, while the rustc-specific TLV stores a pointer to tables.
 - This PR make the `rustc_smir` mod public.
Diffstat (limited to 'compiler/rustc_smir/src/lib.rs')
-rw-r--r--compiler/rustc_smir/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_smir/src/lib.rs b/compiler/rustc_smir/src/lib.rs
index 5d465bca4ee..bdc2353b625 100644
--- a/compiler/rustc_smir/src/lib.rs
+++ b/compiler/rustc_smir/src/lib.rs
@@ -20,7 +20,6 @@
 
 pub mod rustc_internal;
 
-// Make this module private for now since external users should not call these directly.
-mod rustc_smir;
+pub mod rustc_smir;
 
 pub mod stable_mir;