Skip to content

Commit

Permalink
do not skip return code check in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 11, 2018
1 parent 0c6a093 commit db13390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl RWLock {
}
panic!("rwlock read lock would result in deadlock");
} else {
debug_assert_eq!(r, 0);
assert_eq!(r, 0);
self.num_readers.fetch_add(1, Ordering::Relaxed);
}
}
Expand Down

0 comments on commit db13390

Please sign in to comment.