rust/compiler/rustc_span
Michael Goulet d6a42983e5
Rollup merge of #129899 - veera-sivarajan:fix-97793-pr-final, r=chenyukang
Add Suggestions for Misspelled Keywords

Fixes #97793

This PR detects misspelled keywords using two heuristics:

1. Lowercasing the unexpected identifier.
2. Using edit distance to find a keyword similar to the unexpected identifier.

However, it does not detect each and every misspelled keyword to
minimize false positives and ambiguities. More details about the
implementation can be found in the comments.
2024-09-07 14:21:22 +03:00
..
src Rollup merge of #129899 - veera-sivarajan:fix-97793-pr-final, r=chenyukang 2024-09-07 14:21:22 +03:00
Cargo.toml rustc_span: derivative -> derive-where 2024-07-12 21:37:43 +03:00