@@ -67,7 +67,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
67
67
( "import_shadowing" , Active ) ,
68
68
( "advanced_slice_patterns" , Active ) ,
69
69
( "tuple_indexing" , Accepted ) ,
70
- ( "associated_types" , Active ) ,
70
+ ( "associated_types" , Accepted ) ,
71
71
( "visible_private_types" , Active ) ,
72
72
( "slicing_syntax" , Active ) ,
73
73
@@ -294,7 +294,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
294
294
}
295
295
}
296
296
297
- ast:: ItemImpl ( _, polarity, _, _, _, ref items ) => {
297
+ ast:: ItemImpl ( _, polarity, _, _, _, _ ) => {
298
298
match polarity {
299
299
ast:: ImplPolarity :: Negative => {
300
300
self . gate_feature ( "optin_builtin_traits" ,
@@ -313,18 +313,6 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
313
313
many unsafe patterns and may be \
314
314
removed in the future") ;
315
315
}
316
-
317
- for item in items. iter ( ) {
318
- match * item {
319
- ast:: MethodImplItem ( _) => { }
320
- ast:: TypeImplItem ( ref typedef) => {
321
- self . gate_feature ( "associated_types" ,
322
- typedef. span ,
323
- "associated types are \
324
- experimental")
325
- }
326
- }
327
- }
328
316
}
329
317
330
318
_ => { }
@@ -333,17 +321,6 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
333
321
visit:: walk_item ( self , i) ;
334
322
}
335
323
336
- fn visit_trait_item ( & mut self , trait_item : & ast:: TraitItem ) {
337
- match * trait_item {
338
- ast:: RequiredMethod ( _) | ast:: ProvidedMethod ( _) => { }
339
- ast:: TypeTraitItem ( ref ti) => {
340
- self . gate_feature ( "associated_types" ,
341
- ti. ty_param . span ,
342
- "associated types are experimental" )
343
- }
344
- }
345
- }
346
-
347
324
fn visit_foreign_item ( & mut self , i : & ast:: ForeignItem ) {
348
325
if attr:: contains_name ( i. attrs [ ] , "linkage" ) {
349
326
self . gate_feature ( "linkage" , i. span ,
0 commit comments