1 #![feature(crate_visibility_modifier)]
2 #![feature(decl_macro)]
3 #![feature(proc_macro_diagnostic)]
4 #![feature(proc_macro_internals)]
5 #![feature(proc_macro_span)]
7 extern crate proc_macro as pm;
9 // A variant of 'try!' that panics on an Err. This is used as a crutch on the
10 // way towards a non-panic!-prone parser. It should be used for fatal parsing
11 // errors; eventually we plan to convert all code using panictry to just use
14 macro_rules! panictry {
16 use std::result::Result::{Ok, Err};
17 use errors::FatalError;
29 mod proc_macro_server;
31 pub use syntax_pos::hygiene;
32 pub use mbe::macro_rules::compile_declarative_macro;