about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorVeera <sveera.2001@gmail.com>2024-09-02 12:43:35 -0400
committerVeera <sveera.2001@gmail.com>2024-09-06 23:07:45 -0400
commit14e86eb7d93ebda57d2008ae37e88ac2a0604570 (patch)
tree695a72c946321afcf5c5a979b0c7268a461ad746 /compiler/rustc_codegen_llvm/src/errors.rs
parent265cd14cd46e740bf2ac0fa68f0eeafcd83984e0 (diff)
downloadrust-14e86eb7d93ebda57d2008ae37e88ac2a0604570.tar.gz
rust-14e86eb7d93ebda57d2008ae37e88ac2a0604570.zip
Add Suggestions for Misspelled Keywords
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