diff options
| author | bors <bors@rust-lang.org> | 2023-09-13 23:46:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-13 23:46:27 +0000 |
| commit | 2009b58df27aab2463eaaba8b870aee09caabf1e (patch) | |
| tree | eb75397b57b38c42e545f968876d6bf78202e0fa /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | b788addfcc955368b9771b77d312c248fab60253 (diff) | |
| parent | 26c0f97579763363310bc32cf6d8ef4cd6f5588f (diff) | |
| download | rust-2009b58df27aab2463eaaba8b870aee09caabf1e.tar.gz rust-2009b58df27aab2463eaaba8b870aee09caabf1e.zip | |
Auto merge of #11452 - y21:issue11165, r=Centri3
[`len_without_is_empty`]: follow type alias to find inherent `is_empty` method Fixes #11165 When we see an `impl B` and `B` is a type alias to some type `A`, then we need to follow the type alias to look for an `is_empty` method on the aliased type `A`. Before this PR, it'd get the inherent impls of `B`, which there aren't any and so it would warn that there isn't an `is_empty` method even if there was one. Passing the type alias `DefId` to `TyCtxt::type_of` gives us the aliased `DefId` (or simply return the type itself if it wasn't a type alias) so we can just use that changelog: [`len_without_is_empty`]: follow type alias to find inherent `is_empty` method
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
