We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50b26df + 9a8ef91 commit 4b81b6dCopy full SHA for 4b81b6d
src/libcore/ptr.rs
@@ -359,7 +359,7 @@ impl<T> RawPtr<T> for *T {
359
if self.is_null() {
360
None
361
} else {
362
- Some(mem::transmute(*self))
+ Some(&**self)
363
}
364
365
@@ -384,7 +384,7 @@ impl<T> RawPtr<T> for *mut T {
384
385
386
387
388
389
390
0 commit comments