]> git.lizzy.rs Git - rust.git/commitdiff
Rust upgrade to 2016-03-02 nightly
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 2 Mar 2016 19:54:20 +0000 (01:24 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Wed, 2 Mar 2016 19:54:20 +0000 (01:24 +0530)
src/types.rs

index 27c67e78e03a16cd611c3274bab2c3822919b383..cf90155b1fa19cfd87a1f65dce3c2a6d6c6ddc77 100644 (file)
@@ -432,7 +432,7 @@ fn check_fn(&mut self, cx: &LateContext, _: FnKind, decl: &FnDecl, _: &Block, _:
 
     fn check_struct_field(&mut self, cx: &LateContext, field: &StructField) {
         // enum variants are also struct fields now
-        check_type(cx, &field.node.ty);
+        check_type(cx, &field.ty);
     }
 
     fn check_item(&mut self, cx: &LateContext, item: &Item) {