Uh oh!
There was an error while loading. Please reload this page.
Add Vec visualization to understand capacity - #79655
Conversation
the8472
commented
Dec 3, 2020
The shown field order is does not match the implementation, which is exactly what I was asking for. So all is good. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pickfire
commented
Dec 3, 2020
Yes but it may be confusing to read when most of the other parts have the same order. What is good is that we can explain that the order is not fixed which we did. |
m-ou-se
commented
Dec 8, 2020
I'm not sure the label Can you also address any questions/comments left on #76066? Specifically:
|
pickfire
commented
Dec 9, 2020
Oh, I didn't know about static.
Added. |
bors
commented
Dec 31, 2020
☔ The latest upstream changes (presumably #80530) made this pull request unmergeable. Please resolve the merge conflicts. |
pickfire
commented
Jan 12, 2021
Is there any other comments or maybe I should resolve it? |
Visualize vector while differentiating between stack and heap. Inspired by cheats.rs, as this is probably the first place beginner go, they could understand stack and heap, length and capacity with this. Not sure if adding this means we should add to other places too. Superseeds rust-lang#76066
Suggested by oli-obk
pickfire
commented
Jan 20, 2021
Ping, I fixed the conflicts. |
m-ou-se
left a comment
There was a problem hiding this comment.
Sorry for the delay.
Looks good to me. One small comment:
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
m-ou-se
commented
Jan 21, 2021
@bors r+ rollup |
bors
commented
Jan 21, 2021
📌 Commit 9844d9e has been approved by |
Rollup of 11 pull requests Successful merges: - rust-lang#79655 (Add Vec visualization to understand capacity) - rust-lang#80172 (Use consistent punctuation for 'Prelude contents' docs) - rust-lang#80429 (Add regression test for mutual recursion in obligation forest) - rust-lang#80601 (Improve grammar in documentation of format strings) - rust-lang#81046 (Improve unknown external crate error) - rust-lang#81178 (Visit only terminators when removing landing pads) - rust-lang#81179 (Fix broken links with `--document-private-items` in the standard library) - rust-lang#81184 (Remove unnecessary `after_run` function) - rust-lang#81185 (Fix ICE in mir when evaluating SizeOf on unsized type) - rust-lang#81187 (Fix typo in counters.rs) - rust-lang#81219 (Document security implications of std::env::temp_dir) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Visualize vector while differentiating between stack and heap.
Inspired by cheats.rs, as this is probably the first place beginner go,
they could understand stack and heap, length and capacity with this. Not
sure if adding this means we should add to other places too.
Superseeds #76066
r? @m-ou-se
cc @the8472 I put back the order of the fields as it feels weird, the note already explains that the order of fields is not guaranteed