When suggesting an typo type, do not display whole type body. #70206
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
For example, consider this snippet (playground):
Currently rustc errors:
I would like it to highlight only the type name:
Related issue on clippy: rust-lang/rust-clippy#5284
The text was updated successfully, but these errors were encountered: