about summary refs log tree commit diff
path: root/library/std/src/sync/nonpoison/rwlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sync/nonpoison/rwlock.rs')
-rw-r--r--library/std/src/sync/nonpoison/rwlock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/nonpoison/rwlock.rs b/library/std/src/sync/nonpoison/rwlock.rs
index eb0aef99cc1..b2f26edc083 100644
--- a/library/std/src/sync/nonpoison/rwlock.rs
+++ b/library/std/src/sync/nonpoison/rwlock.rs
@@ -495,7 +495,7 @@ impl<T: ?Sized> RwLock<T> {
     /// or written through after the lock is dropped.
     #[unstable(feature = "rwlock_data_ptr", issue = "140368")]
     // #[unstable(feature = "nonpoison_rwlock", issue = "134645")]
-    pub fn data_ptr(&self) -> *mut T {
+    pub const fn data_ptr(&self) -> *mut T {
         self.data.get()
     }
 }