-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Support impl Trait
in inlined documentation
#61613
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
☔ The latest upstream changes (presumably #60293) made this pull request unmergeable. Please resolve the merge conflicts. |
6129d61
to
ecda335
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late review.
Even with the (i as u32)
-> param.index
change I suggested there is still a problem with things like pub fn h(_x: impl Iterator<Item = u8>) {}
, they render as:
The issue is that rustdoc uses simplify::where_clauses
to convert the equality predicates into type bindings so that needs to be run before moving where predicates that are actually part of impl traits into cx.impl_trait_bounds
. We could leave fixing this to a follow up PR though.
Looks good, thanks! @bors r+ |
📌 Commit ea3e804 has been approved by |
Support `impl Trait` in inlined documentation `impl Trait` in argument position was not properly rendered when inlined from other crates. ([a live example on docs.rs](https://docs.rs/libp2p/0.8.1/libp2p/floodsub/struct.Floodsub.html#method.unsubscribe))  ↓ 
Rollup of 4 pull requests Successful merges: - #61613 (Support `impl Trait` in inlined documentation) - #62090 (typeck: merge opaque type inference logic) - #62403 (Replace SliceConcatExt trait with inherent methods and SliceConcat helper trait) - #62494 (Remove unused dependencies) Failed merges: r? @ghost
⌛ Testing commit ea3e804 with merge 0ab453ada4ea66b0902b62d5db1648c0c9e0c69e... |
Failed in #62509 (comment), @bors r- |
@bors retry |
I guess test failure on one platform was caused by indeterminism of |
@ollie27 Could you re-approve? |
☔ The latest upstream changes (presumably #63471) made this pull request unmergeable. Please resolve the merge conflicts. |
2cf5a9e
to
1fe6160
Compare
Rebased. |
Let's give this another go. @bors r+ |
📌 Commit 1fe6160 has been approved by |
Support `impl Trait` in inlined documentation `impl Trait` in argument position was not properly rendered when inlined from other crates. ([a live example on docs.rs](https://docs.rs/libp2p/0.8.1/libp2p/floodsub/struct.Floodsub.html#method.unsubscribe))  ↓ 
☀️ Test successful - checks-azure |
impl Trait
in argument position was not properly rendered when inlined from other crates. (a live example on docs.rs)↓