diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2022-10-24 19:32:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-24 19:32:24 +0900 |
| commit | fbb3650c89a45486e5c7a95f0cf7b3ce1657d5b4 (patch) | |
| tree | 86f15153d91e391528d8b5ba785bf8a75179fd5f /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 4b5fcae32d5e0db0f416fbfafbab63366486f0c3 (diff) | |
| parent | c03d10c3264b5518de8d2296e403aa50447622f0 (diff) | |
| download | rust-fbb3650c89a45486e5c7a95f0cf7b3ce1657d5b4.tar.gz rust-fbb3650c89a45486e5c7a95f0cf7b3ce1657d5b4.zip | |
Rollup merge of #99578 - steffahn:remove_redundant_bound, r=thomcc
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](https://doc.rust-lang.org/std/borrow/enum.Cow.html#impl-Borrow%3CB%3E), and that's confusing in my opinion, so let's remove it ^^ _(Documentation right now, compare to `AsRef`, too:)_ 
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
