diff options
Diffstat (limited to 'crates/ra_hir_expand/src/lib.rs')
-rw-r--r-- | crates/ra_hir_expand/src/lib.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index 92f3902dd..3fce73e8a 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs | |||
@@ -157,13 +157,6 @@ impl HirFileId { | |||
157 | } | 157 | } |
158 | } | 158 | } |
159 | } | 159 | } |
160 | |||
161 | pub fn macro_file(self) -> Option<MacroFile> { | ||
162 | match self.0 { | ||
163 | HirFileIdRepr::FileId(_) => None, | ||
164 | HirFileIdRepr::MacroFile(m) => Some(m), | ||
165 | } | ||
166 | } | ||
167 | } | 160 | } |
168 | 161 | ||
169 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 162 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
@@ -303,7 +296,7 @@ pub struct ExpansionInfo { | |||
303 | exp_map: Arc<mbe::TokenMap>, | 296 | exp_map: Arc<mbe::TokenMap>, |
304 | } | 297 | } |
305 | 298 | ||
306 | pub use mbe::{syntax_node_to_token_tree, Origin}; | 299 | pub use mbe::Origin; |
307 | use ra_parser::FragmentKind; | 300 | use ra_parser::FragmentKind; |
308 | 301 | ||
309 | impl ExpansionInfo { | 302 | impl ExpansionInfo { |