@@ -246,11 +246,11 @@ impl ReferenceProcessor {
246246 // For references in the table, the reference needs to be valid, and if the referent is not null, it should be valid as well
247247 sync. references . iter ( ) . for_each ( |reff| {
248248 debug_assert ! ( !reff. is_null( ) ) ;
249- debug_assert ! ( reff. is_in_any_space( ) ) ;
249+ debug_assert ! ( reff. is_in_any_space:: < VM > ( ) ) ;
250250 let referent = VM :: VMReferenceGlue :: get_referent ( * reff) ;
251251 if !VM :: VMReferenceGlue :: is_referent_cleared ( referent) {
252252 debug_assert ! (
253- referent. is_in_any_space( ) ,
253+ referent. is_in_any_space:: < VM > ( ) ,
254254 "Referent {:?} (of reference {:?}) is not in any space" ,
255255 referent,
256256 reff
@@ -260,7 +260,7 @@ impl ReferenceProcessor {
260260 // For references that will be enqueue'd, the referent needs to be valid, and the referent needs to be null.
261261 sync. enqueued_references . iter ( ) . for_each ( |reff| {
262262 debug_assert ! ( !reff. is_null( ) ) ;
263- debug_assert ! ( reff. is_in_any_space( ) ) ;
263+ debug_assert ! ( reff. is_in_any_space:: < VM > ( ) ) ;
264264 let referent = VM :: VMReferenceGlue :: get_referent ( * reff) ;
265265 debug_assert ! ( VM :: VMReferenceGlue :: is_referent_cleared( referent) ) ;
266266 } ) ;
@@ -397,7 +397,7 @@ impl ReferenceProcessor {
397397
398398 trace ! ( "Processing reference: {:?}" , reference) ;
399399
400- if !reference. is_live ( ) {
400+ if !reference. is_live :: < E :: VM > ( ) {
401401 // Reference is currently unreachable but may get reachable by the
402402 // following trace. We postpone the decision.
403403 continue ;
@@ -433,7 +433,7 @@ impl ReferenceProcessor {
433433
434434 // If the reference is dead, we're done with it. Let it (and
435435 // possibly its referent) be garbage-collected.
436- if !reference. is_live ( ) {
436+ if !reference. is_live :: < E :: VM > ( ) {
437437 <E :: VM as VMBinding >:: VMReferenceGlue :: clear_referent ( reference) ;
438438 trace ! ( " UNREACHABLE reference: {}" , reference) ;
439439 trace ! ( " (unreachable)" ) ;
@@ -456,11 +456,11 @@ impl ReferenceProcessor {
456456
457457 trace ! ( " => {}" , new_reference) ;
458458
459- if old_referent. is_live ( ) {
459+ if old_referent. is_live :: < E :: VM > ( ) {
460460 // Referent is still reachable in a way that is as strong as
461461 // or stronger than the current reference level.
462462 let new_referent = Self :: get_forwarded_referent ( trace, old_referent) ;
463- debug_assert ! ( new_referent. is_live( ) ) ;
463+ debug_assert ! ( new_referent. is_live:: < E :: VM > ( ) ) ;
464464 trace ! ( " ~> {}" , new_referent) ;
465465
466466 // The reference object stays on the waiting list, and the
0 commit comments