Skip to content

Commit

Permalink
Rollup merge of #76724 - ecstatic-morse:dataflow-pass-names, r=lcnr
Browse files Browse the repository at this point in the history
Allow a unique name to be assigned to dataflow graphviz output

Previously, if the same analysis were invoked multiple times in a single compilation session, the graphviz output for later runs would overwrite that of previous runs. Allow callers to add a unique identifier to each run so this can be avoided.
  • Loading branch information
jonas-schievink committed Sep 25, 2020
2 parents 141b9c2 + 72b402e commit a8c6073
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/redundant_clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {

let maybe_storage_live_result = MaybeStorageLive
.into_engine(cx.tcx, mir, def_id.to_def_id())
.pass_name("redundant_clone")
.iterate_to_fixpoint()
.into_results_cursor(mir);
let mut possible_borrower = {
Expand Down

0 comments on commit a8c6073

Please sign in to comment.