Skip to content

Commit 9e45e90

Browse files
Allow access to the underlying Results from a ResultsCursor
1 parent a88dc37 commit 9e45e90

File tree

1 file changed

+6
-1
lines changed
  • compiler/rustc_mir/src/dataflow/framework

1 file changed

+6
-1
lines changed

Diff for: compiler/rustc_mir/src/dataflow/framework/cursor.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ where
6868
self.body
6969
}
7070

71-
/// Returns the `Analysis` used to generate the underlying results.
71+
/// Returns the underlying `Results`.
72+
pub fn results(&self) -> &Results<'tcx, A> {
73+
&self.results.borrow()
74+
}
75+
76+
/// Returns the `Analysis` used to generate the underlying `Results`.
7277
pub fn analysis(&self) -> &A {
7378
&self.results.borrow().analysis
7479
}

0 commit comments

Comments
 (0)