We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2df029 commit 3f6122dCopy full SHA for 3f6122d
1 file changed
libcc2rs/src/reinterpret.rs
@@ -64,24 +64,6 @@ impl<T: ByteRepr> ByteRepr for std::rc::Rc<T> {}
64
impl<T: ByteRepr> ByteRepr for std::cell::RefCell<T> {}
65
impl<T: ByteRepr> ByteRepr for Box<[T]> {}
66
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);
85
impl<T: 'static> ByteRepr for *const T {}
86
impl<T: 'static> ByteRepr for *mut T {}
87
impl<A: ByteRepr, B: ByteRepr> ByteRepr for (A, B) {}
0 commit comments