mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13: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>,
|
D: Dimension<'a, T::Summary>,
|
||||||
{
|
{
|
||||||
if let Some(target) = target {
|
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 {
|
if !self.did_seek {
|
||||||
|
|
Loading…
Reference in a new issue