Chris Morgan
›
Git
›
anymap
› commitdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
901b94e
)
commit
grep
author
committer
pickaxe
?
search:
re
Rust update.
author
Chris Morgan
<me@chrismorgan.info>
Fri, 28 Nov 2014 05:51:35 +0000
committer
Chris Morgan
<me@chrismorgan.info>
Fri, 28 Nov 2014 05:51:35 +0000
src/lib.rs
patch
|
blob
|
history
diff --git
a/src/lib.rs
b/src/lib.rs
index e118a438308d3c5e67c26e8d7a8d1ec77b0423ff..aec644565434075c6d81be1068dc71e165cd99a9 100644
(file)
--- a/
src/lib.rs
+++ b/
src/lib.rs
@@
-56,7
+56,7
@@
trait UncheckedAnyRefExt<'a> {
unsafe fn downcast_ref_unchecked<T: 'static>(self) -> &'a T;
}
unsafe fn downcast_ref_unchecked<T: 'static>(self) -> &'a T;
}
-impl<'a> UncheckedAnyRefExt<'a> for &'a
Any + 'a
{
+impl<'a> UncheckedAnyRefExt<'a> for &'a
(Any + 'a)
{
#[inline]
unsafe fn downcast_ref_unchecked<T: 'static>(self) -> &'a T {
// Get the raw representation of the trait object
#[inline]
unsafe fn downcast_ref_unchecked<T: 'static>(self) -> &'a T {
// Get the raw representation of the trait object
@@
-74,7
+74,7
@@
trait UncheckedAnyMutRefExt<'a> {
unsafe fn downcast_mut_unchecked<T: 'static>(self) -> &'a mut T;
}
unsafe fn downcast_mut_unchecked<T: 'static>(self) -> &'a mut T;
}
-impl<'a> UncheckedAnyMutRefExt<'a> for &'a mut
Any + 'a
{
+impl<'a> UncheckedAnyMutRefExt<'a> for &'a mut
(Any + 'a)
{
#[inline]
unsafe fn downcast_mut_unchecked<T: 'static>(self) -> &'a mut T {
// Get the raw representation of the trait object
#[inline]
unsafe fn downcast_mut_unchecked<T: 'static>(self) -> &'a mut T {
// Get the raw representation of the trait object