Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/item_scope.rs')
| -rw-r--r-- | crates/hir_def/src/item_scope.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/crates/hir_def/src/item_scope.rs b/crates/hir_def/src/item_scope.rs index 1293319561..dea3b36e6c 100644 --- a/crates/hir_def/src/item_scope.rs +++ b/crates/hir_def/src/item_scope.rs @@ -45,7 +45,6 @@ pub struct ItemScope { /// The defs declared in this scope. Each def has a single scope where it is /// declared. declarations: Vec<ModuleDefId>, - macro_declarations: Vec<MacroId>, impls: Vec<ImplId>, unnamed_consts: Vec<ConstId>, @@ -109,10 +108,6 @@ impl ItemScope { self.declarations.iter().copied() } - pub fn macro_declarations(&self) -> impl Iterator<Item = MacroId> + '_ { - self.macro_declarations.iter().copied() - } - pub fn impls(&self) -> impl Iterator<Item = ImplId> + ExactSizeIterator + '_ { self.impls.iter().copied() } @@ -177,10 +172,6 @@ impl ItemScope { self.declarations.push(def) } - pub(crate) fn declare_macro(&mut self, def: MacroId) { - self.macro_declarations.push(def); - } - pub(crate) fn get_legacy_macro(&self, name: &Name) -> Option<MacroRulesId> { self.legacy_macros.get(name).copied() } @@ -380,7 +371,6 @@ impl ItemScope { macros, unresolved, declarations, - macro_declarations, impls, unnamed_consts, unnamed_trait_imports, @@ -393,7 +383,6 @@ impl ItemScope { macros.shrink_to_fit(); unresolved.shrink_to_fit(); declarations.shrink_to_fit(); - macro_declarations.shrink_to_fit(); impls.shrink_to_fit(); unnamed_consts.shrink_to_fit(); unnamed_trait_imports.shrink_to_fit(); |