Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 7138a79

Browse files
committed
Add comment markers to make merging from upstream easier
1 parent fd5323e commit 7138a79

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

stack-graphs/src/arena.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ impl<T> Arena<T> {
188188
self.items.truncate(1);
189189
}
190190

191+
// __NOMIC_FOUNDATION_FORK__ (added this function)
191192
pub(crate) fn truncate(&mut self, new_len: usize) {
192193
self.items.truncate(new_len);
193194
}

stack-graphs/src/partial.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2632,6 +2632,7 @@ impl PartialPaths {
26322632
self.partial_path_edges.clear();
26332633
}
26342634

2635+
// __NOMIC_FOUNDATION_FORK__ (added this function)
26352636
pub fn save_checkpoint(&self) -> PartialPathsCheckpoint {
26362637
PartialPathsCheckpoint {
26372638
partial_symbol_stacks_len: self.partial_symbol_stacks.len(),
@@ -2640,6 +2641,7 @@ impl PartialPaths {
26402641
}
26412642
}
26422643

2644+
// __NOMIC_FOUNDATION_FORK__ (added this function)
26432645
pub fn restore_checkpoint(&mut self, checkpoint: PartialPathsCheckpoint) {
26442646
self.partial_symbol_stacks
26452647
.truncate(checkpoint.partial_symbol_stacks_len);
@@ -2650,6 +2652,7 @@ impl PartialPaths {
26502652
}
26512653
}
26522654

2655+
// __NOMIC_FOUNDATION_FORK__ (added this struct)
26532656
pub struct PartialPathsCheckpoint {
26542657
partial_symbol_stacks_len: usize,
26552658
partial_scope_stacks_len: usize,

0 commit comments

Comments
 (0)