diff --git a/crates/turbo-tasks-fs/src/json.rs b/crates/turbo-tasks-fs/src/json.rs index 6c13d4e74d1ba..27c2793b87ad7 100644 --- a/crates/turbo-tasks-fs/src/json.rs +++ b/crates/turbo-tasks-fs/src/json.rs @@ -47,7 +47,10 @@ impl UnparseableJson { Self { message: inner.to_string().into(), path: Some(e.path().to_string()), - start_location: Some((inner.line() - 1, inner.column() - 1)), + start_location: Some(( + inner.line().saturating_sub(1), + inner.column().saturating_sub(1), + )), end_location: None, } } diff --git a/crates/turbo-tasks/src/debug/vdbg.rs b/crates/turbo-tasks/src/debug/vdbg.rs index 3ceec5c977f05..8b7407c54910e 100644 --- a/crates/turbo-tasks/src/debug/vdbg.rs +++ b/crates/turbo-tasks/src/debug/vdbg.rs @@ -66,7 +66,7 @@ macro_rules! vdbg { (__repeat $str:literal) => { "" }; ($($val:expr),* ; depth = $depth:expr) => { - $crate::vdbg!(__init $depth ; $($val),*) + $crate::vdbg!(__init $depth ; [ $($val),* ] []) }; ($($val:expr),+ $(,)?) => { $crate::vdbg!(__init usize::MAX ; [ $($val),* ] [])