diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-03-10 10:29:19 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-03-14 20:52:42 +0100 |
| commit | 50d0959a2f7ba5b5622a442d332e26f6f3059744 (patch) | |
| tree | 201791c92b9adaaa20e2456fa4111f9d777fd38e /compiler/rustc_mir_transform/src/nrvo.rs | |
| parent | d31386a52bc3944adbdf0e925f4764f8aa6b1875 (diff) | |
| download | rust-50d0959a2f7ba5b5622a442d332e26f6f3059744.tar.gz rust-50d0959a2f7ba5b5622a442d332e26f6f3059744.zip | |
Remove LocalKind::Var.
Diffstat (limited to 'compiler/rustc_mir_transform/src/nrvo.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/nrvo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/nrvo.rs b/compiler/rustc_mir_transform/src/nrvo.rs index 4291e81c78c..b6e73eaad50 100644 --- a/compiler/rustc_mir_transform/src/nrvo.rs +++ b/compiler/rustc_mir_transform/src/nrvo.rs @@ -102,7 +102,7 @@ fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> { mir::LocalKind::Arg => return None, mir::LocalKind::ReturnPointer => bug!("Return place was assigned to itself?"), - mir::LocalKind::Var | mir::LocalKind::Temp => {} + mir::LocalKind::Temp => {} } // If multiple different locals are copied to the return place. We can't pick a |
