

Rustdoc: Do not list impl when trait has doc(hidden) by fee1-dead · Pull Request...
source link: https://github.com/rust-lang/rust/pull/86513
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Nice, I like the manually laid out stack to avoid recursing A few comments:
-
I've seen you're "only" checking for the type parameters of a
#[doc(hidden)]
trait, so the following questions remain open:-
What happens if the cross-crate
#[doc(hidden)]
type is the "receiver" /Self
of theimpl Trait…
?-
Given your algorithm, I guess a very simple solution would be to add the
Self
type to that stack of yours
-
What happens if the trait itself is the cross-crate
#[doc(hidden)]
one?EDIT: Sorry, I had missed the fact that a
clean
ed trait becomes aType
, under rustdoc, so I suspect your PR already handles this case.
-
Could you try handling those the former case as well, together with unit tests for both cases? Thanks
Recommend
-
20
缘起 一切都要从年末换工作碰上疫情, 在家闲着无聊又读了几首诗, 突然想写一个可以浏览和背诵诗词的 TUI 程序说起. 我选择了 Cursive 这个 Rust TUI 库. 在实现时有这么一个...
-
15
Contributor wabain commented
-
8
14 February 2021dyn Trait and impl Trait in Rust One of the more subtle aspects of Rust is how traits can be used as types. In this blog post I will attempt a bit of a deep dive into how to use traits as types and how to...
-
11
Copy link Collaborator rust-timer commented...
-
4
Copy link Collaborator rust-timer
-
6
捋捋 Rust 中的 impl Trait 和 dyn Trait ...
-
13
New issue Suggest impl Trait return type when incorrectly using a generic return type #89892
-
15
Stabilization Report This PR serves as a request for stabilization for three const evaluation features: const_fn_fn_ptr_basics const_fn_trait_bound ...
-
7
Conversation Contributor...
-
8
Conversation
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK