Chris Morgan
›
Git
›
anymap
› blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
commit
grep
author
committer
pickaxe
?
search:
re
s/unstable/bench/ in travis config
[anymap]
/
src
/
any.rs
diff --git
a/src/any.rs
b/src/any.rs
index 45ad5cccc98dd59ba7309fcde048469e062d261d..87028fbc6334a7a42e4bb945bd9190fa3f9bf474 100644
(file)
--- a/
src/any.rs
+++ b/
src/any.rs
@@
-88,12
+88,11
@@
macro_rules! impl_clone {
}
}
}
}
-#[cfg(feature = "
nightly
")]
+#[cfg(feature = "
unstable
")]
use std::raw::TraitObject;
use std::raw::TraitObject;
-#[cfg(not(feature = "
nightly
"))]
+#[cfg(not(feature = "
unstable
"))]
#[repr(C)]
#[repr(C)]
-#[allow(raw_pointer_derive)]
#[derive(Copy, Clone)]
struct TraitObject {
pub data: *mut (),
#[derive(Copy, Clone)]
struct TraitObject {
pub data: *mut (),
@@
-116,15
+115,9
@@
pub trait IntoBox<A: ?Sized + UncheckedAnyExt>: Any {
macro_rules! implement {
($base:ident, $(+ $bounds:ident)*) => {
macro_rules! implement {
($base:ident, $(+ $bounds:ident)*) => {
- impl
<'a> fmt::Debug for &'a ($base $(+ $bounds)*)
{
+ impl
fmt::Debug for $base $(+ $bounds)*
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.pad(stringify!(&($base $(+ $bounds)*)))
- }
- }
-
- impl<'a> fmt::Debug for Box<$base $(+ $bounds)*> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.pad(stringify!(Box<$base $(+ $bounds)*>))
+ f.pad(stringify!($base $(+ $bounds)*))
}
}
}
}