summary refs log tree commit diff
path: root/src/libstd/ffi
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-10-23 18:06:11 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2018-11-10 01:10:07 +0100
commitd1d2aa22c0d15465af1daccdb3821450c98d0ed0 (patch)
tree18c62f427f6e1efd2edd878b565fcfd1e2897c5c /src/libstd/ffi
parent53fe6294170e5f872877e87c1b05795b2b4d11d1 (diff)
downloadrust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.tar.gz
rust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.zip
reduce list to functions callable in const ctx.
Diffstat (limited to 'src/libstd/ffi')
-rw-r--r--src/libstd/ffi/c_str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index feff65bff3f..e2dc02e40bf 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -833,7 +833,7 @@ impl NulError {
     /// assert_eq!(nul_error.nul_position(), 7);
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
-    pub const fn nul_position(&self) -> usize { self.0 }
+    pub fn nul_position(&self) -> usize { self.0 }
 
     /// Consumes this error, returning the underlying vector of bytes which
     /// generated the error in the first place.
@@ -909,7 +909,7 @@ impl IntoStringError {
 
     /// Access the underlying UTF-8 error that was the cause of this error.
     #[stable(feature = "cstring_into", since = "1.7.0")]
-    pub const fn utf8_error(&self) -> Utf8Error {
+    pub fn utf8_error(&self) -> Utf8Error {
         self.error
     }
 }