@@ -8,8 +8,7 @@ use matches::matches;
88use rustc:: hir:: intravisit:: FnKind ;
99use rustc:: hir:: * ;
1010use rustc:: lint:: { LateContext , LateLintPass , LintArray , LintPass } ;
11- use rustc:: middle:: expr_use_visitor as euv;
12- use rustc:: middle:: mem_categorization as mc;
11+ use rustc_typeck:: expr_use_visitor as euv;
1312use rustc:: traits;
1413use rustc:: ty:: { self , RegionKind , TypeFoldable } ;
1514use rustc:: { declare_lint_pass, declare_tool_lint} ;
@@ -326,7 +325,7 @@ struct MovedVariablesCtxt {
326325}
327326
328327impl MovedVariablesCtxt {
329- fn move_common ( & mut self , cmt : & mc :: Place < ' _ > ) {
328+ fn move_common ( & mut self , cmt : & euv :: Place < ' _ > ) {
330329 let cmt = unwrap_downcast_or_interior ( cmt) ;
331330
332331 if let mc:: Categorization :: Local ( vid) = cmt. cat {
@@ -336,18 +335,18 @@ impl MovedVariablesCtxt {
336335}
337336
338337impl < ' tcx > euv:: Delegate < ' tcx > for MovedVariablesCtxt {
339- fn consume ( & mut self , cmt : & mc :: Place < ' tcx > , mode : euv:: ConsumeMode ) {
338+ fn consume ( & mut self , cmt : & euv :: Place < ' tcx > , mode : euv:: ConsumeMode ) {
340339 if let euv:: ConsumeMode :: Move = mode {
341340 self . move_common ( cmt) ;
342341 }
343342 }
344343
345- fn borrow ( & mut self , _: & mc :: Place < ' tcx > , _: ty:: BorrowKind ) { }
344+ fn borrow ( & mut self , _: & euv :: Place < ' tcx > , _: ty:: BorrowKind ) { }
346345
347- fn mutate ( & mut self , _: & mc :: Place < ' tcx > ) { }
346+ fn mutate ( & mut self , _: & euv :: Place < ' tcx > ) { }
348347}
349348
350- fn unwrap_downcast_or_interior < ' a , ' tcx > ( mut cmt : & ' a mc :: Place < ' tcx > ) -> mc :: Place < ' tcx > {
349+ fn unwrap_downcast_or_interior < ' a , ' tcx > ( mut cmt : & ' a euv :: Place < ' tcx > ) -> euv :: Place < ' tcx > {
351350 loop {
352351 match cmt. cat {
353352 mc:: Categorization :: Downcast ( ref c, _) | mc:: Categorization :: Interior ( ref c, _) => {
0 commit comments