vulkano-rs / vulkano

Safe and rich Rust wrapper around the Vulkan API
Apache License 2.0
4.55k stars 438 forks source link

Fix panic in `BufferContents` derive expansion and wrong safety docs #2587

Closed marc0246 closed 1 month ago

marc0246 commented 1 month ago

This debug assert was checking a safety precondition that's too strong, while at the same time the documented safety preconditions were too weak (the pointer must have valid provenance since #2563).