@@ -3490,12 +3490,10 @@ def_type_content_sets! {
3490
3490
// Things that are owned by the value (second and third nibbles):
3491
3491
OwnsOwned = 0b0000_0000__0000_0001__0000 ,
3492
3492
OwnsDtor = 0b0000_0000__0000_0010__0000 ,
3493
- OwnsManaged /* see [1] below */ = 0b0000_0000__0000_0100__0000 ,
3494
3493
OwnsAll = 0b0000_0000__1111_1111__0000 ,
3495
3494
3496
3495
// Things that are reachable by the value in any way (fourth nibble):
3497
3496
ReachesBorrowed = 0b0000_0010__0000_0000__0000 ,
3498
- // ReachesManaged /* see [1] below */ = 0b0000_0100__0000_0000__0000,
3499
3497
ReachesMutable = 0b0000_1000__0000_0000__0000 ,
3500
3498
ReachesFfiUnsafe = 0b0010_0000__0000_0000__0000 ,
3501
3499
ReachesAll = 0b0011_1111__0000_0000__0000 ,
@@ -3506,13 +3504,6 @@ def_type_content_sets! {
3506
3504
// Things that prevent values from being considered sized
3507
3505
Nonsized = 0b0000_0000__0000_0000__0001 ,
3508
3506
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
-
3516
3507
// All bits
3517
3508
All = 0b1111_1111__1111_1111__1111
3518
3509
}
@@ -3527,10 +3518,6 @@ impl TypeContents {
3527
3518
( self . bits & tc. bits ) != 0
3528
3519
}
3529
3520
3530
- pub fn owns_managed ( & self ) -> bool {
3531
- self . intersects ( TC :: OwnsManaged )
3532
- }
3533
-
3534
3521
pub fn owns_owned ( & self ) -> bool {
3535
3522
self . intersects ( TC :: OwnsOwned )
3536
3523
}
@@ -3567,12 +3554,6 @@ impl TypeContents {
3567
3554
* self & TC :: ReachesAll )
3568
3555
}
3569
3556
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
-
3576
3557
/// Includes only those bits that still apply when indirected through an unsafe pointer (`*`)
3577
3558
pub fn unsafe_pointer ( & self ) -> TypeContents {
3578
3559
* self & TC :: ReachesAll
@@ -3817,9 +3798,7 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
3817
3798
3818
3799
fn apply_lang_items ( cx : & ctxt , did : ast:: DefId , tc : TypeContents )
3819
3800
-> 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 ( ) {
3823
3802
tc | TC :: InteriorUnsafe
3824
3803
} else {
3825
3804
tc
0 commit comments