Uh oh!
There was an error while loading. Please reload this page.
Rename .cap() methods to .capacity() - #60340
Conversation
rust-highfive
commented
Apr 27, 2019
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c8b7629 to
4d5a405Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Apr 27, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
... but leave the old names in there for backwards compatibility.
mgeier
commented
Apr 28, 2019
Turns out that |
Mark-Simulacrum
commented
May 18, 2019
We don't need to keep the I'm uncertain what to do about the |
| } | ||
| // For backwards compatibility | ||
| #[inline(always)] |
There was a problem hiding this comment.
Instead of #[inline(always)] could this be #[doc(hidden)] and #[rustc_deprecated]?
There was a problem hiding this comment.
In case you are asking me: I'm a total Rust newbie, and I don't know what should be used here.
Just tell me, and I can change the PR. Or feel free to make any changes yourself.
@Mark-Simulacrum mentioned that RawVec is a private internal type and we don't need to keep compatibility?
alexcrichton
commented
May 20, 2019
Seems reasonable to me! Just one nit otherwise r=me |
mgeier
commented
May 21, 2019
Thanks @alexcrichton for the review! What about the private method |
alexcrichton
commented
May 21, 2019
I don't personally have a preference one way or another. |
Dylan-DPC-zz
commented
Jun 3, 2019
ping from triage @mgeier any updates on this? |
jonas-schievink
commented
Jun 18, 2019
Visiting for triage, @mgeier can you address the review comment? |
As suggested in rust-lang#60340 (comment)
mgeier
commented
Jun 25, 2019
Sorry for the long delay! I've removed I couldn't come up with a better name for the internal function |
alexcrichton
commented
Jun 26, 2019
@bors: r+ |
Centril
commented
Jun 26, 2019
@bors rollup=never |
joelpalmer
commented
Jul 22, 2019
@joelpalmer oops we can close it due to inactivity |
mgeier
commented
Jul 22, 2019
I have made the requested changes and reported the latest status in #60340 (comment). What is there left to do for me? |
Dylan-DPC-zz
commented
Jul 22, 2019
@mgeier you need to address the failing tests |
mgeier
commented
Jul 24, 2019
Thanks @Dylan-DPC, can you please point me to the failing tests? |
Dylan-DPC-zz
commented
Jul 24, 2019
@mgeier looks to have been due to a spurious issue. @alexcrichton can you review this? |
alexcrichton
commented
Jul 25, 2019
@bors: r+ |
bors
commented
Jul 25, 2019
📌 Commit abe3bdf has been approved by |
bors
commented
Jul 25, 2019
Rename .cap() methods to .capacity() As mentioned in #60316, there are a few `.cap()` methods, which seem out-of-place because such methods are called `.capacity()` in the rest of the code. This PR renames them to `.capacity()` but leaves `RawVec::cap()` in there for backwards compatibility. I didn't try to mark the old version as "deprecated", because I guess this would cause too much noise.
bors
commented
Jul 25, 2019
☀️ Test successful - checks-azure |
rust-highfive
commented
Jul 25, 2019
📣 Toolstate changed by #60340! Tested on commit 890881f. 💔 rustfmt on windows: test-pass → build-fail (cc @topecongiro, @rust-lang/infra). |
Tested on commit rust-lang/rust@890881f. Direct link to PR: <rust-lang/rust#60340> 💔 rustfmt on windows: test-pass → build-fail (cc @topecongiro, @rust-lang/infra). 💔 rustfmt on linux: test-pass → build-fail (cc @topecongiro, @rust-lang/infra).
As mentioned in #60316, there are a few
.cap()methods, which seem out-of-place because such methods are called.capacity()in the rest of the code.This PR renames them to
.capacity()but leavesRawVec::cap()in there for backwards compatibility.I didn't try to mark the old version as "deprecated", because I guess this would cause too much noise.