Skip to content

rustc lint listing code snippets don't have any indentation #79748

Closed

Description

It used to (on stable and beta) look like this:

image

But on nightly it looks like:

image

The source code for the snippet is:

    /// ### Example
    ///
    /// ```rust
    /// if let _ = 123 {
    ///     println!("always runs!");
    /// }
    /// ```

This is true for other code snippets in the lint listing, though the rest of the book (and other books) don't have the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

A-docsArea: documentation for any part of the project, including the compiler, standard library, and toolsA-lintArea: Lints (warnings about flaws in source code) such as unused_mut.P-highHigh priorityregression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions