Skip to content

Commit

Permalink
Remove an excessive #[track_caller]
Browse files Browse the repository at this point in the history
As pointed out in rust-lang#126557 (comment)

Co-authored-by: Jonas Böttiger <[email protected]>
  • Loading branch information
GrigorenkoPV and joboet committed Sep 4, 2024
1 parent 191e645 commit 2363faa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/alloc/src/collections/vec_deque/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ impl<T, A: Allocator> VecDeque<T, A> {
/// Frobs the head and tail sections around to handle the fact that we
/// just reallocated. Unsafe because it trusts old_capacity.
#[inline]
#[track_caller]
unsafe fn handle_capacity_increase(&mut self, old_capacity: usize) {
let new_capacity = self.capacity();
debug_assert!(new_capacity >= old_capacity);
Expand Down

0 comments on commit 2363faa

Please sign in to comment.