about summary refs log tree commit diff
path: root/src/libsyntax/visit.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-04-06 05:04:15 -0700
committerbors <bors@rust-lang.org>2016-04-06 05:04:15 -0700
commit943ec3bdfc9ba28e94b6d00a2b53fb2cd8b21655 (patch)
tree30b2cefa099bea233f2e257116c5ec99589aaa63 /src/libsyntax/visit.rs
parent772c600d4d6f39daa6d07d1a60ee0df3d3426978 (diff)
parent552af51ffb9f4ae08a7ee3bf27b0e8309006ca6f (diff)
downloadrust-943ec3bdfc9ba28e94b6d00a2b53fb2cd8b21655.tar.gz
rust-943ec3bdfc9ba28e94b6d00a2b53fb2cd8b21655.zip
Auto merge of #32767 - Manishearth:breakingbatch, r=eddyb
Batch up all plugin breaking changes

https://github.com/rust-lang/rust/pull/32688 already landed so we should get this into the same nightly.

cc https://github.com/rust-lang/rust/issues/31645
Diffstat (limited to 'src/libsyntax/visit.rs')
-rw-r--r--src/libsyntax/visit.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs
index 1251f9bfe13..839bbf4805d 100644
--- a/src/libsyntax/visit.rs
+++ b/src/libsyntax/visit.rs
@@ -619,9 +619,9 @@ pub fn walk_struct_def<'v, V: Visitor<'v>>(visitor: &mut V,
 
 pub fn walk_struct_field<'v, V: Visitor<'v>>(visitor: &mut V,
                                              struct_field: &'v StructField) {
-    walk_opt_ident(visitor, struct_field.span, struct_field.node.ident());
-    visitor.visit_ty(&struct_field.node.ty);
-    walk_list!(visitor, visit_attribute, &struct_field.node.attrs);
+    walk_opt_ident(visitor, struct_field.span, struct_field.ident);
+    visitor.visit_ty(&struct_field.ty);
+    walk_list!(visitor, visit_attribute, &struct_field.attrs);
 }
 
 pub fn walk_block<'v, V: Visitor<'v>>(visitor: &mut V, block: &'v Block) {