The bottom of my answer contains a link to functions that allow runtime alignment, basically you switch on the alignment and the inline prongs of the switch turn the runtime alignment into something that is statically known allowing you to call one of the functions with the right comptime alignment.
interesting, but afaik the interface allows runtime known alignments; rawAlloc takes a runtime alignment parameter, so with it I can implement the allocation functions that I need. It just seemed like a strange hole in the Allocator api.
For future reference, since Allocator is a runtime interface, all information must be lowered to runtime data before the vtable because runtime function pointers can’t take comptime parameters.