Skip to content

chore: add missing std::move and std::forward calls#13049

Open
jlebar wants to merge 1 commit intoleanprover:masterfrom
jlebar:missing-move
Open

chore: add missing std::move and std::forward calls#13049
jlebar wants to merge 1 commit intoleanprover:masterfrom
jlebar:missing-move

Conversation

@jlebar
Copy link

@jlebar jlebar commented Mar 23, 2026

Also fix a few places where we were using std::forward when we should
have been using std::move.

This PR was written by Codex with ChatGPT 5.4 high, but I manually
verified the changes myself. Specifically, I pointed Codex at
#4698 and asked it to find the
remaining missing changes in this vein. I also ran clang-tidy over the
repo to verify that this caught all of the missing std::move's.

Fixes #4698.

@jlebar jlebar requested a review from leodemoura as a code owner March 23, 2026 05:05
@jlebar jlebar changed the title chore: Add missing std::move and std::forward calls. chore: Add missing std::move and std::forward calls Mar 23, 2026
@jlebar jlebar changed the title chore: Add missing std::move and std::forward calls chore: add missing std::move and std::forward calls Mar 23, 2026
Also fix a few places where we were using std::forward<T> when we should
have been using std::move.

This PR was written by Codex with ChatGPT 5.4 high, but I manually
verified the changes myself.  Specifically, I pointed Codex at
leanprover#4698 and asked it to find the
remaining missing changes in this vein. I also ran clang-tidy over the
repo to verify that this caught all of the missing std::move's.

Fixes leanprover#4698.
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Mar 23, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 98f526640720db5411e0735e6b7e14ff99f4c181 --onto 4bf7fa7447eea00cecba8327bb9c9e5f4485f0a7. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-23 06:17:17)

@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 98f526640720db5411e0735e6b7e14ff99f4c181 --onto cfa8c5a036d6990635c6ec50b02d0e806995cec3. You can force reference manual CI using the force-manual-ci label. (2026-03-23 06:17:18)

@TwoFX
Copy link
Member

TwoFX commented Mar 23, 2026

!radar

@leanprover-radar
Copy link

leanprover-radar commented Mar 23, 2026

Benchmark results for 9bed004 against 98f5266 are in. There are no significant changes. @TwoFX @jlebar

  • 🟥 build//instructions: +777.0M (+0.01%)

No significant changes detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lots of unnecessary copies of object_ref

5 participants