From b30bcfae38803443963797e219a5f1b174ebeb79 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Fri, 1 Apr 2022 17:22:23 +0000 Subject: [PATCH] Fix some fallout around type alias impl trait in associated types --- compiler/rustc_data_structures/src/vec_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_data_structures/src/vec_map.rs b/compiler/rustc_data_structures/src/vec_map.rs index 2f4b3844430..86be0bd8775 100644 --- a/compiler/rustc_data_structures/src/vec_map.rs +++ b/compiler/rustc_data_structures/src/vec_map.rs @@ -144,7 +144,7 @@ impl<'a, K, V> IntoIterator for &'a VecMap { } } -impl<'a, K, V> IntoIterator for &'a mut VecMap { +impl<'a, K: 'a, V: 'a> IntoIterator for &'a mut VecMap { type Item = (&'a K, &'a mut V); type IntoIter = impl Iterator;