File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -986,7 +986,7 @@ fn type_kind(cx: ctxt, ty: t) -> ast::kind {
986
986
let result = alt struct ( cx, ty) {
987
987
// Scalar and unique types are sendable
988
988
ty_nil. | ty_bot . | ty_bool . | ty_int . | ty_uint . | ty_float . |
989
- ty_machine ( _) | ty_char. | ty_native ( _) |
989
+ ty_machine ( _) | ty_char. | ty_native ( _) | ty_ptr ( _ ) |
990
990
ty_type. | ty_str. | ty_native_fn ( _, _) { ast:: kind_sendable }
991
991
// FIXME: obj is broken for now, since we aren't asserting
992
992
// anything about its fields.
@@ -1003,8 +1003,8 @@ fn type_kind(cx: ctxt, ty: t) -> ast::kind {
1003
1003
// Those with refcounts-to-inner raise pinned to shared,
1004
1004
// lower unique to shared. Therefore just set result to shared.
1005
1005
ty_box ( mt) { ast:: kind_copyable }
1006
- // Pointers and unique containers raise pinned to shared.
1007
- ty_ptr ( tm ) | ty_vec ( tm) | ty_uniq ( tm) { type_kind ( cx, tm. ty ) }
1006
+ // Boxes and unique pointers raise pinned to shared.
1007
+ ty_vec ( tm) | ty_uniq ( tm) { type_kind ( cx, tm. ty ) }
1008
1008
// Records lower to the lowest of their members.
1009
1009
ty_rec ( flds) {
1010
1010
let lowest = ast:: kind_sendable;
You can’t perform that action at this time.
0 commit comments