Skip to content

Conversation

notriddle
Copy link
Contributor

@notriddle notriddle commented Dec 10, 2021

Closes #80737

@rust-highfive
Copy link
Contributor

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 10, 2021
@notriddle notriddle force-pushed the notriddle/doc-notable_trait-mut_t_is_not_an_iterator branch from 2555b7b to 17206cb Compare December 10, 2021 16:27
@notriddle notriddle changed the title Add regression test for #80737 rustdoc: Add regression test for Iterator as notable trait on &mut T Dec 10, 2021
@camelid camelid added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Dec 11, 2021
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 11, 2021
…it-mut_t_is_not_ref_t, r=Mark-Simulacrum

rustdoc: Add regression test for Iterator as notable trait on &T

Closes rust-lang#78160

This regression test is different from the one in rust-lang#91748, because while neither of these function should have Iterator marked as a notable trait, the reasons are different.

* In this PR, it returns `&T where T: Iterator`. The `mut` is what's missing.
* In rust-lang#91748, it returns `&mut T`. The trait bounds are what's missing.
@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 12, 2021

📌 Commit 17206cb has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 12, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 12, 2021
…askrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#91746 (Btree: assert more API compatibility)
 - rust-lang#91748 (rustdoc: Add regression test for Iterator as notable trait on &mut T)
 - rust-lang#91811 (bootstrap: Change unwrap() to expect() for WIX path)
 - rust-lang#91814 (doc: fix typo in comments)
 - rust-lang#91815 (better span for unexpected normalization failure in CTFE engine)
 - rust-lang#91817 (rustbot: Add autolabeling for `T-rustdoc`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 5dec013 into rust-lang:master Dec 12, 2021
@rustbot rustbot added this to the 1.59.0 milestone Dec 12, 2021
@notriddle notriddle deleted the notriddle/doc-notable_trait-mut_t_is_not_an_iterator branch December 12, 2021 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustdoc: Notable traits shows wrong type parameter
6 participants