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.
7 ($($rustc_name:ident -> $name:ident,)*) => {
9 #[cfg(not(feature = "default"))]
10 pub extern crate $rustc_name as $name;
11 #[cfg(feature = "default")]
12 pub use $rustc_name as $name;
18 rustc_borrowck -> borrowck,
19 rustc_driver -> driver,
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,