Skip to content

Commit 6fbb28e

Browse files
authored
chore(query): replace custom wrappers with intrinsics::assume (#19063)
* chore(query): replace custom wrappers with intrinsics::assume * chore(query): replace custom wrappers with intrinsics::assume
1 parent dd3916a commit 6fbb28e

File tree

1 file changed

+3
-5
lines changed
  • src/common/base/src/hints

1 file changed

+3
-5
lines changed

src/common/base/src/hints/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ pub fn assume(condition: bool) {
2222
}
2323

2424
#[cfg(not(debug_assertions))]
25-
{
26-
if !condition {
27-
unsafe { std::hint::unreachable_unchecked() }
28-
}
29-
}
25+
unsafe {
26+
std::hint::assert_unchecked(condition)
27+
};
3028
}

0 commit comments

Comments
 (0)