Skip to content

Commit f35e035

Browse files
committed
Forgot config to enable bounds check for references on debug
1 parent b8ad7dc commit f35e035

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/macro_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ macro_rules! debug_bounds_check {
7676
($self_:ident, $index:expr) => {};
7777
}
7878

79+
#[cfg(debug_assertions)]
7980
macro_rules! debug_bounds_check_ref {
8081
($self_:ident, $index:expr) => {
8182
if $index.index_checked(&$self_._dim(), &$self_._strides()).is_none() {

0 commit comments

Comments
 (0)