Upgrade Rust to rustc 1.5.0-nightly (b2f379cdc 2015-09-23)

Ident was removed in many HIR structures in favor of Name.
This commit is contained in:
Pietro Monteiro 2015-09-23 17:30:39 -07:00
parent 4838e8a3b4
commit b2c66d1a0e
9 changed files with 32 additions and 32 deletions

View file

@ -106,9 +106,9 @@ fn check_pat(cx: &LateContext, pat: &Pat, init: &Option<&Expr>, span: Span,
if let Some(ref init_struct) = *init {
if let ExprStruct(_, ref efields, _) = init_struct.node {
for field in pfields {
let ident = field.node.ident;
let name = field.node.name;
let efield = efields.iter()
.find(|ref f| f.ident.node == ident)
.find(|ref f| f.name.node == name)
.map(|f| &*f.expr);
check_pat(cx, &field.node.pat, &efield, span, bindings);
}