@@ -37,18 +37,9 @@ impl<'tcx, A> Results<'tcx, A>
3737where
3838 A : Analysis < ' tcx > ,
3939{
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.
4242 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 > (
5243 & ' mir mut self ,
5344 body : & ' mir mir:: Body < ' tcx > ,
5445 ) -> ResultsCursor < ' mir , ' tcx , A > {
9586pub ( super ) fn write_graphviz_results < ' tcx , A > (
9687 tcx : TyCtxt < ' tcx > ,
9788 body : & mir:: Body < ' tcx > ,
98- results : & Results < ' tcx , A > ,
89+ results : & mut Results < ' tcx , A > ,
9990 pass_name : Option < & ' static str > ,
10091) -> std:: io:: Result < ( ) >
10192where
0 commit comments