Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't collect return-position impl traits for documentation #109937

Merged

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Apr 4, 2023

#104889 modified the rustdoc ast collection step to use a HIR visitor, which more thoroughly walks the HIR tree. that means that we're going to encounter inner items (incl return-position impl traits and async fn opaque futures) that are not possible to document.

FIxes (but does not close due to being a beta regression) #109931

r? @GuillaumeGomez

@compiler-errors compiler-errors added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 4, 2023
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Apr 4, 2023
@compiler-errors compiler-errors force-pushed the rustdoc-rpit-cant-be-documented branch from c499c48 to 1b00892 Compare April 4, 2023 13:40
@GuillaumeGomez
Copy link
Member

Thanks! r=me once CI pass

@est31
Copy link
Member

est31 commented Apr 4, 2023

Thanks for the quick fix and review, @compiler-errors @GuillaumeGomez ! ❤️

@compiler-errors compiler-errors force-pushed the rustdoc-rpit-cant-be-documented branch from 1b00892 to 72ef85d Compare April 4, 2023 14:08
@compiler-errors
Copy link
Member Author

@bors r=GuillaumeGomez

@bors
Copy link
Contributor

bors commented Apr 4, 2023

📌 Commit 72ef85d has been approved by GuillaumeGomez

It is now in the queue for this repository.

@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 Apr 4, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 4, 2023
…mpiler-errors

Rollup of 9 pull requests

Successful merges:

 - rust-lang#109723 (Pull some tuple variant fields out into their own struct)
 - rust-lang#109838 (Fix `non_exhaustive_omitted_patterns` lint span)
 - rust-lang#109901 (Enforce VarDebugInfo::Place in MIR validation.)
 - rust-lang#109913 (Doc-comment  `IndexVec::from_elem` and use it in a few more places)
 - rust-lang#109914 (Emit feature error for parenthesized generics in associated type bounds)
 - rust-lang#109919 (rustdoc: escape GAT args in more cases)
 - rust-lang#109937 (Don't collect return-position impl traits for documentation)
 - rust-lang#109938 (Move a const-prop-lint specific hack from mir interpret to const-prop-lint and make it fallible)
 - rust-lang#109940 (Add regression test for rust-lang#93911)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit d984671 into rust-lang:master Apr 4, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 4, 2023
@apiraino
Copy link
Contributor

apiraino commented Apr 6, 2023

Beta backport accepted 👍
@rustbot label beta-accepted

thanks @compiler-errors for the patch!

@rustbot rustbot added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Apr 6, 2023
@pietroalbini pietroalbini removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 16, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 16, 2023
…troalbini

[stable] Prepare Rust 1.69.0

Last minute backports:

*  rust-lang#109643
* rust-lang#110135
* rust-lang#109938
* rust-lang#109937
* rust-lang#109266

This PR also bumps the channel to stable, and backports the release notes from master.

r? `@ghost`
cc `@rust-lang/release`
@compiler-errors compiler-errors deleted the rustdoc-rpit-cant-be-documented branch August 11, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. 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.

7 participants