about summary refs log tree commit diff
path: root/compiler/rustc_smir/src/lib.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-09-14 15:50:11 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-09-25 14:38:27 +0000
commita38e98371bf2c2e81dd8f01da21330b87622dd3a (patch)
tree69e894fb448ec475b2c9c6d77ecfdaf2aef10196 /compiler/rustc_smir/src/lib.rs
parent19f1d782d51d980ccb5c448e6a415188323b30ce (diff)
downloadrust-a38e98371bf2c2e81dd8f01da21330b87622dd3a.tar.gz
rust-a38e98371bf2c2e81dd8f01da21330b87622dd3a.zip
Split out the stable part of smir into its own crate to prevent accidental usage of forever unstable things
Diffstat (limited to 'compiler/rustc_smir/src/lib.rs')
-rw-r--r--compiler/rustc_smir/src/lib.rs16
1 files changed, 1 insertions, 15 deletions
diff --git a/compiler/rustc_smir/src/lib.rs b/compiler/rustc_smir/src/lib.rs
index 8cb533c8d67..b6c36678db5 100644
--- a/compiler/rustc_smir/src/lib.rs
+++ b/compiler/rustc_smir/src/lib.rs
@@ -10,26 +10,12 @@
     html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
     test(attr(allow(unused_variables), deny(warnings)))
 )]
-#![cfg_attr(not(feature = "default"), feature(rustc_private))]
+#![feature(rustc_private)]
 #![feature(ptr_metadata)]
 #![feature(type_alias_impl_trait)] // Used to define opaque types.
 #![feature(intra_doc_pointers)]
 
-// Declare extern rustc_* crates to enable building this crate separately from the compiler.
-#[cfg(not(feature = "default"))]
-extern crate rustc_hir;
-#[cfg(not(feature = "default"))]
-extern crate rustc_middle;
-#[cfg(not(feature = "default"))]
-extern crate rustc_span;
-#[cfg(not(feature = "default"))]
-extern crate rustc_target;
-
 pub mod rustc_internal;
-pub mod stable_mir;
 
 // Make this module private for now since external users should not call these directly.
 mod rustc_smir;
-
-#[macro_use]
-extern crate scoped_tls;