aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-04 18:29:55 +0100
committerGitHub <[email protected]>2021-05-04 18:29:55 +0100
commit5e87f842116005d0d75364147de0f412739af622 (patch)
tree6ccc14457df41510c7d1eae9d69d20d523173e30
parent871bc1cd08a4167e0067b0fe6bf10bf5a7866500 (diff)
parent87f827bfafc28669e896904bd162e3864350aeed (diff)
Merge #8726
8726: internal: reduce visibility r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r--crates/hir_expand/src/db.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs
index b77795b2e..2eaab1efb 100644
--- a/crates/hir_expand/src/db.rs
+++ b/crates/hir_expand/src/db.rs
@@ -40,7 +40,7 @@ pub enum TokenExpander {
40} 40}
41 41
42impl TokenExpander { 42impl TokenExpander {
43 pub fn expand( 43 fn expand(
44 &self, 44 &self,
45 db: &dyn AstDatabase, 45 db: &dyn AstDatabase,
46 id: LazyMacroId, 46 id: LazyMacroId,
@@ -61,7 +61,7 @@ impl TokenExpander {
61 } 61 }
62 } 62 }
63 63
64 pub fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId { 64 pub(crate) fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId {
65 match self { 65 match self {
66 TokenExpander::MacroRules(it) => it.map_id_down(id), 66 TokenExpander::MacroRules(it) => it.map_id_down(id),
67 TokenExpander::MacroDef(it) => it.map_id_down(id), 67 TokenExpander::MacroDef(it) => it.map_id_down(id),
@@ -71,7 +71,7 @@ impl TokenExpander {
71 } 71 }
72 } 72 }
73 73
74 pub fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) { 74 pub(crate) fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) {
75 match self { 75 match self {
76 TokenExpander::MacroRules(it) => it.map_id_up(id), 76 TokenExpander::MacroRules(it) => it.map_id_up(id),
77 TokenExpander::MacroDef(it) => it.map_id_up(id), 77 TokenExpander::MacroDef(it) => it.map_id_up(id),