about summary refs log tree commit diff
path: root/src/libstd/sync
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/sync
parent53fe6294170e5f872877e87c1b05795b2b4d11d1 (diff)
downloadrust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.tar.gz
rust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.zip
reduce list to functions callable in const ctx.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/condvar.rs2
-rw-r--r--src/libstd/sync/mpsc/mod.rs4
-rw-r--r--src/libstd/sync/once.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/sync/condvar.rs b/src/libstd/sync/condvar.rs
index 1c6cc9cb361..3014283da5b 100644
--- a/src/libstd/sync/condvar.rs
+++ b/src/libstd/sync/condvar.rs
@@ -72,7 +72,7 @@ impl WaitTimeoutResult {
     /// }
     /// ```
     #[stable(feature = "wait_timeout", since = "1.5.0")]
-    pub const fn timed_out(&self) -> bool {
+    pub fn timed_out(&self) -> bool {
         self.0
     }
 }
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs
index 2a2e5c030b3..b726168c7c6 100644
--- a/src/libstd/sync/mpsc/mod.rs
+++ b/src/libstd/sync/mpsc/mod.rs
@@ -1469,7 +1469,7 @@ impl<T> Receiver<T> {
     /// assert_eq!(iter.next(), None);
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
-    pub const fn iter(&self) -> Iter<T> {
+    pub fn iter(&self) -> Iter<T> {
         Iter { rx: self }
     }
 
@@ -1512,7 +1512,7 @@ impl<T> Receiver<T> {
     /// assert_eq!(iter.next(), None);
     /// ```
     #[stable(feature = "receiver_try_iter", since = "1.15.0")]
-    pub const fn try_iter(&self) -> TryIter<T> {
+    pub fn try_iter(&self) -> TryIter<T> {
         TryIter { rx: self }
     }
 
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index 4dd37ec3878..cf9698cb2a9 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -517,7 +517,7 @@ impl OnceState {
     ///     assert!(!state.poisoned());
     /// });
     #[unstable(feature = "once_poison", issue = "33577")]
-    pub const fn poisoned(&self) -> bool {
+    pub fn poisoned(&self) -> bool {
         self.poisoned
     }
 }