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 ;
121use rustc:: ty:: { self , TyCtxt } ;
132use rustc:: mir:: visit:: Visitor ;
143use rustc:: mir:: { BasicBlock , Location , Body , Place , ReadOnlyBodyAndCache , Rvalue } ;
@@ -17,6 +6,17 @@ use rustc::mir::TerminatorKind;
176use rustc:: mir:: { Operand , BorrowKind } ;
187use rustc_data_structures:: graph:: dominators:: Dominators ;
198
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+
2020pub ( super ) fn generate_invalidates < ' tcx > (
2121 tcx : TyCtxt < ' tcx > ,
2222 param_env : ty:: ParamEnv < ' tcx > ,
0 commit comments