This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Make the constraints as intended.
Needs ReviewPublic

Authored by K1ZeKaTo on Jul 30 2023, 12:46 PM.

Details

Reviewers
philnik
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

K1ZeKaTo created this revision.Jul 30 2023, 12:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2023, 12:46 PM
K1ZeKaTo requested review of this revision.Jul 30 2023, 12:46 PM
philnik set the repository for this revision to rG LLVM Github Monorepo.Jul 31 2023, 9:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 9:32 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript
philnik requested changes to this revision.Jul 31 2023, 9:45 AM
philnik added a subscriber: philnik.

Please add tests for this under libcxx/test/std/iterators/iterator.requirements/iterator.cust/iterator.cust.move/.

This revision now requires changes to proceed.Jul 31 2023, 9:45 AM
cjdb added a subscriber: cjdb.Jul 31 2023, 10:01 AM

Can you please provide a descriptive subject line about what has changed for the commit? It should also be prefixed with [libcxx] or [libc++].

K1ZeKaTo updated this revision to Diff 546454.Aug 2 2023, 7:20 AM
K1ZeKaTo retitled this revision from Make the constraints as intended. to [libc++] Make the constraints as intended..

The constraints do not work while rvalue.

K1ZeKaTo updated this revision to Diff 547192.Aug 4 2023, 6:48 AM

Modify to pass tests.

K1ZeKaTo updated this revision to Diff 547212.Aug 4 2023, 7:45 AM

Try to fix CI.

K1ZeKaTo updated this revision to Diff 547240.Aug 4 2023, 8:47 AM

Try to fix CI.

K1ZeKaTo updated this revision to Diff 547256.Aug 4 2023, 9:31 AM
K1ZeKaTo updated this revision to Diff 547294.Aug 4 2023, 11:46 AM
K1ZeKaTo updated this revision to Diff 547452.Aug 4 2023, 11:39 PM
K1ZeKaTo updated this revision to Diff 547466.Aug 5 2023, 2:03 AM
cjdb added a comment.Sep 5 2023, 4:18 PM

I'm still not quite sure what problem this patch aims to solve. Would you please be able to provide a commit description that describes the problem that's being solved in some detail?

cjdb added a comment.Sep 21 2023, 11:24 AM

The changes in the header seem correct to me, but we can't move forward till the commit message has been fixed.

libcxx/test/std/iterators/iterator.requirements/iterator.cust/iterator.cust.move/iter_move_rvalue.compile.pass.cpp
1 ↗(On Diff #547466)

I'd prefer that this be a runtime test, since it's something that needs to work in both cases. As such, we'll need to rework this test so it handles runtime too.