Skip to content

Rustdoc no longer processes text, no_run code blocks  #41167

Closed
@Aaron1011

Description

@Aaron1011

With Rust 1.16.0, the following snippet is parsed correctly by rustdoc:

//! ```text, no_run
//! 'aa'
//! ```

However, this appears to be broken on the latest nightly (tested on 53f4bc311 2017-04-07). The code block appears to be interpreted as rust code, giving this error:

error: character literal may only contain one codepoint: 'aa'
 --> <stdin>:1:1
  |
1 | 'aa'
  | ^^^^

Metadata

Metadata

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsP-highHigh priorityregression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions