@@ -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
@@ -483,14 +483,14 @@ mod propagation_optimization_checks {
483483
484484 impl Exhaustive for AccessKind {
485485 fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
486- use AccessKind :: * ;
486+ use self :: AccessKind :: * ;
487487 Box :: new ( vec ! [ Read , Write ] . into_iter ( ) )
488488 }
489489 }
490490
491491 impl Exhaustive for AccessRelatedness {
492492 fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
493- use AccessRelatedness :: * ;
493+ use self :: AccessRelatedness :: * ;
494494 Box :: new ( vec ! [ This , StrictChildAccess , AncestorAccess , DistantAccess ] . into_iter ( ) )
495495 }
496496 }
@@ -499,7 +499,7 @@ mod propagation_optimization_checks {
499499 // For any kind of access, if we do it twice the second should be a no-op.
500500 // Even if the protector has disappeared.
501501 fn all_transitions_idempotent ( ) {
502- use transition:: * ;
502+ use self :: transition:: * ;
503503 for old in PermissionPriv :: exhaustive ( ) {
504504 for ( old_protected, new_protected) in <( bool , bool ) >:: exhaustive ( ) {
505505 // Protector can't appear out of nowhere: either the permission was
@@ -525,7 +525,7 @@ mod propagation_optimization_checks {
525525 #[ test]
526526 #[ rustfmt:: skip]
527527 fn foreign_read_is_noop_after_foreign_write ( ) {
528- use transition:: * ;
528+ use self :: transition:: * ;
529529 let old_access = AccessKind :: Write ;
530530 let new_access = AccessKind :: Read ;
531531 for old in PermissionPriv :: exhaustive ( ) {
0 commit comments