Skip to content

Commit 76c1e04

Browse files
committed
ident->name
1 parent dbf4e19 commit 76c1e04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/typeck/check/_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,13 @@ pub fn check_struct_pat_fields(pcx: &pat_ctxt,
296296
// Index the class fields.
297297
let mut field_map = HashMap::new();
298298
for (i, class_field) in class_fields.iter().enumerate() {
299-
field_map.insert(class_field.ident, i);
299+
field_map.insert(class_field.ident.name, i);
300300
}
301301
302302
// Typecheck each field.
303303
let mut found_fields = HashSet::new();
304304
for field in fields.iter() {
305-
match field_map.find(&field.ident) {
305+
match field_map.find(&field.ident.name) {
306306
Some(&index) => {
307307
let class_field = class_fields[index];
308308
let field_type = ty::lookup_field_type(tcx,

0 commit comments

Comments
 (0)