diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-18 01:49:10 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-27 13:52:37 +0300 |
| commit | 3eeec1c5d2a6342b6b38720ae67091e1546ac7d1 (patch) | |
| tree | 7131b44140df25efbe0806e429d57370e1df1fa2 /src/libsyntax/lib.rs | |
| parent | 09e39897587dca70f0b15093d425a682c392349c (diff) | |
| download | rust-3eeec1c5d2a6342b6b38720ae67091e1546ac7d1.tar.gz rust-3eeec1c5d2a6342b6b38720ae67091e1546ac7d1.zip | |
Break dependencies between `syntax_ext` and some other crates
Move `source_uitil` macros into `syntax_ext` Cleanup dependencies of `rustc_driver`
Diffstat (limited to 'src/libsyntax/lib.rs')
| -rw-r--r-- | src/libsyntax/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 75b4e89ec01..7471fb45325 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -37,6 +37,7 @@ const MACRO_ARGUMENTS: Option<&'static str> = Some("macro arguments"); // 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 std::result::Result::{Ok, Err}; @@ -168,7 +169,7 @@ pub mod ext { pub mod derive; pub mod expand; pub mod placeholders; - pub mod source_util; + pub mod proc_macro; pub mod tt { pub mod transcribe; |
