diff options
author | Jonas Schievink <[email protected]> | 2020-12-11 13:24:02 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-12-27 14:29:47 +0000 |
commit | 798968e1e3a7d9eafa0c27c857571cdc347c34a7 (patch) | |
tree | 79e82b07d8486f2d9b710706e5aacc07f25ddbb9 /crates/proc_macro_api/src | |
parent | 0fd75c98ac81c9f6581712ec8802940e547315e3 (diff) |
Move TokenExpander to base_db and rename it
It's only used to break the dependency to proc_macro_api
Diffstat (limited to 'crates/proc_macro_api/src')
-rw-r--r-- | crates/proc_macro_api/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/proc_macro_api/src/lib.rs b/crates/proc_macro_api/src/lib.rs index 0d061fd53..a61afbbd6 100644 --- a/crates/proc_macro_api/src/lib.rs +++ b/crates/proc_macro_api/src/lib.rs | |||
@@ -39,7 +39,7 @@ impl PartialEq for ProcMacroProcessExpander { | |||
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | impl tt::TokenExpander for ProcMacroProcessExpander { | 42 | impl base_db::ProcMacroExpander for ProcMacroProcessExpander { |
43 | fn expand( | 43 | fn expand( |
44 | &self, | 44 | &self, |
45 | subtree: &Subtree, | 45 | subtree: &Subtree, |
@@ -90,7 +90,7 @@ impl ProcMacroClient { | |||
90 | ProcMacroKind::FuncLike => base_db::ProcMacroKind::FuncLike, | 90 | ProcMacroKind::FuncLike => base_db::ProcMacroKind::FuncLike, |
91 | ProcMacroKind::Attr => base_db::ProcMacroKind::Attr, | 91 | ProcMacroKind::Attr => base_db::ProcMacroKind::Attr, |
92 | }; | 92 | }; |
93 | let expander: Arc<dyn tt::TokenExpander> = Arc::new(ProcMacroProcessExpander { | 93 | let expander = Arc::new(ProcMacroProcessExpander { |
94 | process: self.process.clone(), | 94 | process: self.process.clone(), |
95 | name: name.clone(), | 95 | name: name.clone(), |
96 | dylib_path: dylib_path.into(), | 96 | dylib_path: dylib_path.into(), |