Skip to content

non-local-definitions lint probably shouldn't fire in doc comments #124534

Closed
@TheBlueMatt

Description

@TheBlueMatt

Latest beta is generating non-local-definitions warnings in our doctests because we have some docs that describe #[macro_export]s, which of course end up inside a doctest function generating the lint.

cc tracking issue #120363

Metadata

Metadata

Assignees

Labels

C-discussionCategory: Discussion or questions that doesn't represent real issues.L-non_local_definitionsLint: non_local_definitionsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.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