From afdf08e964345ac4a884a5630772611ba81f6969 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 8 Mar 2020 11:02:14 +0100 Subject: Move hypothetical expansion to hir_expand --- crates/ra_hir_expand/src/lib.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'crates/ra_hir_expand/src/lib.rs') 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 { } } } - - pub fn macro_file(self) -> Option { - match self.0 { - HirFileIdRepr::FileId(_) => None, - HirFileIdRepr::MacroFile(m) => Some(m), - } - } } #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] @@ -303,7 +296,7 @@ pub struct ExpansionInfo { exp_map: Arc, } -pub use mbe::{syntax_node_to_token_tree, Origin}; +pub use mbe::Origin; use ra_parser::FragmentKind; impl ExpansionInfo { -- cgit v1.2.3