about summary refs log tree commit diff
path: root/src/libsyntax_expand/lib.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-12-29 16:39:31 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-12-30 19:18:16 +0300
commitb683de4ad79242fdeebcae2afefb72c1530babe9 (patch)
treee46daf86fae68f2246b1dd80500f4a504d452b84 /src/libsyntax_expand/lib.rs
parent0fb43801368ae8b5931583f813071120bed55c35 (diff)
downloadrust-b683de4ad79242fdeebcae2afefb72c1530babe9.tar.gz
rust-b683de4ad79242fdeebcae2afefb72c1530babe9.zip
Rename directories for some crates from `syntax_x` to `rustc_x`
`syntax_expand` -> `rustc_expand`
`syntax_pos` -> `rustc_span`
`syntax_ext` -> `rustc_builtin_macros`
Diffstat (limited to 'src/libsyntax_expand/lib.rs')
-rw-r--r--src/libsyntax_expand/lib.rs67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/libsyntax_expand/lib.rs b/src/libsyntax_expand/lib.rs
deleted file mode 100644
index 258a7478329..00000000000
--- a/src/libsyntax_expand/lib.rs
+++ /dev/null
@@ -1,67 +0,0 @@
-#![feature(crate_visibility_modifier)]
-#![feature(decl_macro)]
-#![feature(proc_macro_diagnostic)]
-#![feature(proc_macro_internals)]
-#![feature(proc_macro_span)]
-
-extern crate proc_macro as pm;
-
-// A variant of 'try!' that panics on an Err. This is used as a crutch on the
-// way towards a non-panic!-prone parser. It should be used for fatal parsing
-// errors; eventually we plan to convert all code using panictry to just use
-// normal try.
-#[macro_export]
-macro_rules! panictry {
-    ($e:expr) => {{
-        use errors::FatalError;
-        use std::result::Result::{Err, Ok};
-        match $e {
-            Ok(e) => e,
-            Err(mut e) => {
-                e.emit();
-                FatalError.raise()
-            }
-        }
-    }};
-}
-
-mod placeholders;
-mod proc_macro_server;
-
-pub use mbe::macro_rules::compile_declarative_macro;
-crate use syntax_pos::hygiene;
-pub mod base;
-pub mod build;
-pub mod expand;
-pub use rustc_parse::config;
-pub mod proc_macro;
-
-crate mod mbe;
-
-// HACK(Centril, #64197): These shouldn't really be here.
-// Rather, they should be with their respective modules which are defined in other crates.
-// However, since for now constructing a `ParseSess` sorta requires `config` from this crate,
-// these tests will need to live here in the iterim.
-
-#[cfg(test)]
-mod tests;
-#[cfg(test)]
-mod parse {
-    #[cfg(test)]
-    mod tests;
-    #[cfg(test)]
-    mod lexer {
-        #[cfg(test)]
-        mod tests;
-    }
-}
-#[cfg(test)]
-mod tokenstream {
-    #[cfg(test)]
-    mod tests;
-}
-#[cfg(test)]
-mod mut_visit {
-    #[cfg(test)]
-    mod tests;
-}