diff options
| author | ouz-a <oguz.agcayazi@gmail.com> | 2022-07-24 14:40:43 +0300 | 
|---|---|---|
| committer | ouz-a <oguz.agcayazi@gmail.com> | 2022-07-24 14:40:43 +0300 | 
| commit | 09134982e53830a4268a95b57fda2b9e39c1908b (patch) | |
| tree | 3f33c1658c58a8b5302e0be5f424ce9cdf4e8211 /compiler/rustc_mir_dataflow/src/move_paths/mod.rs | |
| parent | b4c3a2af7ba0199e99de8ef64a3b112824efebb6 (diff) | |
| download | rust-09134982e53830a4268a95b57fda2b9e39c1908b.tar.gz rust-09134982e53830a4268a95b57fda2b9e39c1908b.zip | |
optimize un_derefer
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/move_paths/mod.rs')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/move_paths/mod.rs | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/compiler/rustc_mir_dataflow/src/move_paths/mod.rs b/compiler/rustc_mir_dataflow/src/move_paths/mod.rs index 1af789b4885..b6050a1ccaa 100644 --- a/compiler/rustc_mir_dataflow/src/move_paths/mod.rs +++ b/compiler/rustc_mir_dataflow/src/move_paths/mod.rs @@ -386,7 +386,10 @@ impl<'tcx> MoveData<'tcx> { body: &Body<'tcx>, tcx: TyCtxt<'tcx>, param_env: ParamEnv<'tcx>, - ) -> Result<Self, (Self, Vec<(Place<'tcx>, MoveError<'tcx>)>)> { + ) -> Result< + (FxHashMap<rustc_middle::mir::Local, rustc_middle::mir::Place<'tcx>>, MoveData<'tcx>), + (MoveData<'tcx>, Vec<(Place<'tcx>, MoveError<'tcx>)>), + > { builder::gather_moves(body, tcx, param_env) } | 
