@@ -83,6 +83,8 @@ pub enum TokenType {
8383 KwCatch ,
8484 KwConst ,
8585 KwContinue ,
86+ KwContractEnsures ,
87+ KwContractRequires ,
8688 KwCrate ,
8789 KwDefault ,
8890 KwDyn ,
@@ -108,8 +110,6 @@ pub enum TokenType {
108110 KwRef ,
109111 KwReturn ,
110112 KwReuse ,
111- KwRustcContractEnsures ,
112- KwRustcContractRequires ,
113113 KwSafe ,
114114 KwSelfUpper ,
115115 KwStatic ,
@@ -219,6 +219,8 @@ impl TokenType {
219219 KwCatch ,
220220 KwConst ,
221221 KwContinue ,
222+ KwContractEnsures ,
223+ KwContractRequires ,
222224 KwCrate ,
223225 KwDefault ,
224226 KwDyn ,
@@ -244,8 +246,6 @@ impl TokenType {
244246 KwRef ,
245247 KwReturn ,
246248 KwReuse ,
247- KwRustcContractEnsures ,
248- KwRustcContractRequires ,
249249 KwSafe ,
250250 KwSelfUpper ,
251251 KwStatic ,
@@ -293,6 +293,8 @@ impl TokenType {
293293 TokenType :: KwCatch => Some ( kw:: Catch ) ,
294294 TokenType :: KwConst => Some ( kw:: Const ) ,
295295 TokenType :: KwContinue => Some ( kw:: Continue ) ,
296+ TokenType :: KwContractEnsures => Some ( kw:: ContractEnsures ) ,
297+ TokenType :: KwContractRequires => Some ( kw:: ContractRequires ) ,
296298 TokenType :: KwCrate => Some ( kw:: Crate ) ,
297299 TokenType :: KwDefault => Some ( kw:: Default ) ,
298300 TokenType :: KwDyn => Some ( kw:: Dyn ) ,
@@ -318,8 +320,6 @@ impl TokenType {
318320 TokenType :: KwRef => Some ( kw:: Ref ) ,
319321 TokenType :: KwReturn => Some ( kw:: Return ) ,
320322 TokenType :: KwReuse => Some ( kw:: Reuse ) ,
321- TokenType :: KwRustcContractEnsures => Some ( kw:: RustcContractEnsures ) ,
322- TokenType :: KwRustcContractRequires => Some ( kw:: RustcContractRequires ) ,
323323 TokenType :: KwSafe => Some ( kw:: Safe ) ,
324324 TokenType :: KwSelfUpper => Some ( kw:: SelfUpper ) ,
325325 TokenType :: KwStatic => Some ( kw:: Static ) ,
@@ -525,6 +525,8 @@ macro_rules! exp {
525525 ( Catch ) => { exp!( @kw, Catch , KwCatch ) } ;
526526 ( Const ) => { exp!( @kw, Const , KwConst ) } ;
527527 ( Continue ) => { exp!( @kw, Continue , KwContinue ) } ;
528+ ( ContractEnsures ) => { exp!( @kw, ContractEnsures , KwContractEnsures ) } ;
529+ ( ContractRequires ) => { exp!( @kw, ContractRequires , KwContractRequires ) } ;
528530 ( Crate ) => { exp!( @kw, Crate , KwCrate ) } ;
529531 ( Default ) => { exp!( @kw, Default , KwDefault ) } ;
530532 ( Dyn ) => { exp!( @kw, Dyn , KwDyn ) } ;
@@ -550,8 +552,6 @@ macro_rules! exp {
550552 ( Ref ) => { exp!( @kw, Ref , KwRef ) } ;
551553 ( Return ) => { exp!( @kw, Return , KwReturn ) } ;
552554 ( Reuse ) => { exp!( @kw, Reuse , KwReuse ) } ;
553- ( RustcContractEnsures ) => { exp!( @kw, RustcContractEnsures , KwRustcContractEnsures ) } ;
554- ( RustcContractRequires ) => { exp!( @kw, RustcContractRequires , KwRustcContractRequires ) } ;
555555 ( Safe ) => { exp!( @kw, Safe , KwSafe ) } ;
556556 ( SelfUpper ) => { exp!( @kw, SelfUpper , KwSelfUpper ) } ;
557557 ( Static ) => { exp!( @kw, Static , KwStatic ) } ;
0 commit comments