File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/try/src/librustc/middle/typeck/check Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e6de6b7da8ee88bf84b0e217900051334be08da
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5
- refs/heads/try: 6ed788451d105e2364cacb46419a139f11cea75c
5
+ refs/heads/try: cb9963bc0dac5936de49b91c600bcd2c41a583d2
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -296,13 +296,13 @@ pub fn check_struct_pat_fields(pcx: &pat_ctxt,
296
296
// Index the class fields.
297
297
let mut field_map = HashMap::new();
298
298
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);
300
300
}
301
301
302
302
// Typecheck each field.
303
303
let mut found_fields = HashSet::new();
304
304
for field in fields.iter() {
305
- match field_map.find(&field.ident) {
305
+ match field_map.find(&field.ident.name ) {
306
306
Some(&index) => {
307
307
let class_field = class_fields[index];
308
308
let field_type = ty::lookup_field_type(tcx,
You can’t perform that action at this time.
0 commit comments