@@ -3490,12 +3490,10 @@ def_type_content_sets! {
34903490 // Things that are owned by the value (second and third nibbles):
34913491 OwnsOwned = 0b0000_0000__0000_0001__0000 ,
34923492 OwnsDtor = 0b0000_0000__0000_0010__0000 ,
3493- OwnsManaged /* see [1] below */ = 0b0000_0000__0000_0100__0000 ,
34943493 OwnsAll = 0b0000_0000__1111_1111__0000 ,
34953494
34963495 // Things that are reachable by the value in any way (fourth nibble):
34973496 ReachesBorrowed = 0b0000_0010__0000_0000__0000 ,
3498- // ReachesManaged /* see [1] below */ = 0b0000_0100__0000_0000__0000,
34993497 ReachesMutable = 0b0000_1000__0000_0000__0000 ,
35003498 ReachesFfiUnsafe = 0b0010_0000__0000_0000__0000 ,
35013499 ReachesAll = 0b0011_1111__0000_0000__0000 ,
@@ -3506,13 +3504,6 @@ def_type_content_sets! {
35063504 // Things that prevent values from being considered sized
35073505 Nonsized = 0b0000_0000__0000_0000__0001 ,
35083506
3509- // Bits to set when a managed value is encountered
3510- //
3511- // [1] Do not set the bits TC::OwnsManaged or
3512- // TC::ReachesManaged directly, instead reference
3513- // TC::Managed to set them both at once.
3514- Managed = 0b0000_0100__0000_0100__0000 ,
3515-
35163507 // All bits
35173508 All = 0b1111_1111__1111_1111__1111
35183509 }
@@ -3527,10 +3518,6 @@ impl TypeContents {
35273518 ( self . bits & tc. bits ) != 0
35283519 }
35293520
3530- pub fn owns_managed ( & self ) -> bool {
3531- self . intersects ( TC :: OwnsManaged )
3532- }
3533-
35343521 pub fn owns_owned ( & self ) -> bool {
35353522 self . intersects ( TC :: OwnsOwned )
35363523 }
@@ -3567,12 +3554,6 @@ impl TypeContents {
35673554 * self & TC :: ReachesAll )
35683555 }
35693556
3570- /// Includes only those bits that still apply when indirected through a managed pointer (`@`)
3571- pub fn managed_pointer ( & self ) -> TypeContents {
3572- TC :: Managed | (
3573- * self & TC :: ReachesAll )
3574- }
3575-
35763557 /// Includes only those bits that still apply when indirected through an unsafe pointer (`*`)
35773558 pub fn unsafe_pointer ( & self ) -> TypeContents {
35783559 * self & TC :: ReachesAll
@@ -3817,9 +3798,7 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
38173798
38183799 fn apply_lang_items ( cx : & ctxt , did : ast:: DefId , tc : TypeContents )
38193800 -> TypeContents {
3820- if Some ( did) == cx. lang_items . managed_bound ( ) {
3821- tc | TC :: Managed
3822- } else if Some ( did) == cx. lang_items . unsafe_cell_type ( ) {
3801+ if Some ( did) == cx. lang_items . unsafe_cell_type ( ) {
38233802 tc | TC :: InteriorUnsafe
38243803 } else {
38253804 tc
0 commit comments