Remove default implementation for PyGCProtocol

Implementations for these methods should always be provided. See #531
This commit is contained in:
Alexander Niederbühl 2019-07-14 17:26:04 +02:00
parent 96a56fa9b8
commit 7c687a8d38
1 changed files with 2 additions and 7 deletions

View File

@ -15,13 +15,8 @@ pub struct PyTraverseError(c_int);
/// GC support
#[allow(unused_variables)]
pub trait PyGCProtocol<'p>: PyTypeInfo {
fn __traverse__(&'p self, visit: PyVisit) -> Result<(), PyTraverseError> {
unimplemented!()
}
fn __clear__(&'p mut self) {
unimplemented!()
}
fn __traverse__(&'p self, visit: PyVisit) -> Result<(), PyTraverseError>;
fn __clear__(&'p mut self);
}
pub trait PyGCTraverseProtocol<'p>: PyGCProtocol<'p> {}