Skip to content

rustdoc silently fails parsing some doctests when using a playground URL #63016

Closed

Description

@ollie27

For example running rustdoc --markdown-playground-url=https://play.rust-lang.org/ foo.md on:

# test

```
# #![feature(async_await)]
use std::future::Future;
use std::pin::Pin;
fn foo_recursive(n: usize) -> Pin<Box<dyn Future<Output = ()>>> {
    Box::pin(async move {
        if n > 0 {
            foo_recursive(n - 1).await;
        }
    })
}
```

results in a 0 byte file and no error messages but a none zero exit code. It should succeed. This has the same root cause as #59313 and #59557 but it only occurs when using a playground URL.

Activity

  1. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    C-bugCategory: This is a bug.
    on Jul 26, 2019
  2. self-assigned this
    on Jul 26, 2019
  3. added and removed on Oct 25, 2019
  4. added 2 commits that reference this issue on Jan 5, 2020
    e7d69e8
    3548d98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions