Skip to content

rustdoc segfault for invalid code block boundaries #21218

@aidanhs

Description

@aidanhs
$ cat seg.md 
% x

```rust

```a
$ rustdoc seg.md 
<stdin>:2:1: 2:2 error: unknown start of token: `
<stdin>:2 ```a
          ^
thread '<unnamed>' panicked at 'Box<Any>', /home/aidanhs/Desktop/rust/rust/src/libsyntax/diagnostic.rs:93
Segmentation fault (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.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