Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

tisonkun
Copy link
Contributor

This refers to #147750.

Signed-off-by: tison <wander4096@gmail.com>
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 16, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 16, 2025

r? @joboet

rustbot has assigned @joboet.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

Signed-off-by: tison <wander4096@gmail.com>
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@tisonkun tisonkun force-pushed the vec-deque-extract-if branch from f120ac2 to 6f38bda Compare October 16, 2025 22:26
@rust-log-analyzer

This comment has been minimized.

@tisonkun tisonkun force-pushed the vec-deque-extract-if branch from 6f38bda to 1d182aa Compare October 16, 2025 22:40
@rust-log-analyzer

This comment has been minimized.

@tisonkun tisonkun force-pushed the vec-deque-extract-if branch from 1d182aa to 238229b Compare October 16, 2025 23:42
@rust-log-analyzer

This comment has been minimized.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun force-pushed the vec-deque-extract-if branch from 238229b to 9cba3ed Compare October 17, 2025 01:59
@rust-log-analyzer

This comment has been minimized.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
Copy link
Contributor Author

This is now ready for review. I'm trying to port some tests from LinkedList's extract_if cases.

@rust-log-analyzer

This comment has been minimized.

@tisonkun tisonkun force-pushed the vec-deque-extract-if branch from c42dc3b to ff878de Compare October 17, 2025 06:07
@rust-log-analyzer

This comment has been minimized.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun force-pushed the vec-deque-extract-if branch from ff878de to 2915a63 Compare October 17, 2025 07:04
// We use copy for move, and never touch this element again.
unsafe {
let hole_slot = self.vec.ptr().add(idx - self.del);
ptr::copy_nonoverlapping(cur, hole_slot, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this instead be wrap_copy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes correct. Try fix in a7d0a43.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CI looks happy. I'm not sure how to ensure the manner, i.e., constructing a VecDeque that wrap the underlying vec.

Signed-off-by: tison <wander4096@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.