@@ -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
@@ -487,14 +487,14 @@ mod propagation_optimization_checks {
487
487
488
488
impl Exhaustive for AccessKind {
489
489
fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
490
- use AccessKind :: * ;
490
+ use self :: AccessKind :: * ;
491
491
Box :: new ( vec ! [ Read , Write ] . into_iter ( ) )
492
492
}
493
493
}
494
494
495
495
impl Exhaustive for AccessRelatedness {
496
496
fn exhaustive ( ) -> Box < dyn Iterator < Item = Self > > {
497
- use AccessRelatedness :: * ;
497
+ use self :: AccessRelatedness :: * ;
498
498
Box :: new ( vec ! [ This , StrictChildAccess , AncestorAccess , DistantAccess ] . into_iter ( ) )
499
499
}
500
500
}
@@ -503,7 +503,7 @@ mod propagation_optimization_checks {
503
503
// For any kind of access, if we do it twice the second should be a no-op.
504
504
// Even if the protector has disappeared.
505
505
fn all_transitions_idempotent ( ) {
506
- use transition:: * ;
506
+ use self :: transition:: * ;
507
507
for old in PermissionPriv :: exhaustive ( ) {
508
508
for ( old_protected, new_protected) in <( bool , bool ) >:: exhaustive ( ) {
509
509
// Protector can't appear out of nowhere: either the permission was
@@ -529,7 +529,7 @@ mod propagation_optimization_checks {
529
529
#[ test]
530
530
#[ rustfmt:: skip]
531
531
fn foreign_read_is_noop_after_foreign_write ( ) {
532
- use transition:: * ;
532
+ use self :: transition:: * ;
533
533
let old_access = AccessKind :: Write ;
534
534
let new_access = AccessKind :: Read ;
535
535
for old in PermissionPriv :: exhaustive ( ) {
0 commit comments