Skip to content

rustdoc: Called Option::unwrap() on a None value #17736

Closed

Description

Error:

task '<main>' failed at 'called `Option::unwrap()` on a `None` value', /private/tmp/rust-GCum/rust-
0.11.0/src/libcore/option.rs:265                                                                  
make: *** [all] Error 101

Test case:

extern crate rustdoc;

use rustdoc::html::markdown::Markdown;

fn main() {
    let markdown = "# title";
    let html = format!("{}", Markdown(markdown.as_slice()));
    println!("{}", html);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant 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