Skip to content

Replace if-let and while-let with if let and while let #82205

Closed
@camelid

Description

@camelid

I kind of like the look of if-let and while-let, but @varkor and I think that
it's probably clearer and more consistent with other error messages as `if let` and `while let`.

This will have to be changed in the compiler's error messages and the language
documentation (in src/doc/). Run rg -F -e '-let' compiler/ src/doc to find
out what to change.

Originally discussed in #79747 (comment).

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language 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