about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-08-06 23:04:05 -0700
committerGitHub <noreply@github.com>2020-08-06 23:04:05 -0700
commit25c8e9ac172cca11fc23b21f3bba4b2653a9bad2 (patch)
tree0842080005562ab167a004d60063b241e44fe8d2 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent5b1ed09df0528ec47e9007bfbf53ab3e584b97eb (diff)
parentcedf96c834372074b1c56869155744a3bfef6fe4 (diff)
downloadrust-25c8e9ac172cca11fc23b21f3bba4b2653a9bad2.tar.gz
rust-25c8e9ac172cca11fc23b21f3bba4b2653a9bad2.zip
Rollup merge of #75203 - canova:btreemap-into-iter, r=dtolnay
Make `IntoIterator` lifetime bounds of `&BTreeMap` match with `&HashMap`

This is a pretty small change on the lifetime bounds of `IntoIterator` implementations of both `&BTreeMap` and `&mut BTreeMap`. This is loosening the lifetime bounds, so more code should be accepted with this PR. This is lifetime bounds will still be implicit since we have `type Item = (&'a K, &'a V);` in the implementation. This change will make the HashMap and BTreeMap share the same signature, so we can share the same function/trait with both HashMap and BTreeMap in the code.

Fixes #74034.
r? @dtolnay hey, I was touching this file on my previous PR and wanted to fix this on the way. Would you mind taking a look at this, or redirecting it if you are busy?
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions