aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-03-26 16:41:44 +0000
committerEdwin Cheng <[email protected]>2020-03-26 16:46:40 +0000
commitdb162df264a222021dbc7f1f93af94029f3948d9 (patch)
tree86f91e30f85c2c4f5faa5054b84265ddb64636d5 /crates/ra_hir_expand
parent72e68d0caf6e813a19a8d434fb650574b73dbc0a (diff)
Remove deps on tt_mbe
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r--crates/ra_hir_expand/src/proc_macro.rs5
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}