Skip to content

Improve help for code blocks invalid attributes #71469

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

In #71408, we added a new lint to warn user in case of invalid (but close to existing) attributes. However, we say that "it might not be recognized as a rust block or...". This could be improved if we knew for sure that it is a rust block before actually throwing the message. The problem currently is that the order of the attributes actually matters, which makes it a bit trickier than one might expect.

Metadata

Metadata

Labels

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