Replace remaining instances of use of debug feature with debug_assertions.
Also fix some code that did not build in debug mode anymore (d'oh!) in `src/ion/merges.rs`, as exposed by this change.
This commit is contained in:
@@ -78,11 +78,11 @@ impl<T: Clone + Copy + Default> ParallelMoves<T> {
|
||||
// Sort moves by destination and check that each destination
|
||||
// has only one writer.
|
||||
self.parallel_moves.sort_by_key(|&(_, dst, _)| dst);
|
||||
if cfg!(debug) {
|
||||
if cfg!(debug_assertions) {
|
||||
let mut last_dst = None;
|
||||
for &(_, dst, _) in &self.parallel_moves {
|
||||
if last_dst.is_some() {
|
||||
assert!(last_dst.unwrap() != dst);
|
||||
debug_assert!(last_dst.unwrap() != dst);
|
||||
}
|
||||
last_dst = Some(dst);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user