1
Fork 0

Simplify ResultsHandle.

The `Borrowed` variant is no longer used. This commit removes it, along
with the `as_results_cursor` method that produces it, and renames
`as_results_cursor_mut` as `as_results_cursor`.
This commit is contained in:
Nicholas Nethercote 2024-12-02 10:58:27 +11:00
parent 9f2f6906ff
commit cecef131a2
4 changed files with 4 additions and 18 deletions

View file

@ -51,7 +51,7 @@ where
style: OutputStyle,
) -> Self {
let reachable = mir::traversal::reachable_as_bitset(body);
Formatter { cursor: results.as_results_cursor_mut(body).into(), style, reachable }
Formatter { cursor: results.as_results_cursor(body).into(), style, reachable }
}
fn body(&self) -> &'mir Body<'tcx> {