]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/moves.rs
auto merge of #9005 : alexcrichton/rust/rusty-log, r=brson
[rust.git] / src / librustc / middle / moves.rs
index 3b577cf9765335395a2929173ee35437c6d002fa..0d9091e4e44104fad75bd03c5162af7396c7a615 100644 (file)
@@ -429,7 +429,7 @@ pub fn use_expr(&self,
                     // specified and (2) have a type that
                     // moves-by-default:
                     let consume_with = with_fields.iter().any(|tf| {
-                        !fields.iter().any(|f| f.ident == tf.ident) &&
+                        !fields.iter().any(|f| f.ident.name == tf.ident.name) &&
                             ty::type_moves_by_default(self.tcx, tf.mt.ty)
                     });