Skip to content

Commit f79fca4

Browse files
aliemjaylcnr
authored andcommitted
borrowck: use implied bounds from impl header
1 parent e1ccdad commit f79fca4

File tree

1 file changed

+2
-3
lines changed
  • std/src/collections/hash

1 file changed

+2
-3
lines changed

std/src/collections/hash/map.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -3049,9 +3049,8 @@ where
30493049
#[stable(feature = "hash_extend_copy", since = "1.4.0")]
30503050
impl<'a, K, V, S> Extend<(&'a K, &'a V)> for HashMap<K, V, S>
30513051
where
3052-
// FIXME(aliemjay): the bound `+ 'a` should not be necessary.
3053-
K: Eq + Hash + Copy + 'a,
3054-
V: Copy + 'a,
3052+
K: Eq + Hash + Copy,
3053+
V: Copy,
30553054
S: BuildHasher,
30563055
{
30573056
#[inline]

0 commit comments

Comments
 (0)