about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-07-18 16:48:59 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-08-22 00:22:43 -0400
commita97d65d6e474e86cad99cd833a5cd2ba32eb678f (patch)
tree6e50bcd4cd52346745dac7e5a126d6d317179e28 /src/librustdoc/html/render
parent9ed91f363afdea6c6619f4d017c2e583192c7347 (diff)
downloadrust-a97d65d6e474e86cad99cd833a5cd2ba32eb678f.tar.gz
rust-a97d65d6e474e86cad99cd833a5cd2ba32eb678f.zip
rustdoc: Rename misleading function
- `is_associated` -> `is_type_alias`

`is_associated` is not a good name for what this is doing. If you look at
https://github.com/rust-lang/rust/pull/74489/files#diff-6a301d597807ee441a41e7237800563dR296,
is_associated() and as_assoc_kind() do completely different things, but
from the name it sounds like they're similar.
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index bd919205dd1..d17961521c8 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -3612,7 +3612,7 @@ fn render_impl(
         };
 
         let (is_hidden, extra_class) =
-            if (trait_.is_none() || item.doc_value().is_some() || item.inner.is_associated())
+            if (trait_.is_none() || item.doc_value().is_some() || item.inner.is_type_alias())
                 && !is_default_item
             {
                 (false, "")