@@ -516,6 +516,7 @@ const struct c_common_resword c_common_reswords[] =
516
516
{ " constinit" , RID_CONSTINIT, D_CXXONLY | D_CXX20 | D_CXXWARN },
517
517
{ " const_cast" , RID_CONSTCAST, D_CXXONLY | D_CXXWARN },
518
518
{ " continue" , RID_CONTINUE, 0 },
519
+ { " contract_assert" , RID_CONTASSERT, D_CXXONLY | D_CXXWARN }, // removed D_CXX20 in order for contracts to work out of the box
519
520
{ " decltype" , RID_DECLTYPE, D_CXXONLY | D_CXX11 | D_CXXWARN },
520
521
{ " default" , RID_DEFAULT, 0 },
521
522
{ " delete" , RID_DELETE, D_CXXONLY | D_CXXWARN },
@@ -598,10 +599,6 @@ const struct c_common_resword c_common_reswords[] =
598
599
{ " co_yield" , RID_CO_YIELD, D_CXX_COROUTINES_FLAGS | D_CXXWARN },
599
600
{ " co_return" , RID_CO_RETURN, D_CXX_COROUTINES_FLAGS | D_CXXWARN },
600
601
601
- /* Contracts-related keywords */
602
- { " contract_assert" , RID_CONTASSERT, D_CXXONLY | D_CXXWARN }, // removed D_CXX20 in order for contracts to work out of the box
603
- { " inherited" , RID_INHERITED, D_CXXONLY | D_CXXWARN },
604
-
605
602
/* These Objective-C keywords are recognized only immediately after
606
603
an '@'. */
607
604
{ " compatibility_alias" , RID_AT_ALIAS, D_OBJC },
0 commit comments