Remove default implementation for PyGCProtocol
Implementations for these methods should always be provided. See #531
This commit is contained in:
parent
96a56fa9b8
commit
7c687a8d38
|
@ -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> {}
|
||||
|
|
Loading…
Reference in New Issue