Skip to content

Document how/when to use diagnostic items #1188

Closed
@xFrednet

Description

@xFrednet

Rustc has introduced diagnostic items to avoid using hard-coded paths to check for std and core types. However, there seems to be a lack of documentation regarding them. Here is a rough overview of what should be documented:

  • How to find the diagnostic item for type XYZ
  • How to add a new diagnostic item
    • Define diagnostic item naming conventions.
  • How to use diagnostic items

See rust-lang/rust-clippy#5393 for more context and related discussions/links etc.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions