diff --git a/crates/gpui/src/arena.rs b/crates/gpui/src/arena.rs index 4ddeaaff65eb6247595fd15a263a985a01d2ae23..0e78feca7bfa4c514f233415ba3e4f6f323a6655 100644 --- a/crates/gpui/src/arena.rs +++ b/crates/gpui/src/arena.rs @@ -116,6 +116,7 @@ impl ArenaBox { } } + #[track_caller] fn validate(&self) { assert!( self.valid.get(), diff --git a/crates/multi_buffer/src/multi_buffer.rs b/crates/multi_buffer/src/multi_buffer.rs index 9c80fcedd3ebbaf443d1cce3c5c7ae81a59763d5..0e8359412a8d0a4eeb047ad3fcefe112e035f85f 100644 --- a/crates/multi_buffer/src/multi_buffer.rs +++ b/crates/multi_buffer/src/multi_buffer.rs @@ -7320,6 +7320,7 @@ impl ToOffset for Point { } impl ToOffset for usize { + #[track_caller] fn to_offset<'a>(&self, snapshot: &MultiBufferSnapshot) -> usize { assert!(*self <= snapshot.len(), "offset is out of range"); *self