summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-03-12 17:45:15 -0700
committerMichael Howell <michael@notriddle.com>2023-03-12 17:45:15 -0700
commit86179c4549e74acf22fc4da02b64f0bb2ce1f4aa (patch)
treef640a5237142b16dd1471417cc358163a0b1e185 /src/librustdoc/html/render
parentee6b228b6a8b874ca8b6e88cd58d4618cf20fb20 (diff)
downloadrust-86179c4549e74acf22fc4da02b64f0bb2ce1f4aa.tar.gz
rust-86179c4549e74acf22fc4da02b64f0bb2ce1f4aa.zip
rustdoc: rename `Type::is_same` to `is_doc_subtype_of`
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index f8c26dc4706..832c4e7cfe7 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -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;