@@ -36,7 +36,7 @@ enum PermissionPriv {
3636 /// rejects: all child accesses (UB).
3737 Disabled ,
3838}
39- use PermissionPriv :: * ;
39+ use self :: PermissionPriv :: * ;
4040
4141impl PartialOrd for PermissionPriv {
4242 /// PermissionPriv is ordered by the reflexive transitive closure of
@@ -487,14 +487,14 @@ mod propagation_optimization_checks {
487487
488488 impl Exhaustive for AccessKind {
489489 fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
490- use AccessKind :: * ;
490+ use self :: AccessKind :: * ;
491491 Box :: new ( vec ! [ Read , Write ] . into_iter ( ) )
492492 }
493493 }
494494
495495 impl Exhaustive for AccessRelatedness {
496496 fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
497- use AccessRelatedness :: * ;
497+ use self :: AccessRelatedness :: * ;
498498 Box :: new ( vec ! [ This , StrictChildAccess , AncestorAccess , DistantAccess ] . into_iter ( ) )
499499 }
500500 }
@@ -503,7 +503,7 @@ mod propagation_optimization_checks {
503503 // For any kind of access, if we do it twice the second should be a no-op.
504504 // Even if the protector has disappeared.
505505 fn all_transitions_idempotent ( ) {
506- use transition:: * ;
506+ use self :: transition:: * ;
507507 for old in PermissionPriv :: exhaustive ( ) {
508508 for ( old_protected, new_protected) in <( bool , bool ) >:: exhaustive ( ) {
509509 // Protector can't appear out of nowhere: either the permission was
@@ -529,7 +529,7 @@ mod propagation_optimization_checks {
529529 #[ test]
530530 #[ rustfmt:: skip]
531531 fn foreign_read_is_noop_after_foreign_write ( ) {
532- use transition:: * ;
532+ use self :: transition:: * ;
533533 let old_access = AccessKind :: Write ;
534534 let new_access = AccessKind :: Read ;
535535 for old in PermissionPriv :: exhaustive ( ) {
0 commit comments