about summary refs log tree commit diff
path: root/library/std/src/sync/poison/mutex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sync/poison/mutex.rs')
-rw-r--r--library/std/src/sync/poison/mutex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/poison/mutex.rs b/library/std/src/sync/poison/mutex.rs
index 7e9d920d92f..6fdb4f6799e 100644
--- a/library/std/src/sync/poison/mutex.rs
+++ b/library/std/src/sync/poison/mutex.rs
@@ -668,7 +668,7 @@ impl<T: ?Sized> Mutex<T> {
     /// are properly synchronized to avoid data races, and that it is not read
     /// or written through after the mutex is dropped.
     #[unstable(feature = "mutex_data_ptr", issue = "140368")]
-    pub fn data_ptr(&self) -> *mut T {
+    pub const fn data_ptr(&self) -> *mut T {
         self.data.get()
     }
 }