MCPcopy Create free account
hub / github.com/astral-sh/ruff / drop

Method drop

crates/ruff_python_parser/src/parser/scratch_buffer.rs:75–80  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

73
74impl<T> Drop for ScratchBuffer<T> {
75 fn drop(&mut self) {
76 debug_assert!(
77 self.buffer.is_empty() || std::thread::panicking(),
78 "Scratch buffers must be empty when dropped."
79 );
80 }
81}
82
83pub(super) struct ScratchSnapshot {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected