Skip to content

Broken unstable lint examples in rustc book #135298

Closed
@pitaj

Description

@pitaj

The examples for the following unstable lints are currently broken, leading to the auto-generated outputs only displaying an "unknown lint" warning:

The examples in the lint doc-comments need to be updated to include enabling the respective feature for each lint. See the must_not_suspend lint docs for a correct example.

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler 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