mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Add a hand-written error message for the seek_internal
precondition
This commit is contained in:
parent
01cfba0f8e
commit
2c8d5973f3
1 changed files with 6 additions and 1 deletions
|
@ -413,7 +413,12 @@ where
|
|||
D: Dimension<'a, T::Summary>,
|
||||
{
|
||||
if let Some(target) = target {
|
||||
debug_assert!(target.cmp(&self.seek_dimension, cx) >= Ordering::Equal);
|
||||
debug_assert!(
|
||||
target.cmp(&self.seek_dimension, cx) >= Ordering::Equal,
|
||||
"cannot seek backward from {:?} to {:?}",
|
||||
self.seek_dimension,
|
||||
target
|
||||
);
|
||||
}
|
||||
|
||||
if !self.did_seek {
|
||||
|
|
Loading…
Reference in a new issue