about summary refs log tree commit diff
path: root/src/libsyntax/feature_gate
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-08 00:08:09 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-12 18:05:05 +0100
commitabf2e7aa959a4611bc2f607bc7e9200b8b81c089 (patch)
tree74750f2a8b65450bc7b091921681ce63684da9ef /src/libsyntax/feature_gate
parent35e9e097e7c7e977f36795c0febceb327e1fa33f (diff)
downloadrust-abf2e7aa959a4611bc2f607bc7e9200b8b81c089.tar.gz
rust-abf2e7aa959a4611bc2f607bc7e9200b8b81c089.zip
Remove `ast::{Impl,Trait}{Item,ItemKind}`.
Diffstat (limited to 'src/libsyntax/feature_gate')
-rw-r--r--src/libsyntax/feature_gate/check.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/feature_gate/check.rs b/src/libsyntax/feature_gate/check.rs
index c27fcb6a68e..fcce9d4e95f 100644
--- a/src/libsyntax/feature_gate/check.rs
+++ b/src/libsyntax/feature_gate/check.rs
@@ -571,9 +571,9 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
         visit::walk_assoc_ty_constraint(self, constraint)
     }
 
-    fn visit_trait_item(&mut self, ti: &'a ast::TraitItem) {
+    fn visit_trait_item(&mut self, ti: &'a ast::AssocItem) {
         match ti.kind {
-            ast::TraitItemKind::Method(ref sig, ref block) => {
+            ast::AssocItemKind::Method(ref sig, ref block) => {
                 if block.is_none() {
                     self.check_extern(sig.header.ext);
                 }
@@ -581,7 +581,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
                     gate_feature_post!(&self, const_fn, ti.span, "const fn is unstable");
                 }
             }
-            ast::TraitItemKind::TyAlias(_, ref default) => {
+            ast::AssocItemKind::TyAlias(_, ref default) => {
                 if let Some(_) = default {
                     gate_feature_post!(
                         &self, associated_type_defaults, ti.span,