]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_smir/src/very_unstable.rs
Rollup merge of #97780 - compiler-errors:field-wfcheck-before-sized, r=jackh726
[rust.git] / compiler / rustc_smir / src / very_unstable.rs
1 //! This module reexports various crates and modules from unstable rustc APIs.
2 //! Add anything you need here and it will get slowly transferred to a stable API.
3 //! Only use rustc_smir in your dependencies and use the reexports here instead of
4 //! directly referring to the unstable crates.
5
6 macro_rules! crates {
7     ($($rustc_name:ident -> $name:ident,)*) => {
8         $(
9             #[cfg(not(feature = "default"))]
10             pub extern crate $rustc_name as $name;
11             #[cfg(feature = "default")]
12             pub use $rustc_name as $name;
13         )*
14     }
15 }
16
17 crates! {
18     rustc_borrowck -> borrowck,
19     rustc_driver -> driver,
20     rustc_hir -> hir,
21     rustc_interface -> interface,
22     rustc_middle -> middle,
23     rustc_mir_dataflow -> dataflow,
24     rustc_mir_transform -> transform,
25     rustc_serialize -> serialize,
26     rustc_trait_selection -> trait_selection,
27 }