mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Remove deps on tt_mbe
This commit is contained in:
parent
72e68d0caf
commit
db162df264
10 changed files with 58 additions and 49 deletions
|
@ -23,9 +23,10 @@ impl ProcMacroExpander {
|
|||
let krate_graph = db.crate_graph();
|
||||
let proc_macro = krate_graph[self.krate]
|
||||
.proc_macro
|
||||
.get(self.proc_macro_id.0)
|
||||
.get(self.proc_macro_id.0 as usize)
|
||||
.clone()
|
||||
.ok_or_else(|| mbe::ExpandError::ConversionError)?;
|
||||
proc_macro.custom_derive(tt)
|
||||
|
||||
proc_macro.expander.expand(&tt, None).map_err(mbe::ExpandError::from)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue