Auto merge of #123194 - matthiaskrgr:rollup-vhdc8hw, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #123176 (Normalize the result of `Fields::ty_with_args`) - #123186 (copy any file from stage0/lib to stage0-sysroot/lib) - #123187 (Forward port 1.77.1 release notes) - #123188 (compiler: fix few unused_peekable and needless_pass_by_ref_mut clippy lints) r? `@ghost` `@rustbot` modify labels: rollup
This commit is contained in:
commit
399fa2f6e4
45 changed files with 224 additions and 125 deletions
|
@ -1226,7 +1226,7 @@ fn create_coroutine_drop_shim<'tcx>(
|
|||
tcx: TyCtxt<'tcx>,
|
||||
transform: &TransformVisitor<'tcx>,
|
||||
coroutine_ty: Ty<'tcx>,
|
||||
body: &mut Body<'tcx>,
|
||||
body: &Body<'tcx>,
|
||||
drop_clean: BasicBlock,
|
||||
) -> Body<'tcx> {
|
||||
let mut body = body.clone();
|
||||
|
|
|
@ -84,7 +84,7 @@ impl<'tcx> MirPass<'tcx> for RenameReturnPlace {
|
|||
///
|
||||
/// If the MIR fulfills both these conditions, this function returns the `Local` that is assigned
|
||||
/// to the return place along all possible paths through the control-flow graph.
|
||||
fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> {
|
||||
fn local_eligible_for_nrvo(body: &mir::Body<'_>) -> Option<Local> {
|
||||
if IsReturnPlaceRead::run(body) {
|
||||
return None;
|
||||
}
|
||||
|
@ -118,10 +118,7 @@ fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> {
|
|||
copied_to_return_place
|
||||
}
|
||||
|
||||
fn find_local_assigned_to_return_place(
|
||||
start: BasicBlock,
|
||||
body: &mut mir::Body<'_>,
|
||||
) -> Option<Local> {
|
||||
fn find_local_assigned_to_return_place(start: BasicBlock, body: &mir::Body<'_>) -> Option<Local> {
|
||||
let mut block = start;
|
||||
let mut seen = BitSet::new_empty(body.basic_blocks.len());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue