Make functions part of alloc_layout_extra (#55724) const.#99016
Make functions part of alloc_layout_extra (#55724) const.#99016Raekye wants to merge 1 commit intorust-lang:masterfrom
alloc_layout_extra (#55724) const.#99016Conversation
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
r? @thomcc (rust-highfive has picked a reviewer for you, use r? to override) |
|
@rustbot label +T-libs-api -T-libs I think that is correct? |
|
Even though the changes look trivial, I recommend roll-up=iffy on this PR because seemingly noöp changes to the layout code have caused perf regressions before. |
|
☔ The latest upstream changes (presumably #99136) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Hi, this is an API change and so needs to go through the ACP process, as described by the bot:
|
|
triage: adding blocked tag |
|
@rustbot label +S-waiting-on-ACP |
|
The constification of these methods has been merged in the (later submitted) PR #102207 |
Make functions part of
alloc_layout_extra(#55724) const. Requires two additional feature flags:const_alloc_layoutandconst_try(from my understanding std already builds with many other nightly features). I added them in alphabetical order. The only implementation change isstd::cmp::maxhas to be replaced with an explicitifexpression since trait methods are not const.