Skip to content

Commit 2892147

Browse files
committed
---
yaml --- r: 28578 b: refs/heads/try c: 9b58369 h: refs/heads/master v: v3
1 parent f0dd973 commit 2892147

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: e653d493fb8df74bd0583c4f32c882a590135ef1
5+
refs/heads/try: 9b58369f6ba8e01f1965e8aa39e8c7fc25f861cc
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/rustc/middle/ty.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,11 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
19501950
// Trait instances are (for now) like shared boxes, basically
19511951
ty_trait(_, _, _) => kind_safe_for_default_mode() | kind_owned(),
19521952
1953-
// Region pointers are copyable but NOT owned nor sendable
1953+
// Static region pointers are copyable and sendable, but not owned
1954+
ty_rptr(re_static, mt) =>
1955+
kind_safe_for_default_mode() | mutable_type_kind(cx, mt),
1956+
1957+
// General region pointers are copyable but NOT owned nor sendable
19541958
ty_rptr(_, _) => kind_safe_for_default_mode(),
19551959
19561960
// Unique boxes and vecs have the kind of their contained type,
@@ -1972,6 +1976,9 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
19721976
ty_evec(tm, vstore_box) => {
19731977
remove_send(kind_safe_for_default_mode() | mutable_type_kind(cx, tm))
19741978
}
1979+
ty_evec(tm, vstore_slice(re_static)) => {
1980+
kind_safe_for_default_mode() | mutable_type_kind(cx, tm)
1981+
}
19751982
ty_evec(tm, vstore_slice(_)) => {
19761983
remove_owned_send(kind_safe_for_default_mode() |
19771984
mutable_type_kind(cx, tm))
@@ -1984,6 +1991,9 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
19841991
ty_estr(vstore_box) => {
19851992
kind_safe_for_default_mode() | kind_const() | kind_owned()
19861993
}
1994+
ty_estr(vstore_slice(re_static)) => {
1995+
kind_safe_for_default_mode() | kind_send_copy() | kind_const()
1996+
}
19871997
ty_estr(vstore_slice(_)) => {
19881998
kind_safe_for_default_mode() | kind_const()
19891999
}

0 commit comments

Comments
 (0)