File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7f45ba4744cec88bfac0b1672b13409aa5ebb42f
2
+ refs/heads/master: 37abcda42b5060eafd65bf9fe6a6861efa5f0c15
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -1686,6 +1686,13 @@ fn type_is_pod(cx: ctxt, ty: t) -> bool {
1686
1686
ty_constr( subt, _) { result = type_is_pod( cx, subt) ; }
1687
1687
ty_param( _, _) { result = false; }
1688
1688
ty_opaque_closure_ptr( _) { result = true; }
1689
+ ty_class( did, substs) {
1690
+ result = vec:: any( lookup_class_fields( cx, did) ) { |f|
1691
+ let fty = ty:: lookup_item_type( cx, f. id) ;
1692
+ let sty = subst( cx, substs, fty. ty) ;
1693
+ type_is_pod( cx, sty)
1694
+ } ;
1695
+ }
1689
1696
_ { cx. sess. bug( "unexpected type in type_is_pod") ; }
1690
1697
}
1691
1698
You can’t perform that action at this time.
0 commit comments