Skip to content

Commit b85cba8

Browse files
committed
Use typedefs to clarify some impls.
And insert some whitespace.
1 parent 1bcbb7c commit b85cba8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

compiler/rustc_mir_dataflow/src/framework/cursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ where
104104
}
105105
}
106106

107-
impl<'res, 'mir, 'tcx, A> ResultsCursor<'mir, 'tcx, A, ResultsCloned<'res, 'tcx, A>>
107+
impl<'res, 'mir, 'tcx, A> ResultsClonedCursor<'res, 'mir, 'tcx, A>
108108
where
109109
A: Analysis<'tcx> + CloneAnalysis,
110110
{

compiler/rustc_mir_dataflow/src/framework/engine.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ where
8080
visit_results(body, blocks.map(|(bb, _)| bb), self, vis)
8181
}
8282
}
83+
8384
impl<'tcx, A> Results<'tcx, A>
8485
where
8586
A: Analysis<'tcx>,
@@ -92,6 +93,7 @@ where
9293
ResultsCursor::new(body, self)
9394
}
9495
}
96+
9597
impl<'tcx, A> Results<'tcx, A>
9698
where
9799
A: Analysis<'tcx> + CloneAnalysis,
@@ -113,7 +115,8 @@ where
113115
self.clone_analysis().into_results_cursor(body)
114116
}
115117
}
116-
impl<'res, 'tcx, A> Results<'tcx, A, &'res EntrySets<'tcx, A>>
118+
119+
impl<'res, 'tcx, A> ResultsCloned<'res, 'tcx, A>
117120
where
118121
A: Analysis<'tcx> + CloneAnalysis,
119122
{

0 commit comments

Comments
 (0)