const RUST_KEYWORDS: &[&str] = &[
"abstract", "as", "async", "await", "become", "box", "break", "const", "continue", "crate",
"do", "dyn", "else", "enum", "extern", "false", "final", "fn", "for", "gen", "if", "impl",
"in", "let", "loop", "macro", "match", "mod", "move", "mut", "override", "priv", "pub", "ref",
"return", "self", "Self", "static", "struct", "super", "trait", "true", "try", "type",
"typeof", "unsafe", "unsized", "use", "virtual", "where", "while", "yield",
];
const RAW_IDENTIFIER_EXCLUSIONS: &[&str] = &["", "_", "crate", "self", "Self", "super"];
#[must_use]
pub fn rust_keyword(spelling: &str) -> bool {
RUST_KEYWORDS.contains(&spelling)
}
pub(crate) fn raw_identifier_is_reserved(name: &str) -> bool {
RAW_IDENTIFIER_EXCLUSIONS.contains(&name)
}