Skip to content

Detect println!("{x}", x) #105225

Closed
Closed
@estebank

Description

When encountering println!("{x}", x) the user either meant println!("{x}") or println!("{x}", x=x). The later is only likely in <=2018 editions, while the former is what they actually likely wanted. We should suggest it.

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`D-terseDiagnostics: An error or lint that doesn't give enough information about the problem at hand.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priorityT-compilerRelevant to the compiler 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