udoprog / checkers

A sanity checker for global allocations in Rust
Apache License 2.0
48 stars 2 forks source link

Fix event recording in alloc with --release #7

Closed robojumper closed 3 years ago

robojumper commented 3 years ago

debug_assert doesn't execute the expression at all in release mode, so hoist the event recording.

Drive-by commits:

udoprog commented 3 years ago

Very nice. I was sure I'd stopped using the debug_assert! footgun.

Thanks for finding and fixing it!

udoprog commented 3 years ago

This has been released in 0.5.7.