发现 debug_assert! 的检查条件在 optimized build 里面好像不会作为 optimization hint,这合理吗

我其实期望 debug_assert! 会在 optimized build 里面有类似于 assume 的效果
 
 
Back to Top