Skip to content

RingBuf split_off and append impls#22058

Merged
bors merged 2 commits into
rust-lang:masterfrom
Gankra:all-the-impls
Feb 15, 2015
Merged

RingBuf split_off and append impls#22058
bors merged 2 commits into
rust-lang:masterfrom
Gankra:all-the-impls

Conversation

@Gankra

@Gankra Gankra commented Feb 7, 2015

Copy link
Copy Markdown
Contributor

Working on just knocking these out for all the collections so that there's something there.

@Gankra

Gankra commented Feb 7, 2015

Copy link
Copy Markdown
Contributor Author

r? @huonw

@rust-highfive rust-highfive assigned huonw and unassigned brson Feb 7, 2015
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@Gankra

Gankra commented Feb 7, 2015

Copy link
Copy Markdown
Contributor Author

Found an error, retesting

@Gankra

Gankra commented Feb 8, 2015

Copy link
Copy Markdown
Contributor Author

All fixed.

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.

You're explicitly not counting at == first_len as being in the first half?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

if my ringbuf looks like [0, 1, 2, 3][4, 5, 6] and at = 4, then at == first_len and at is in the second half. More importantly: I don't want any of the elements in the first half.

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.

Well, either branch works if at == first_len, but yeah, this approach is better.

@huonw

huonw commented Feb 13, 2015

Copy link
Copy Markdown
Contributor

@bors r+ 0571

@bors

bors commented Feb 13, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 05711ba with merge 492db7e...

@bors

bors commented Feb 13, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-mac-64-opt

@Gankra

Gankra commented Feb 13, 2015

Copy link
Copy Markdown
Contributor Author

Crap, I accidentally force pushed an old version of this branch on my compile station. Will fix when I get home.

bors added a commit that referenced this pull request Feb 14, 2015
Working on just knocking these out for all the collections so that there's something there.
@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 05711ba with merge 2ce55b6...

@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-mac-64-nopt-t

@Gankra

Gankra commented Feb 15, 2015

Copy link
Copy Markdown
Contributor Author

@bors r=huonw 3c18

bors added a commit that referenced this pull request Feb 15, 2015
Working on just knocking these out for all the collections so that there's something there.
@bors

bors commented Feb 15, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 3c18bc4 with merge 5be210c...

@bors

bors commented Feb 15, 2015

Copy link
Copy Markdown
Collaborator

@bors bors merged commit 3c18bc4 into rust-lang:master Feb 15, 2015
lnicola pushed a commit to lnicola/rust that referenced this pull request May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants