Skip to content

Exporting a nonexistent item does not cause compilation to fail #2938

Closed
@bstrie

Description

@bstrie

Here's the revised test case from #1908. It used to just crash with a poor error message, but now it doesn't fail at all despite the lack of anything named output_styl.

export output_format;
export output_styl;
export config;

#[doc = "The type of document to output"]
enum output_format {
    #[doc = "Markdown"]
    markdown,
    #[doc = "HTML, via markdown and pandoc"]
    pandoc_html
}

#[doc = "How to organize the output"]
enum output_style {
    #[doc = "All in a single document"]
    one_doc,
    #[doc = "Each module in its own document"]
    doc_per_mod
}

#[doc = "The configuration for this rustdoc session"]
type config = {
    output_dir: &str,
    output_format: output_format,
    output_style: output_style,
    pandoc_cmd: option<&str>
};

Compiled with rustc --lib 1908.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions