1
Fork 0

Remove mir::LocalDecl::internal.

This commit is contained in:
Camille GILLOT 2023-10-04 17:50:03 +00:00
parent 65519f5fc0
commit e63d19c4dd
38 changed files with 106 additions and 57 deletions

View file

@ -271,7 +271,7 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
let tcx = self.tcx;
let patch = &mut self.patch;
debug!("create_drop_flag({:?})", self.body.span);
self.drop_flags[index].get_or_insert_with(|| patch.new_internal(tcx.types.bool, span));
self.drop_flags[index].get_or_insert_with(|| patch.new_temp(tcx.types.bool, span));
}
fn drop_flag(&mut self, index: MovePathIndex) -> Option<Place<'tcx>> {