1
Fork 0

Use Box instead of Rc for polonius_output.

Refcounting isn't needed.
This commit is contained in:
Nicholas Nethercote 2024-10-04 14:02:53 +10:00
parent 89e84c053d
commit 3d7fe9e7dd
4 changed files with 9 additions and 7 deletions

View file

@ -586,7 +586,7 @@ struct MirBorrowckCtxt<'a, 'infcx, 'tcx> {
next_region_name: RefCell<usize>,
/// Results of Polonius analysis.
polonius_output: Option<Rc<PoloniusOutput>>,
polonius_output: Option<Box<PoloniusOutput>>,
diags: diags::BorrowckDiags<'infcx, 'tcx>,
move_errors: Vec<MoveError<'tcx>>,