Rework reserve assumes for Vec and String#119465
Rework reserve assumes for Vec and String#119465SUPERCILEX wants to merge 4 commits intorust-lang:masterfrom
Conversation
|
r? @m-ou-se (rustbot has picked a reviewer for you, use r? to override) |
|
The optimization only works with the inlines and assumes in the top function (unless you |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
496e867 to
48a433c
Compare
This comment has been minimized.
This comment has been minimized.
48a433c to
d46ba1d
Compare
This comment has been minimized.
This comment has been minimized.
d46ba1d to
1dfff2e
Compare
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This reverts commit 1dfff2e.
1dfff2e to
a4b629e
Compare
|
☔ The latest upstream changes (presumably #119864) made this pull request unmergeable. Please resolve the merge conflicts. |
The functions are tiny though. Does |
|
Maybe this is actually an LLVM bug? I just tried putting |
|
ping from triage - can you post your status on this PR? This PR has not received an update in a few months. FYI: when a PR is ready for review, send a message containing Or if you're not going to continue, please close it. Thank you! |
|
Yeah, after all the fiddling I've done I think this is really just an LLVM bug, so I filed: #123944. |
Code:
Before:
After: