ydb icon indicating copy to clipboard operation
ydb copied to clipboard

Get rid of unneccessary std::move

Open yumkam opened this issue 10 months ago • 17 comments

Fixes #1246

Compile-tested (ydb & ydbd)

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

Rev 2: also changed

Bar foo(..., Bar && res,...) {
....
    return std::move(res);
}

Rev 3: reverted incorrect changes for Bar && foo(..., Bar &&,...)

Rev 4: completely reverted changes from rev.2/rev.3 (with Bar && res, expression res has type r-value reference, but value category of l-value; hence, std::move() must be used, and, part 2 was completely incorrect) Partially revert changes from first patch where local variable type mismatched returned type (std::move() must be used)

yumkam avatar Apr 18 '24 17:04 yumkam

Hi! Thank you for contributing! The tests on this PR will run after a maintainer adds an ok-to-test label to this PR manually. Thank you for your patience!

github-actions[bot] avatar Apr 18 '24 17:04 github-actions[bot]

:white_circle: 2024-05-06 21:14:39 UTC Pre-commit check for f8bb2323406af2c8d2679fe32897da7808862e80 has started. :white_circle: 2024-05-06 21:14:41 UTC Build linux-x86_64-release-clang14 is running... :red_circle: 2024-05-06 22:23:51 UTC Build failed. see the build logs.

github-actions[bot] avatar May 06 '24 21:05 github-actions[bot]

:white_circle: 2024-05-06 21:14:54 UTC Pre-commit check for f8bb2323406af2c8d2679fe32897da7808862e80 has started. :white_circle: 2024-05-06 21:14:57 UTC Build linux-x86_64-relwithdebinfo is running... :red_circle: 2024-05-06 21:59:03 UTC Build failed. see the build logs. :red_circle: 2024-05-06 22:00:39 UTC Tests run skipped.

github-actions[bot] avatar May 06 '24 21:05 github-actions[bot]

:white_circle: 2024-05-06 21:14:55 UTC Pre-commit check for f8bb2323406af2c8d2679fe32897da7808862e80 has started. :white_circle: 2024-05-06 21:14:57 UTC Build linux-x86_64-release-asan is running... :red_circle: 2024-05-06 22:00:28 UTC Build failed. see the build logs. :red_circle: 2024-05-06 22:02:09 UTC Tests run skipped.

github-actions[bot] avatar May 06 '24 21:05 github-actions[bot]

Все же много лишних зачисток. Давайте внимательнее менять код, тем более, что его фиг оттестируешь

uzhastik avatar May 07 '24 06:05 uzhastik

:white_circle: 2024-05-07 12:32:54 UTC Pre-commit check for da080986b50ac9f34483293ac03f1eb4f02161df has started. :white_circle: 2024-05-07 12:32:57 UTC Build linux-x86_64-release-asan is running... :green_circle: 2024-05-07 13:11:08 UTC Build successful. :white_circle: 2024-05-07 13:12:57 UTC Tests are running... :red_circle: 2024-05-07 15:00:34 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14666 14524 0 46 85 11

github-actions[bot] avatar May 07 '24 12:05 github-actions[bot]

:white_circle: 2024-05-07 12:32:55 UTC Pre-commit check for da080986b50ac9f34483293ac03f1eb4f02161df has started. :white_circle: 2024-05-07 12:32:57 UTC Build linux-x86_64-release-clang14 is running... :green_circle: 2024-05-07 13:17:45 UTC Build successful.

github-actions[bot] avatar May 07 '24 12:05 github-actions[bot]

:white_circle: 2024-05-07 12:35:08 UTC Pre-commit check for da080986b50ac9f34483293ac03f1eb4f02161df has started. :white_circle: 2024-05-07 12:35:11 UTC Build linux-x86_64-relwithdebinfo is running... :green_circle: 2024-05-07 13:13:58 UTC Build successful. :white_circle: 2024-05-07 13:15:47 UTC Tests are running... :red_circle: 2024-05-07 15:14:26 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
73341 60214 0 7 13111 9

github-actions[bot] avatar May 07 '24 12:05 github-actions[bot]

:white_circle: 2024-05-10 12:01:49 UTC Pre-commit check for e7e5107ef152a0615e83700c9b29510216708865 has started. :white_circle: 2024-05-10 12:01:50 UTC Build linux-x86_64-relwithdebinfo is running... :green_circle: 2024-05-10 12:31:53 UTC Build successful. :white_circle: 2024-05-10 12:33:35 UTC Tests are running... :red_circle: 2024-05-10 12:38:10 UTC Test run completed, no test results found for commit dcbe42da0adf52ebe6d112e72087e5543130e2e3. Please check build logs. :black_circle: 2024-05-10 12:38:13 UTC Check cancelled

github-actions[bot] avatar May 10 '24 12:05 github-actions[bot]

:white_circle: 2024-05-10 12:02:05 UTC Pre-commit check for e7e5107ef152a0615e83700c9b29510216708865 has started. :white_circle: 2024-05-10 12:02:06 UTC Build linux-x86_64-release-asan is running... :green_circle: 2024-05-10 12:32:50 UTC Build successful. :white_circle: 2024-05-10 12:34:40 UTC Tests are running... :red_circle: 2024-05-10 12:38:11 UTC Test run completed, no test results found for commit dcbe42da0adf52ebe6d112e72087e5543130e2e3. Please check build logs. :black_circle: 2024-05-10 12:38:14 UTC Check cancelled

github-actions[bot] avatar May 10 '24 12:05 github-actions[bot]

:white_circle: 2024-05-10 12:03:47 UTC Pre-commit check for e7e5107ef152a0615e83700c9b29510216708865 has started. :white_circle: 2024-05-10 12:03:49 UTC Build linux-x86_64-release-clang14 is running... :green_circle: 2024-05-10 12:32:43 UTC Build successful.

github-actions[bot] avatar May 10 '24 12:05 github-actions[bot]

:white_circle: 2024-05-10 12:38:45 UTC Pre-commit check for 808f777ad6cd8968430f02987e56800e51261ba3 has started. :white_circle: 2024-05-10 12:38:46 UTC Build linux-x86_64-release-asan is running... :green_circle: 2024-05-10 12:39:43 UTC Build successful. :white_circle: 2024-05-10 12:41:21 UTC Tests are running... :red_circle: 2024-05-10 14:25:28 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14678 14494 0 48 124 12

github-actions[bot] avatar May 10 '24 12:05 github-actions[bot]

:white_circle: 2024-05-10 12:42:16 UTC Pre-commit check for 808f777ad6cd8968430f02987e56800e51261ba3 has started. :white_circle: 2024-05-10 12:42:18 UTC Build linux-x86_64-release-clang14 is running... :green_circle: 2024-05-10 12:43:29 UTC Build successful.

github-actions[bot] avatar May 10 '24 12:05 github-actions[bot]

:white_circle: 2024-05-10 12:44:27 UTC Pre-commit check for 808f777ad6cd8968430f02987e56800e51261ba3 has started. :white_circle: 2024-05-10 12:44:29 UTC Build linux-x86_64-relwithdebinfo is running... :green_circle: 2024-05-10 12:45:40 UTC Build successful. :white_circle: 2024-05-10 12:47:30 UTC Tests are running... :red_circle: 2024-05-10 14:40:09 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
73472 60250 0 6 13205 11

github-actions[bot] avatar May 10 '24 12:05 github-actions[bot]

:white_circle: 2024-05-10 22:38:42 UTC Pre-commit check for cee370a5ea619855df82aa0de16ed280b03a87cc has started. :white_circle: 2024-05-10 22:38:45 UTC Build linux-x86_64-release-clang14 is running... :green_circle: 2024-05-10 23:14:55 UTC Build successful.

github-actions[bot] avatar May 10 '24 22:05 github-actions[bot]

:white_circle: 2024-05-10 22:38:46 UTC Pre-commit check for cee370a5ea619855df82aa0de16ed280b03a87cc has started. :white_circle: 2024-05-10 22:38:49 UTC Build linux-x86_64-relwithdebinfo is running... :green_circle: 2024-05-10 23:15:13 UTC Build successful. :white_circle: 2024-05-10 23:17:17 UTC Tests are running... :red_circle: 2024-05-11 01:17:33 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
73512 60279 0 7 13215 11

github-actions[bot] avatar May 10 '24 22:05 github-actions[bot]

:white_circle: 2024-05-10 22:39:06 UTC Pre-commit check for cee370a5ea619855df82aa0de16ed280b03a87cc has started. :white_circle: 2024-05-10 22:39:10 UTC Build linux-x86_64-release-asan is running... :green_circle: 2024-05-10 23:16:59 UTC Build successful. :white_circle: 2024-05-10 23:18:48 UTC Tests are running... :red_circle: 2024-05-11 01:08:25 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14679 14513 0 43 113 10

github-actions[bot] avatar May 10 '24 22:05 github-actions[bot]