]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_def/src/item_scope.rs
collect macro_rules! macros into macro declarations
[rust.git] / crates / hir_def / src / item_scope.rs
index 8b5984bf1233d2ac8570beab4cb5d936ae6fa419..37599371f61fee8f13a6ddae18172740f0061e39 100644 (file)
@@ -127,7 +127,7 @@ pub(crate) fn macros<'a>(&'a self) -> impl Iterator<Item = (&'a Name, MacroDefId
     }
 
     /// Iterate over all legacy textual scoped macros visible at the end of the module
-    pub fn legacy_macros<'a>(&'a self) -> impl Iterator<Item = (&'a Name, MacroDefId)> + 'a {
+    pub(crate) fn legacy_macros<'a>(&'a self) -> impl Iterator<Item = (&'a Name, MacroDefId)> + 'a {
         self.legacy_macros.iter().map(|(name, def)| (name, *def))
     }