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.
This commit is contained in:
parent
9ed91f363a
commit
a97d65d6e4
2 changed files with 2 additions and 2 deletions
|
@ -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, "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue