rustc_parse::parser::diagnostics

Function find_similar_kw

source
fn find_similar_kw(lookup: Ident, candidates: &[Symbol]) -> Option<MisspelledKw>
Expand description

Checks if the given lookup identifier is similar to any keyword symbol in candidates.