Skip to content

Commit 649278e

Browse files
authored
Rollup merge of #160995 - lqd:readabilly, r=jackh726
Tiny readability cleanups for initialization dataflow analyses While reading over borrowck liveness, I noticed this handful of small things in the dataflow initialization module. They're easier to see per-commit but: - each analysis code was hard to read and locate, as the impls were scattered over the file, so this regroups them - some of these didn't follow the pattern others did - we were asserting things we didn't use, and which were already guaranteed by the function we were calling r? @jackh726
2 parents 813d288 + 0d287e8 commit 649278e

2 files changed

Lines changed: 212 additions & 210 deletions

File tree

‎compiler/rustc_mir_dataflow/src/drop_flag_effects.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ pub fn on_all_children_bits<'tcx, F>(
8787
on_all_children_bits(move_data, move_path_index, &mut each_child);
8888
}
8989

90+
/// Calls `callback` for each child move path of the function's arguments. Note the move paths'
91+
/// `DropFlagState` argument to the callback will always be `DropFlagState::Present`.
9092
pub fn drop_flag_effects_for_function_entry<'tcx, F>(
9193
body: &Body<'tcx>,
9294
move_data: &MoveData<'tcx>,

0 commit comments

Comments
 (0)