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_hir_expand | |
parent | 72e68d0caf6e813a19a8d434fb650574b73dbc0a (diff) |
Remove deps on tt_mbe
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r-- | crates/ra_hir_expand/src/proc_macro.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_hir_expand/src/proc_macro.rs b/crates/ra_hir_expand/src/proc_macro.rs index 296325b05..4d270e0de 100644 --- a/crates/ra_hir_expand/src/proc_macro.rs +++ b/crates/ra_hir_expand/src/proc_macro.rs | |||
@@ -23,9 +23,10 @@ impl ProcMacroExpander { | |||
23 | let krate_graph = db.crate_graph(); | 23 | let krate_graph = db.crate_graph(); |
24 | let proc_macro = krate_graph[self.krate] | 24 | let proc_macro = krate_graph[self.krate] |
25 | .proc_macro | 25 | .proc_macro |
26 | .get(self.proc_macro_id.0) | 26 | .get(self.proc_macro_id.0 as usize) |
27 | .clone() | 27 | .clone() |
28 | .ok_or_else(|| mbe::ExpandError::ConversionError)?; | 28 | .ok_or_else(|| mbe::ExpandError::ConversionError)?; |
29 | proc_macro.custom_derive(tt) | 29 | |
30 | proc_macro.expander.expand(&tt, None).map_err(mbe::ExpandError::from) | ||
30 | } | 31 | } |
31 | } | 32 | } |