diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-08 00:08:09 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-12 18:05:05 +0100 |
| commit | abf2e7aa959a4611bc2f607bc7e9200b8b81c089 (patch) | |
| tree | 74750f2a8b65450bc7b091921681ce63684da9ef /src/libsyntax/feature_gate | |
| parent | 35e9e097e7c7e977f36795c0febceb327e1fa33f (diff) | |
| download | rust-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.rs | 6 |
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, |
