You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Rust stable, this assert-failed. In Rust beta and nightly, it passes. (From what I can, this change in behavior is due to #41064 )
So maybe there's no bug at all. But I wanted to at least have a place to track discussion of whether this particular change is something we want to require of all user allocators, rather than forcing it to be intermixed with other discussion on #32838
(Thanks to Ralf Jung for pointing out this question about allocator behavior on IRC.)
The text was updated successfully, but these errors were encountered:
Ugh I need to think more before going through the work of filing tickets. Zero-sized allocations are illegal according to the API of trait Alloc. Thank goodness!
Consider the following code (playpen):
In Rust stable, this assert-failed. In Rust beta and nightly, it passes. (From what I can, this change in behavior is due to #41064 )
So maybe there's no bug at all. But I wanted to at least have a place to track discussion of whether this particular change is something we want to require of all user allocators, rather than forcing it to be intermixed with other discussion on #32838
(Thanks to Ralf Jung for pointing out this question about allocator behavior on IRC.)
The text was updated successfully, but these errors were encountered: