Re: [PATCH v2] rust: alloc: satisfy `aligned_alloc` requirements

From: DJ Delorie
Date: Sun Feb 09 2025 - 23:00:53 EST


Alejandro Colomar <alx@xxxxxxxxxx> writes:
> On retrospective, we should have added some more details to that commit
> message. DJ, has the requirement of the size been lifted? Was it never
> present?

The current code checks alignment but not size.

It looks like that was always the case.

And no, I don't remember where I got the size requirement from ;-)
(but at least it says "should" instead of "must")