Inline & delete Ty::new_unit
, since it's just a field access
This commit is contained in:
parent
f92d49b7fe
commit
698d7a031e
19 changed files with 50 additions and 56 deletions
|
@ -1260,7 +1260,7 @@ fn create_coroutine_drop_shim<'tcx>(
|
|||
}
|
||||
|
||||
// Replace the return variable
|
||||
body.local_decls[RETURN_PLACE] = LocalDecl::with_source_info(Ty::new_unit(tcx), source_info);
|
||||
body.local_decls[RETURN_PLACE] = LocalDecl::with_source_info(tcx.types.unit, source_info);
|
||||
|
||||
make_coroutine_state_argument_indirect(tcx, &mut body);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue