@@ -36,7 +36,7 @@ enum PermissionPriv {
36
36
/// rejects: all child accesses (UB).
37
37
Disabled ,
38
38
}
39
- use PermissionPriv :: * ;
39
+ use self :: PermissionPriv :: * ;
40
40
41
41
impl PartialOrd for PermissionPriv {
42
42
/// PermissionPriv is ordered by the reflexive transitive closure of
@@ -483,14 +483,14 @@ mod propagation_optimization_checks {
483
483
484
484
impl Exhaustive for AccessKind {
485
485
fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
486
- use AccessKind :: * ;
486
+ use self :: AccessKind :: * ;
487
487
Box :: new ( vec ! [ Read , Write ] . into_iter ( ) )
488
488
}
489
489
}
490
490
491
491
impl Exhaustive for AccessRelatedness {
492
492
fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
493
- use AccessRelatedness :: * ;
493
+ use self :: AccessRelatedness :: * ;
494
494
Box :: new ( vec ! [ This , StrictChildAccess , AncestorAccess , DistantAccess ] . into_iter ( ) )
495
495
}
496
496
}
@@ -499,7 +499,7 @@ mod propagation_optimization_checks {
499
499
// For any kind of access, if we do it twice the second should be a no-op.
500
500
// Even if the protector has disappeared.
501
501
fn all_transitions_idempotent ( ) {
502
- use transition:: * ;
502
+ use self :: transition:: * ;
503
503
for old in PermissionPriv :: exhaustive ( ) {
504
504
for ( old_protected, new_protected) in <( bool , bool ) >:: exhaustive ( ) {
505
505
// Protector can't appear out of nowhere: either the permission was
@@ -525,7 +525,7 @@ mod propagation_optimization_checks {
525
525
#[ test]
526
526
#[ rustfmt:: skip]
527
527
fn foreign_read_is_noop_after_foreign_write ( ) {
528
- use transition:: * ;
528
+ use self :: transition:: * ;
529
529
let old_access = AccessKind :: Write ;
530
530
let new_access = AccessKind :: Read ;
531
531
for old in PermissionPriv :: exhaustive ( ) {
0 commit comments