Skip to content

Cleanup comments for LWG-4026 Assignment operators of std::expected should propagate triviality - #6274

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
ovatonne:lwg-4026
May 15, 2026
Merged

Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
ovatonne:lwg-4026

Conversation

@ovatonne

@ovatonne ovatonne commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #6221.

Copilot AI review requested due to automatic review settings May 7, 2026 10:05
@ovatonne
ovatonne requested a review from a team as a code owner May 7, 2026 10:05
@github-project-automation github-project-automation Bot moved this to Initial Review in STL Code Reviews May 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs a small cleanup in the std::expected test suite to better label the coverage for LWG-4026 (β€œAssignment operators of std::expected should propagate triviality”) by moving the explanatory comment to the helper function that encapsulates those checks.

Changes:

  • Remove an inline β€œper LWG-4026 …” comment near the TrivialityTester machinery.
  • Add a dedicated LWG-4026 header comment immediately above test_triviality_of_assignment_all().
  • Remove the call-site trailing comment for test_triviality_of_assignment_all() to reduce noise in test_all().

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ovatonne ovatonne changed the title Cleanups forr LWG-402 Assignment operators of std::expected should pr… Cleanups for LWG-402 Assignment operators of std::expected should pr… May 7, 2026
@ovatonne ovatonne changed the title Cleanups for LWG-402 Assignment operators of std::expected should pr… Cleanups for LWG-4026 Assignment operators of std::expected should pr… May 7, 2026
@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Thanks!

…opagate triviality (#6221)

You can and should use Fixes #6221 or something like to associate this PR with the issue to be fixed. See GitHub's close/fix/resolve syntax.

Also, please fix the PR title. GitHub automatically truncates the first line of the commit message if it's too long when using it as the defaulted PR title. In this case of this PR, IMO you should fix the title, but should also drop the issue number.

@ovatonne ovatonne changed the title Cleanups for LWG-4026 Assignment operators of std::expected should pr… Cleanup comments for LWG-4026 Assignment operators of std::expected should propagate triviality May 7, 2026
@ovatonne

ovatonne commented May 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Thank you for your time on this!

You can and should use Fixes #6221

I though I correctly copied what I saw on the repo, but I absolutely didn't.

Also, please fix the PR title.

I hope it is ok now, even though it still is a long title for little changes ^^

@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the LWG Library Working Group issue label May 7, 2026
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks! Title is great now.

We merge PRs to our GitHub and MSVC-internal repos simultaneously in a semi-manual process, batched up to save time. Your PR will be part of the next batch. I'll post comments as I prepare your PR for merging; no action is required from you.

@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Initial Review to Ready To Merge in STL Code Reviews May 7, 2026
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Ready To Merge to Merging in STL Code Reviews May 14, 2026
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo. Please notify me if any further changes are pushed, otherwise no action is required.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 7bfb2f3 into microsoft:main May 15, 2026
49 checks passed
@github-project-automation github-project-automation Bot moved this from Merging to Done in STL Code Reviews May 15, 2026
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for cleaning this up and congratulations on your first microsoft/STL commit! 😻

FYI, your commit showed up as "co-authored-by", which I believe indicates that you haven't configured your GitHub profile to be linked to the email address that you're marking your commits with. (For example, my GitHub profile is set up with my personal email as primary, and my work emails as secondary addresses.)

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

Labels

LWG Library Working Group issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LWG-4026 Assignment operators of std::expected should propagate triviality

4 participants