]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/feature_gate.rs
Only retain external static symbols across LTO
[rust.git] / src / libsyntax / feature_gate.rs
index b04f6b066397a7b8eda8d8f7e1296e86642dbb35..9bf1dd49db572ceb0f00f62f606571f604aeb18e 100644 (file)
@@ -1071,17 +1071,17 @@ fn visit_fn(&mut self,
 
     fn visit_trait_item(&mut self, ti: &'v ast::TraitItem) {
         match ti.node {
-            ast::ConstTraitItem(..) => {
+            ast::TraitItemKind::Const(..) => {
                 self.gate_feature("associated_consts",
                                   ti.span,
                                   "associated constants are experimental")
             }
-            ast::MethodTraitItem(ref sig, _) => {
+            ast::TraitItemKind::Method(ref sig, _) => {
                 if sig.constness == ast::Constness::Const {
                     self.gate_feature("const_fn", ti.span, "const fn is unstable");
                 }
             }
-            ast::TypeTraitItem(_, Some(_)) => {
+            ast::TraitItemKind::Type(_, Some(_)) => {
                 self.gate_feature("associated_type_defaults", ti.span,
                                   "associated type defaults are unstable");
             }