Skip to content

Commit 101ddcc

Browse files
committed
---
yaml --- r: 232387 b: refs/heads/try c: 2b2a113 h: refs/heads/master i: 232385: c889506 232383: 3ef442d v: v3
1 parent a70ed91 commit 101ddcc

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: a7c9a15e0ee41e535bedf469f2784be38cadd945
4+
refs/heads/try: 2b2a11363819176a37e70b996405ce226f533c7b
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_typeck/check/wf.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,8 @@ impl<'ccx, 'tcx> CheckTypeWellFormedVisitor<'ccx, 'tcx> {
178178
}
179179
}
180180

181-
let field_tys: Vec<Ty> =
182-
variants.iter().flat_map(|v| v.fields.iter().map(|f| f.ty)).collect();
183-
184-
for &field_ty in &field_tys {
185-
fcx.register_wf_obligation(field_ty, item.span, traits::MiscObligation);
181+
for field in variants.iter().flat_map(|v| v.fields.iter()) {
182+
fcx.register_old_wf_obligation(field.ty, field.span, traits::MiscObligation);
186183
}
187184
});
188185
}

0 commit comments

Comments
 (0)