diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-10-23 23:09:44 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-11-10 01:10:07 +0100 |
| commit | e15c62d61fa02fac93992db9297aa4a8a56cef93 (patch) | |
| tree | 7f1e21f22c66f3d4988fdbf347031bd6d67a3af0 /src/libcore/ptr.rs | |
| parent | d1d2aa22c0d15465af1daccdb3821450c98d0ed0 (diff) | |
| download | rust-e15c62d61fa02fac93992db9297aa4a8a56cef93.tar.gz rust-e15c62d61fa02fac93992db9297aa4a8a56cef93.zip | |
revert making internal APIs const fn.
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index c06e580e30e..b795cd72150 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2759,7 +2759,7 @@ impl<T: ?Sized> Unique<T> { } /// Acquires the underlying `*mut` pointer. - pub const fn as_ptr(self) -> *mut T { + pub fn as_ptr(self) -> *mut T { self.pointer.0 as *mut T } |
