@@ -198,10 +198,6 @@ declare_features! (
198
198
// #23121. Array patterns have some hazards yet.
199
199
( active, slice_patterns, "1.0.0" , Some ( 23121 ) ) ,
200
200
201
- // Allows the definition of associated constants in `trait` or `impl`
202
- // blocks.
203
- ( active, associated_consts, "1.0.0" , Some ( 29646 ) ) ,
204
-
205
201
// Allows the definition of `const fn` functions.
206
202
( active, const_fn, "1.2.0" , Some ( 24111 ) ) ,
207
203
@@ -446,6 +442,9 @@ declare_features! (
446
442
( accepted, closure_to_fn_coercion, "1.19.0" , Some ( 39817 ) ) ,
447
443
// Allows attributes on struct literal fields.
448
444
( accepted, struct_field_attributes, "1.20.0" , Some ( 38814 ) ) ,
445
+ // Allows the definition of associated constants in `trait` or `impl`
446
+ // blocks.
447
+ ( accepted, associated_consts, "1.20.0" , Some ( 29646 ) ) ,
449
448
) ;
450
449
451
450
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -1405,11 +1404,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1405
1404
1406
1405
fn visit_trait_item ( & mut self , ti : & ' a ast:: TraitItem ) {
1407
1406
match ti. node {
1408
- ast:: TraitItemKind :: Const ( ..) => {
1409
- gate_feature_post ! ( & self , associated_consts,
1410
- ti. span,
1411
- "associated constants are experimental" )
1412
- }
1413
1407
ast:: TraitItemKind :: Method ( ref sig, ref block) => {
1414
1408
if block. is_none ( ) {
1415
1409
self . check_abi ( sig. abi , ti. span ) ;
@@ -1435,11 +1429,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1435
1429
}
1436
1430
1437
1431
match ii. node {
1438
- ast:: ImplItemKind :: Const ( ..) => {
1439
- gate_feature_post ! ( & self , associated_consts,
1440
- ii. span,
1441
- "associated constants are experimental" )
1442
- }
1443
1432
ast:: ImplItemKind :: Method ( ref sig, _) => {
1444
1433
if sig. constness . node == ast:: Constness :: Const {
1445
1434
gate_feature_post ! ( & self , const_fn, ii. span, "const fn is unstable" ) ;
0 commit comments