@@ -3603,12 +3603,10 @@ def_type_content_sets! {
3603
3603
// Things that are owned by the value (second and third nibbles):
3604
3604
OwnsOwned = 0b0000_0000__0000_0001__0000 ,
3605
3605
OwnsDtor = 0b0000_0000__0000_0010__0000 ,
3606
- OwnsManaged /* see [1] below */ = 0b0000_0000__0000_0100__0000 ,
3607
3606
OwnsAll = 0b0000_0000__1111_1111__0000 ,
3608
3607
3609
3608
// Things that are reachable by the value in any way (fourth nibble):
3610
3609
ReachesBorrowed = 0b0000_0010__0000_0000__0000 ,
3611
- // ReachesManaged /* see [1] below */ = 0b0000_0100__0000_0000__0000,
3612
3610
ReachesMutable = 0b0000_1000__0000_0000__0000 ,
3613
3611
ReachesFfiUnsafe = 0b0010_0000__0000_0000__0000 ,
3614
3612
ReachesAll = 0b0011_1111__0000_0000__0000 ,
@@ -3619,13 +3617,6 @@ def_type_content_sets! {
3619
3617
// Things that prevent values from being considered sized
3620
3618
Nonsized = 0b0000_0000__0000_0000__0001 ,
3621
3619
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
-
3629
3620
// All bits
3630
3621
All = 0b1111_1111__1111_1111__1111
3631
3622
}
@@ -3640,10 +3631,6 @@ impl TypeContents {
3640
3631
( self . bits & tc. bits ) != 0
3641
3632
}
3642
3633
3643
- pub fn owns_managed ( & self ) -> bool {
3644
- self . intersects ( TC :: OwnsManaged )
3645
- }
3646
-
3647
3634
pub fn owns_owned ( & self ) -> bool {
3648
3635
self . intersects ( TC :: OwnsOwned )
3649
3636
}
@@ -3680,12 +3667,6 @@ impl TypeContents {
3680
3667
* self & TC :: ReachesAll )
3681
3668
}
3682
3669
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
-
3689
3670
/// Includes only those bits that still apply when indirected through an unsafe pointer (`*`)
3690
3671
pub fn unsafe_pointer ( & self ) -> TypeContents {
3691
3672
* self & TC :: ReachesAll
@@ -3930,9 +3911,7 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
3930
3911
3931
3912
fn apply_lang_items ( cx : & ctxt , did : ast:: DefId , tc : TypeContents )
3932
3913
-> 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 ( ) {
3936
3915
tc | TC :: InteriorUnsafe
3937
3916
} else {
3938
3917
tc
0 commit comments