1
- use crate :: borrow_check:: borrow_set:: BorrowSet ;
2
- use crate :: borrow_check:: location:: LocationTable ;
3
- use crate :: borrow_check:: { JustWrite , WriteAndRead } ;
4
- use crate :: borrow_check:: { AccessDepth , Deep , Shallow } ;
5
- use crate :: borrow_check:: { ReadOrWrite , Activation , Read , Reservation , Write } ;
6
- use crate :: borrow_check:: { LocalMutationIsAllowed , MutateMode } ;
7
- use crate :: borrow_check:: ArtificialField ;
8
- use crate :: borrow_check:: { ReadKind , WriteKind } ;
9
- use crate :: borrow_check:: nll:: facts:: AllFacts ;
10
- use crate :: borrow_check:: path_utils:: * ;
11
- use crate :: dataflow:: indexes:: BorrowIndex ;
12
1
use rustc:: ty:: { self , TyCtxt } ;
13
2
use rustc:: mir:: visit:: Visitor ;
14
3
use rustc:: mir:: { BasicBlock , Location , Body , Place , ReadOnlyBodyAndCache , Rvalue } ;
@@ -17,6 +6,17 @@ use rustc::mir::TerminatorKind;
17
6
use rustc:: mir:: { Operand , BorrowKind } ;
18
7
use rustc_data_structures:: graph:: dominators:: Dominators ;
19
8
9
+ use crate :: dataflow:: indexes:: BorrowIndex ;
10
+
11
+ use crate :: borrow_check:: {
12
+ borrow_set:: BorrowSet ,
13
+ location:: LocationTable ,
14
+ facts:: AllFacts ,
15
+ path_utils:: * ,
16
+ JustWrite , WriteAndRead , AccessDepth , Deep , Shallow , ReadOrWrite , Activation , Read ,
17
+ Reservation , Write , LocalMutationIsAllowed , MutateMode , ArtificialField , ReadKind , WriteKind ,
18
+ } ;
19
+
20
20
pub ( super ) fn generate_invalidates < ' tcx > (
21
21
tcx : TyCtxt < ' tcx > ,
22
22
param_env : ty:: ParamEnv < ' tcx > ,
0 commit comments