File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
branches/try/src/rustc/middle Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: c6d33c3d37c0e9f8db88b7402da45506d7f44d33
5
+ refs/heads/try: a7e0eb35819bb9171b60f2854753f7784da6a087
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -1475,11 +1475,14 @@ fn is_instantiable(cx: ctxt, r_ty: t) -> bool {
1475
1475
1476
1476
ty_box( mt) |
1477
1477
ty_uniq( mt) |
1478
- ty_ptr( mt) |
1479
1478
ty_rptr( _, mt) {
1480
1479
be type_requires( cx, seen, r_ty, mt. ty) ;
1481
1480
}
1482
1481
1482
+ ty_ptr( mt) {
1483
+ false // unsafe ptrs can always be NULL
1484
+ }
1485
+
1483
1486
ty_rec( fields) {
1484
1487
vec:: any( fields) { |field|
1485
1488
type_requires( cx, seen, r_ty, field. mt. ty)
You can’t perform that action at this time.
0 commit comments