Skip to content

Commit 3f6122d

Browse files
committed
Delete ByteRepr for fn pointers
1 parent b2df029 commit 3f6122d

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

libcc2rs/src/reinterpret.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,6 @@ impl<T: ByteRepr> ByteRepr for std::rc::Rc<T> {}
6464
impl<T: ByteRepr> ByteRepr for std::cell::RefCell<T> {}
6565
impl<T: ByteRepr> ByteRepr for Box<[T]> {}
6666
impl<T: ByteRepr> ByteRepr for Box<T> {}
67-
68-
macro_rules! impl_byterepr_fn {
69-
($($name:ident),*) => {
70-
impl<R: 'static, $($name: 'static),*> ByteRepr for fn($($name),*) -> R {}
71-
};
72-
}
73-
74-
impl_byterepr_fn!();
75-
impl_byterepr_fn!(A);
76-
impl_byterepr_fn!(A, B);
77-
impl_byterepr_fn!(A, B, C);
78-
impl_byterepr_fn!(A, B, C, D);
79-
impl_byterepr_fn!(A, B, C, D, E);
80-
impl_byterepr_fn!(A, B, C, D, E, F);
81-
impl_byterepr_fn!(A, B, C, D, E, F, G);
82-
impl_byterepr_fn!(A, B, C, D, E, F, G, H);
83-
impl_byterepr_fn!(A, B, C, D, E, F, G, H, I);
84-
impl_byterepr_fn!(A, B, C, D, E, F, G, H, I, J);
8567
impl<T: 'static> ByteRepr for *const T {}
8668
impl<T: 'static> ByteRepr for *mut T {}
8769
impl<A: ByteRepr, B: ByteRepr> ByteRepr for (A, B) {}

0 commit comments

Comments
 (0)