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:
parent
9f2f6906ff
commit
cecef131a2
4 changed files with 4 additions and 18 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue