@@ -838,7 +838,6 @@ pub type BuiltinBounds = EnumSet<BuiltinBound>;
838838pub enum BuiltinBound {
839839 BoundStatic ,
840840 BoundSend ,
841- BoundFreeze ,
842841 BoundSized ,
843842 BoundPod ,
844843 BoundShare ,
@@ -852,7 +851,6 @@ pub fn AllBuiltinBounds() -> BuiltinBounds {
852851 let mut set = EnumSet :: empty ( ) ;
853852 set. add ( BoundStatic ) ;
854853 set. add ( BoundSend ) ;
855- set. add ( BoundFreeze ) ;
856854 set. add ( BoundSized ) ;
857855 set. add ( BoundShare ) ;
858856 set
@@ -1892,9 +1890,6 @@ def_type_content_sets!(
18921890 // that it neither reaches nor owns a managed pointer.
18931891 Nonsendable = 0b0000_0111__0000_0100__0000 ,
18941892
1895- // Things that prevent values from being considered freezable
1896- Nonfreezable = 0b0000_1000__0000_0000__0000 ,
1897-
18981893 // Things that prevent values from being considered 'static
18991894 Nonstatic = 0b0000_0010__0000_0000__0000 ,
19001895
@@ -1929,7 +1924,6 @@ impl TypeContents {
19291924 pub fn meets_bound ( & self , cx : & ctxt , bb : BuiltinBound ) -> bool {
19301925 match bb {
19311926 BoundStatic => self . is_static ( cx) ,
1932- BoundFreeze => self . is_freezable ( cx) ,
19331927 BoundSend => self . is_sendable ( cx) ,
19341928 BoundSized => self . is_sized ( cx) ,
19351929 BoundPod => self . is_pod ( cx) ,
@@ -1965,10 +1959,6 @@ impl TypeContents {
19651959 self . intersects ( TC :: OwnsOwned )
19661960 }
19671961
1968- pub fn is_freezable ( & self , _: & ctxt ) -> bool {
1969- !self . intersects ( TC :: Nonfreezable )
1970- }
1971-
19721962 pub fn is_sized ( & self , _: & ctxt ) -> bool {
19731963 !self . intersects ( TC :: Nonsized )
19741964 }
@@ -2073,10 +2063,6 @@ pub fn type_is_sendable(cx: &ctxt, t: ty::t) -> bool {
20732063 type_contents ( cx, t) . is_sendable ( cx)
20742064}
20752065
2076- pub fn type_is_freezable ( cx : & ctxt , t : ty:: t ) -> bool {
2077- type_contents ( cx, t) . is_freezable ( cx)
2078- }
2079-
20802066pub fn type_interior_is_unsafe ( cx : & ctxt , t : ty:: t ) -> bool {
20812067 type_contents ( cx, t) . interior_unsafe ( )
20822068}
@@ -2132,7 +2118,7 @@ pub fn type_contents(cx: &ctxt, ty: t) -> TypeContents {
21322118 cache. insert ( ty_id, TC :: None ) ;
21332119
21342120 let result = match get ( ty) . sty {
2135- // Scalar and unique types are sendable, freezable, and durable
2121+ // Scalar and unique types are sendable, and durable
21362122 ty_nil | ty_bot | ty_bool | ty_int( _) | ty_uint( _) | ty_float( _) |
21372123 ty_bare_fn( _) | ty:: ty_char => {
21382124 TC :: None
@@ -2270,9 +2256,7 @@ pub fn type_contents(cx: &ctxt, ty: t) -> TypeContents {
22702256 did : ast:: DefId ,
22712257 tc : TypeContents )
22722258 -> TypeContents {
2273- if Some ( did) == cx. lang_items . no_freeze_bound ( ) {
2274- tc | TC :: ReachesMutable
2275- } else if Some ( did) == cx. lang_items . no_send_bound ( ) {
2259+ if Some ( did) == cx. lang_items . no_send_bound ( ) {
22762260 tc | TC :: ReachesNonsendAnnot
22772261 } else if Some ( did) == cx. lang_items . managed_bound ( ) {
22782262 tc | TC :: Managed
@@ -2357,7 +2341,6 @@ pub fn type_contents(cx: &ctxt, ty: t) -> TypeContents {
23572341 tc = tc - match bound {
23582342 BoundStatic => TC :: Nonstatic ,
23592343 BoundSend => TC :: Nonsendable ,
2360- BoundFreeze => TC :: Nonfreezable ,
23612344 BoundSized => TC :: Nonsized ,
23622345 BoundPod => TC :: Nonpod ,
23632346 BoundShare => TC :: Nonsharable ,
0 commit comments