@@ -37,18 +37,9 @@ impl<'tcx, A> Results<'tcx, A>
37
37
where
38
38
A : Analysis < ' tcx > ,
39
39
{
40
- /// Creates a `ResultsCursor` that can inspect these `Results`. Immutably borrows the `Results`,
41
- /// which is appropriate when the `Results` is used outside the cursor.
40
+ /// Creates a `ResultsCursor` that mutably borrows the `Results`, which is appropriate when the
41
+ /// `Results` is also used outside the cursor.
42
42
pub fn as_results_cursor < ' mir > (
43
- & ' mir self ,
44
- body : & ' mir mir:: Body < ' tcx > ,
45
- ) -> ResultsCursor < ' mir , ' tcx , A > {
46
- ResultsCursor :: new ( body, ResultsHandle :: Borrowed ( self ) )
47
- }
48
-
49
- /// Creates a `ResultsCursor` that can mutate these `Results`. Mutably borrows the `Results`,
50
- /// which is appropriate when the `Results` is used outside the cursor.
51
- pub fn as_results_cursor_mut < ' mir > (
52
43
& ' mir mut self ,
53
44
body : & ' mir mir:: Body < ' tcx > ,
54
45
) -> ResultsCursor < ' mir , ' tcx , A > {
95
86
pub ( super ) fn write_graphviz_results < ' tcx , A > (
96
87
tcx : TyCtxt < ' tcx > ,
97
88
body : & mir:: Body < ' tcx > ,
98
- results : & Results < ' tcx , A > ,
89
+ results : & mut Results < ' tcx , A > ,
99
90
pass_name : Option < & ' static str > ,
100
91
) -> std:: io:: Result < ( ) >
101
92
where
0 commit comments