@@ -132,13 +132,13 @@ pub fn ident_str(name: &str, fmt: &IdentFormat) -> String {
132
132
}
133
133
134
134
pub fn sanitize_keyword ( sc : Cow < str > ) -> Cow < str > {
135
- const KEYWORDS : [ & str ; 55 ] = [
135
+ const KEYWORDS : [ & str ; 56 ] = [
136
136
"abstract" , "alignof" , "as" , "async" , "await" , "become" , "box" , "break" , "const" ,
137
137
"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" ,
142
142
] ;
143
143
if KEYWORDS . contains ( & sc. as_ref ( ) ) {
144
144
sc + "_"
0 commit comments