@@ -104,7 +104,6 @@ pub struct CopiedUpvar {
104
104
#[ deriving( Clone , PartialEq , Eq , Hash ) ]
105
105
pub enum PointerKind {
106
106
OwnedPtr ,
107
- GcPtr ,
108
107
BorrowedPtr ( ty:: BorrowKind , ty:: Region ) ,
109
108
Implicit ( ty:: BorrowKind , ty:: Region ) , // Implicit deref of a borrowed ptr.
110
109
UnsafePtr ( ast:: Mutability )
@@ -191,10 +190,6 @@ pub fn opt_deref_kind(t: ty::t) -> Option<deref_kind> {
191
190
Some ( deref_ptr ( BorrowedPtr ( ty:: ImmBorrow , r) ) )
192
191
}
193
192
194
- ty:: ty_box( ..) => {
195
- Some ( deref_ptr ( GcPtr ) )
196
- }
197
-
198
193
ty:: ty_ptr( ref mt) => {
199
194
Some ( deref_ptr ( UnsafePtr ( mt. mutbl ) ) )
200
195
}
@@ -302,9 +297,6 @@ impl MutabilityCategory {
302
297
BorrowedPtr ( borrow_kind, _) | Implicit ( borrow_kind, _) => {
303
298
MutabilityCategory :: from_borrow_kind ( borrow_kind)
304
299
}
305
- GcPtr => {
306
- McImmutable
307
- }
308
300
UnsafePtr ( m) => {
309
301
MutabilityCategory :: from_mutbl ( m)
310
302
}
@@ -1200,7 +1192,7 @@ impl<'t,'tcx,TYPER:Typer<'tcx>> MemCategorizationContext<'t,TYPER> {
1200
1192
Implicit ( ..) => {
1201
1193
"dereference (dereference is implicit, due to indexing)" . to_string ( )
1202
1194
}
1203
- OwnedPtr | GcPtr => format ! ( "dereference of `{}`" , ptr_sigil( pk) ) ,
1195
+ OwnedPtr => format ! ( "dereference of `{}`" , ptr_sigil( pk) ) ,
1204
1196
_ => format ! ( "dereference of `{}`-pointer" , ptr_sigil( pk) )
1205
1197
}
1206
1198
}
@@ -1237,7 +1229,6 @@ pub enum InteriorSafety {
1237
1229
}
1238
1230
1239
1231
pub enum AliasableReason {
1240
- AliasableManaged ,
1241
1232
AliasableBorrowed ,
1242
1233
AliasableOther ,
1243
1234
AliasableStatic ( InteriorSafety ) ,
@@ -1256,7 +1247,6 @@ impl cmt_ {
1256
1247
cat_copied_upvar( ..) |
1257
1248
cat_local( ..) |
1258
1249
cat_deref( _, _, UnsafePtr ( ..) ) |
1259
- cat_deref( _, _, GcPtr ( ..) ) |
1260
1250
cat_deref( _, _, BorrowedPtr ( ..) ) |
1261
1251
cat_deref( _, _, Implicit ( ..) ) |
1262
1252
cat_upvar( ..) => {
@@ -1320,10 +1310,6 @@ impl cmt_ {
1320
1310
}
1321
1311
}
1322
1312
1323
- cat_deref( _, _, GcPtr ) => {
1324
- Some ( AliasableManaged )
1325
- }
1326
-
1327
1313
cat_deref( _, _, BorrowedPtr ( ty:: ImmBorrow , _) ) |
1328
1314
cat_deref( _, _, Implicit ( ty:: ImmBorrow , _) ) => {
1329
1315
Some ( AliasableBorrowed )
@@ -1371,7 +1357,6 @@ impl Repr for categorization {
1371
1357
pub fn ptr_sigil ( ptr : PointerKind ) -> & ' static str {
1372
1358
match ptr {
1373
1359
OwnedPtr => "Box" ,
1374
- GcPtr => "Gc" ,
1375
1360
BorrowedPtr ( ty:: ImmBorrow , _) |
1376
1361
Implicit ( ty:: ImmBorrow , _) => "&" ,
1377
1362
BorrowedPtr ( ty:: MutBorrow , _) |
0 commit comments