Overhaul of the AllocRef trait to match allocator-wg's latest consens; Take 2#70362
Overhaul of the AllocRef trait to match allocator-wg's latest consens; Take 2#70362bors merged 23 commits intorust-lang:masterfrom
AllocRef trait to match allocator-wg's latest consens; Take 2#70362Conversation
fb2e3c4 to
14b6d13
Compare
|
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 |
|
@bors try @rust-timer queue |
|
Awaiting bors try build completion |
|
⌛ Trying commit 44440b3cc53fdee09b42d6add442729b7795b6ec with merge 596ca62e7a53ded2213f364156eae2a6a5478c8f... |
|
☀️ Try build successful - checks-azure |
|
Queued 596ca62e7a53ded2213f364156eae2a6a5478c8f with parent 3c1d9ad, future comparison URL. |
|
Finished benchmarking try commit 596ca62e7a53ded2213f364156eae2a6a5478c8f, comparison URL. |
The average from both, all cpu-clock avg values and all task-clock avg values, is 0.692% and 0.693% respectively, which is fine I think. The biggest regression we have in a stress test, all other regressions (if any) are below 3%. In comparison to the last perf-run this is much better. |
|
@bors try @rust-timer queue |
|
Awaiting bors try build completion |
|
⌛ Trying commit 78f6ca31edcc805151e7cf72cb922673386a738e with merge 266627c4feaf72ec1b9019f3a957804478ef516c... |
|
☀️ Try build successful - checks-azure |
|
Queued 266627c4feaf72ec1b9019f3a957804478ef516c with parent a17dd36, future comparison URL. |
|
@bors retry yield |
|
☀️ Test successful - checks-azure |
Tested on commit rust-lang/rust@127a11a. Direct link to PR: <rust-lang/rust#70362> 💔 nomicon on windows: test-pass → test-fail (cc @Gankra @frewsxcv). 💔 nomicon on linux: test-pass → test-fail (cc @Gankra @frewsxcv).
rustup for AllocRef changes Cc rust-lang/rust#70362
rustup for AllocRef changes Cc rust-lang/rust#70362
This was accidentally removed in rust-lang#70362 56cbf2f
…ruppe re-add Layout::for_value_raw Tracking issue: rust-lang#69835 This was accidentally removed in rust-lang#70362 56cbf2f. Originally added in rust-lang#69079.
GitHub won't let me reopen #69889 so I make a new PR.
In addition to #69889 this fixes the unsoundness of
RawVec::into_boxwhen using allocators supporting overallocating. Also it usesMemoryBlockinAllocRefto unify_in_placemethods by passing&mut MemoryBlock. Additionally,RawVecnow checks forsize_of::<T>()again and ignore every ZST. The internal capacity ofRawVecisn't used by ZSTs anymore, asinto_boxnow requires a length to be specified.r? @Amanieu
fixes rust-lang/wg-allocators#38
fixes rust-lang/wg-allocators#41
fixes rust-lang/wg-allocators#44
fixes rust-lang/wg-allocators#51