about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2022-07-22 01:35:39 +0200
committerFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2022-07-22 01:35:39 +0200
commitc03d10c3264b5518de8d2296e403aa50447622f0 (patch)
tree6a21a1dd6ef404b681c742d5fba1c9681d3876c3 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent62b272d25c5bb8b6bb8ac73797d82b8b9a1eabda (diff)
downloadrust-c03d10c3264b5518de8d2296e403aa50447622f0.tar.gz
rust-c03d10c3264b5518de8d2296e403aa50447622f0.zip
Remove redundant lifetime bound from `impl Borrow for Cow`
The lifetime bound `B::Owned: 'a` is redundant and doesn't make a difference,
because `Cow<'a, B>` comes with an implicit `B: 'a`, and associated types
will outlive lifetimes outlived by the `Self` type (and all the trait's
generic parameters, of which there are none in this case), so the implicit `B: 'a`
implies `B::Owned: 'a` anyway.

The explicit lifetime bound here does however end up in documentation,
and that's confusing in my opinion, so let's remove it ^^
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions