Remove deps on tt_mbe

This commit is contained in:
Edwin Cheng 2020-03-27 00:41:44 +08:00
parent 72e68d0caf
commit db162df264
10 changed files with 58 additions and 49 deletions

View file

@ -28,6 +28,13 @@ pub enum ExpandError {
BindingError(String),
ConversionError,
InvalidRepeat,
ProcMacroError(tt::ExpansionError),
}
impl From<tt::ExpansionError> for ExpandError {
fn from(it: tt::ExpansionError) -> Self {
ExpandError::ProcMacroError(it)
}
}
pub use crate::syntax_bridge::{