@@ -132,13 +132,13 @@ pub fn ident_str(name: &str, fmt: &IdentFormat) -> String {
132132}
133133
134134pub fn sanitize_keyword ( sc : Cow < str > ) -> Cow < str > {
135- const KEYWORDS : [ & str ; 55 ] = [
135+ const KEYWORDS : [ & str ; 56 ] = [
136136 "abstract" , "alignof" , "as" , "async" , "await" , "become" , "box" , "break" , "const" ,
137137 "continue" , "crate" , "do" , "dyn" , "else" , "enum" , "extern" , "false" , "final" , "fn" , "for" ,
138- "if" , "impl" , "in" , "let" , "loop" , "macro" , "match" , "mod" , "move" , "mut" , "offsetof ",
139- "override" , "priv" , "proc" , "pub" , "pure" , "ref" , "return" , "self" , "sizeof" , "static ",
140- "struct" , "super" , "trait" , "true" , "try" , "type" , "typeof" , "unsafe" , "unsized" , "use ",
141- "virtual" , "where" , "while" , "yield" ,
138+ "gen" , " if", "impl" , "in" , "let" , "loop" , "macro" , "match" , "mod" , "move" , "mut" ,
139+ "offsetof" , " override", "priv" , "proc" , "pub" , "pure" , "ref" , "return" , "self" , "sizeof" ,
140+ "static" , " struct", "super" , "trait" , "true" , "try" , "type" , "typeof" , "unsafe" , "unsized" ,
141+ "use" , " virtual", "where" , "while" , "yield" ,
142142 ] ;
143143 if KEYWORDS . contains ( & sc. as_ref ( ) ) {
144144 sc + "_"
0 commit comments