forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#109937 - compiler-errors:rustdoc-rpit-cant-…
…be-documented, r=GuillaumeGomez Don't collect return-position impl traits for documentation rust-lang#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) rust-lang#109931 r? `@GuillaumeGomez`
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// compile-flags: --document-private-items --crate-type=lib | ||
// edition: 2021 | ||
|
||
// Issue 109931 -- test against accidentally documenting the `impl Future` | ||
// that comes from an async fn desugaring. | ||
|
||
// Check that we don't document an unnamed opaque type | ||
// @!has async_fn_opaque_item/opaque..html | ||
|
||
// Checking there is only a "Functions" header and no "Opaque types". | ||
// @has async_fn_opaque_item/index.html | ||
// @count - '//*[@class="small-section-header"]' 1 | ||
// @has - '//*[@class="small-section-header"]' 'Functions' | ||
|
||
pub async fn test() {} |