Suggest joining two identifiers if the grammer is invalid and they would form a keyword #89640
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9adebfa3cae4c99b1fa5c0c9f25e154a
The current output is:
Ideally the output should look like:
Sometimes you accidentally insert whitespace inside a keyword, and might not notice it immediately. This minimal case is pretty obvious, but it might not actually always be that obvious if a lot is going on.
This could even be extended to cover all names in scope.
The text was updated successfully, but these errors were encountered: