diff options
author | Edwin Cheng <[email protected]> | 2020-03-26 16:41:44 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-03-26 16:46:40 +0000 |
commit | db162df264a222021dbc7f1f93af94029f3948d9 (patch) | |
tree | 86f91e30f85c2c4f5faa5054b84265ddb64636d5 /crates/ra_mbe | |
parent | 72e68d0caf6e813a19a8d434fb650574b73dbc0a (diff) |
Remove deps on tt_mbe
Diffstat (limited to 'crates/ra_mbe')
-rw-r--r-- | crates/ra_mbe/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_mbe/src/lib.rs b/crates/ra_mbe/src/lib.rs index 6a9037bfc..535b7daa0 100644 --- a/crates/ra_mbe/src/lib.rs +++ b/crates/ra_mbe/src/lib.rs | |||
@@ -28,6 +28,13 @@ pub enum ExpandError { | |||
28 | BindingError(String), | 28 | BindingError(String), |
29 | ConversionError, | 29 | ConversionError, |
30 | InvalidRepeat, | 30 | InvalidRepeat, |
31 | ProcMacroError(tt::ExpansionError), | ||
32 | } | ||
33 | |||
34 | impl From<tt::ExpansionError> for ExpandError { | ||
35 | fn from(it: tt::ExpansionError) -> Self { | ||
36 | ExpandError::ProcMacroError(it) | ||
37 | } | ||
31 | } | 38 | } |
32 | 39 | ||
33 | pub use crate::syntax_bridge::{ | 40 | pub use crate::syntax_bridge::{ |