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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/item_scope.rs b/crates/hir_def/src/item_scope.rs index 9f543b79b5..ec8c3a87c0 100644 --- a/crates/hir_def/src/item_scope.rs +++ b/crates/hir_def/src/item_scope.rs @@ -195,8 +195,8 @@ impl ItemScope { pub(crate) fn derive_macro_invocs( &self, - ) -> impl Iterator<Item = (AstId<ast::Item>, (AttrId, MacroCallId))> + '_ { - self.derive_macros.iter().flat_map(|(k, v)| v.iter().map(move |v| (*k, *v))) + ) -> impl Iterator<Item = (AstId<ast::Item>, &[(AttrId, MacroCallId)])> + '_ { + self.derive_macros.iter().map(|(k, v)| (*k, v.as_ref())) } pub(crate) fn unnamed_trait_vis(&self, tr: TraitId) -> Option<Visibility> { |