@@ -3603,12 +3603,10 @@ def_type_content_sets! {
36033603 // Things that are owned by the value (second and third nibbles):
36043604 OwnsOwned = 0b0000_0000__0000_0001__0000 ,
36053605 OwnsDtor = 0b0000_0000__0000_0010__0000 ,
3606- OwnsManaged /* see [1] below */ = 0b0000_0000__0000_0100__0000 ,
36073606 OwnsAll = 0b0000_0000__1111_1111__0000 ,
36083607
36093608 // Things that are reachable by the value in any way (fourth nibble):
36103609 ReachesBorrowed = 0b0000_0010__0000_0000__0000 ,
3611- // ReachesManaged /* see [1] below */ = 0b0000_0100__0000_0000__0000,
36123610 ReachesMutable = 0b0000_1000__0000_0000__0000 ,
36133611 ReachesFfiUnsafe = 0b0010_0000__0000_0000__0000 ,
36143612 ReachesAll = 0b0011_1111__0000_0000__0000 ,
@@ -3619,13 +3617,6 @@ def_type_content_sets! {
36193617 // Things that prevent values from being considered sized
36203618 Nonsized = 0b0000_0000__0000_0000__0001 ,
36213619
3622- // Bits to set when a managed value is encountered
3623- //
3624- // [1] Do not set the bits TC::OwnsManaged or
3625- // TC::ReachesManaged directly, instead reference
3626- // TC::Managed to set them both at once.
3627- Managed = 0b0000_0100__0000_0100__0000 ,
3628-
36293620 // All bits
36303621 All = 0b1111_1111__1111_1111__1111
36313622 }
@@ -3640,10 +3631,6 @@ impl TypeContents {
36403631 ( self . bits & tc. bits ) != 0
36413632 }
36423633
3643- pub fn owns_managed ( & self ) -> bool {
3644- self . intersects ( TC :: OwnsManaged )
3645- }
3646-
36473634 pub fn owns_owned ( & self ) -> bool {
36483635 self . intersects ( TC :: OwnsOwned )
36493636 }
@@ -3680,12 +3667,6 @@ impl TypeContents {
36803667 * self & TC :: ReachesAll )
36813668 }
36823669
3683- /// Includes only those bits that still apply when indirected through a managed pointer (`@`)
3684- pub fn managed_pointer ( & self ) -> TypeContents {
3685- TC :: Managed | (
3686- * self & TC :: ReachesAll )
3687- }
3688-
36893670 /// Includes only those bits that still apply when indirected through an unsafe pointer (`*`)
36903671 pub fn unsafe_pointer ( & self ) -> TypeContents {
36913672 * self & TC :: ReachesAll
@@ -3930,9 +3911,7 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
39303911
39313912 fn apply_lang_items ( cx : & ctxt , did : ast:: DefId , tc : TypeContents )
39323913 -> TypeContents {
3933- if Some ( did) == cx. lang_items . managed_bound ( ) {
3934- tc | TC :: Managed
3935- } else if Some ( did) == cx. lang_items . unsafe_cell_type ( ) {
3914+ if Some ( did) == cx. lang_items . unsafe_cell_type ( ) {
39363915 tc | TC :: InteriorUnsafe
39373916 } else {
39383917 tc
0 commit comments