Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upVecDeque: Use power of two capacity even for zero sized types #28494
Conversation
rust-highfive
assigned
nikomatsakis
Sep 18, 2015
This comment has been minimized.
This comment has been minimized.
|
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
WIP -- still running tests, they probably don't compile.. |
bluss
force-pushed the
bluss:vecdeque-zst
branch
from
f31314c
to
838160c
Sep 18, 2015
This comment has been minimized.
This comment has been minimized.
|
r=me when you get that to compile |
This comment has been minimized.
This comment has been minimized.
|
It compiled with one fix. |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
bluss
added
the
beta-nominated
label
Sep 18, 2015
This comment has been minimized.
This comment has been minimized.
|
beta nominating as bug fix |
This comment has been minimized.
This comment has been minimized.
|
We don't have an "is power of 2" method? IIRC |
This comment has been minimized.
This comment has been minimized.
|
@eddyb Oh, we have is_power_of_two(). Didn't know that. It uses your method. |
bluss
force-pushed the
bluss:vecdeque-zst
branch
from
838160c
to
66f5dc1
Sep 19, 2015
This comment has been minimized.
This comment has been minimized.
|
Updated to use is_power_of_two |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
bors
added a commit
that referenced
this pull request
Sep 19, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
I'm not sure why the debuginfo test failed on android, but I think it's safe to retry. @bors retry |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Sep 19, 2015
This comment has been minimized.
This comment has been minimized.
bors
merged commit 66f5dc1
into
rust-lang:master
Sep 19, 2015
bluss
deleted the
bluss:vecdeque-zst
branch
Sep 19, 2015
alexcrichton
added
the
T-libs
label
Sep 23, 2015
This comment has been minimized.
This comment has been minimized.
|
The libs team decided to accept this for a backport to beta |
alexcrichton
added
the
beta-accepted
label
Sep 24, 2015
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton Has a stable patch / 1.3.1 been considered? Maybe this is not so serious after all(?). I don't know, but I like fixing bugs. |
This comment has been minimized.
This comment has been minimized.
|
No, but this doesn't seem serious enough to warrant the first patch release in Rust ever. |
bluss
added
the
relnotes
label
Sep 24, 2015
This comment has been minimized.
This comment has been minimized.
|
Well maybe it's the worst regression in stable rust ever? We don't have much history to draw from, is my point. |
bluss commentedSep 18, 2015
VecDeque: Use power of two capacity even for zero sized types
VecDeque depends on using a power of two capacity. Use the largest
possible power of two capacity for ZSTs.
Fixes #28488