about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-07 14:21:22 +0300
committerGitHub <noreply@github.com>2024-09-07 14:21:22 +0300
commitd6a42983e57766546db519dcd8859ba75d4eef62 (patch)
treeb0ce1117f9a8c84608a1f3c91a28ea6d0d372e75 /compiler/rustc_codegen_llvm/src/errors.rs
parent6dd07e4e26411d34f9102d685f2634d47a9429d2 (diff)
parent14e86eb7d93ebda57d2008ae37e88ac2a0604570 (diff)
downloadrust-d6a42983e57766546db519dcd8859ba75d4eef62.tar.gz
rust-d6a42983e57766546db519dcd8859ba75d4eef62.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions