Skip to content

rustdoc: some fatal lexing errors are not buffered #56885

Closed
@euclio

Description

@euclio

Discovered while working on #56884.

For code like the following:

/// ```
/// "unterminated
/// ```
pub struct Foo;

rustdoc will fail to output any documentation for the struct and outputs a fatal error. I would expect the lexing error to be caught and emitted without stopping rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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