rustdoc: rename Type::is_same
to is_doc_subtype_of
This commit is contained in:
parent
ee6b228b6a
commit
86179c4549
3 changed files with 11 additions and 11 deletions
|
@ -1291,7 +1291,7 @@ pub(crate) fn notable_traits_button(ty: &clean::Type, cx: &mut Context<'_>) -> O
|
|||
if let Some(impls) = cx.cache().impls.get(&did) {
|
||||
for i in impls {
|
||||
let impl_ = i.inner_impl();
|
||||
if !ty.is_same(&impl_.for_, cx.cache()) {
|
||||
if !ty.is_doc_subtype_of(&impl_.for_, cx.cache()) {
|
||||
// Two different types might have the same did,
|
||||
// without actually being the same.
|
||||
continue;
|
||||
|
@ -1327,7 +1327,7 @@ fn notable_traits_decl(ty: &clean::Type, cx: &Context<'_>) -> (String, String) {
|
|||
|
||||
for i in impls {
|
||||
let impl_ = i.inner_impl();
|
||||
if !ty.is_same(&impl_.for_, cx.cache()) {
|
||||
if !ty.is_doc_subtype_of(&impl_.for_, cx.cache()) {
|
||||
// Two different types might have the same did,
|
||||
// without actually being the same.
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue