Skip to content

no_run doctests no longer verify lints #31576

Closed
@alexcrichton

Description

@alexcrichton

For code like this:

#![doc(test(attr(deny(warnings))))]

/// ```no_run
/// let a = 3;
/// ```
pub fn foo() {}

The stable/beta rustdoc will generate an error, while the nightly rustdoc will pass silently. This block looks suspicious perhaps?

r? cc @nrc

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-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