Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2cd24b5

Browse files
committed
densebitset-unsafe wip
1 parent b2dbbb6 commit 2cd24b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎compiler/rustc_index/src/bit_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl<T: Idx> DenseBitSet<T> {
187187
/// Insert `elem`. Returns whether the set has changed.
188188
#[inline]
189189
pub fn insert(&mut self, elem: T) -> bool {
190-
assert!(
190+
debug_assert!(
191191
elem.index() < self.domain_size,
192192
"inserting element at index {} but domain size is {}",
193193
elem.index(),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /