rust/tests/ui/parser/misspelled-keywords
Veera 14e86eb7d9 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.
2024-09-06 23:07:45 -04:00
..
assoc-type.rs
assoc-type.stderr
async-move.rs
async-move.stderr
const-fn.rs
const-fn.stderr
const-generics.rs
const-generics.stderr
const.rs
const.stderr
for-loop.rs
for-loop.stderr
hrdt.rs
hrdt.stderr
impl-block.rs
impl-block.stderr
impl-return.rs
impl-return.stderr
impl-trait-for.rs
impl-trait-for.stderr
impl-trait.rs
impl-trait.stderr
let-else.rs
let-else.stderr
let-mut.rs
let-mut.stderr
let.rs
let.stderr
match.rs
match.stderr
mod.rs
mod.stderr
pub-fn.rs
pub-fn.stderr
ref.rs
ref.stderr
return.rs
return.stderr
static-mut.rs
static-mut.stderr
static.rs
static.stderr
struct.rs
struct.stderr
unsafe-fn.rs
unsafe-fn.stderr
use.rs
use.stderr
where-clause.rs
where-clause.stderr
while-loop.rs
while-loop.stderr
while-without-identifiers.rs
while-without-identifiers.stderr