about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorWilliam Ting <william.h.ting@gmail.com>2013-01-11 02:27:01 -0600
committerWilliam Ting <william.h.ting@gmail.com>2013-01-11 02:30:10 -0600
commit9fd970ad13bca7f6155ed15901492cd190c81616 (patch)
tree0a0e8dcabf871ea3b05f2fc707fd62822aaefe6b /src/libstd
parentad2fc50ca1d8fecdc54306203f226d87a365ce36 (diff)
downloadrust-9fd970ad13bca7f6155ed15901492cd190c81616.tar.gz
rust-9fd970ad13bca7f6155ed15901492cd190c81616.zip
Adds priv qualifiers where they have been commented out before implementation.
Updates #4386.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/future.rs2
-rw-r--r--src/libstd/sync.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/future.rs b/src/libstd/future.rs
index 6a34c29b516..7d61326c02f 100644
--- a/src/libstd/future.rs
+++ b/src/libstd/future.rs
@@ -31,7 +31,7 @@ use core::task;
 
 #[doc = "The future type"]
 pub struct Future<A> {
-    /*priv*/ mut state: FutureState<A>,
+    priv mut state: FutureState<A>,
 }
 
 // FIXME(#2829) -- futures should not be copyable, because they close
diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs
index a883062c4b9..ce7a8481ffd 100644
--- a/src/libstd/sync.rs
+++ b/src/libstd/sync.rs
@@ -449,9 +449,9 @@ struct RWlockInner {
  * unwinds.
  */
 struct RWlock {
-    /* priv */ order_lock:  Semaphore,
-    /* priv */ access_lock: Sem<~[mut Waitqueue]>,
-    /* priv */ state:       Exclusive<RWlockInner>
+    priv order_lock:  Semaphore,
+    priv access_lock: Sem<~[mut Waitqueue]>,
+    priv state:       Exclusive<RWlockInner>
 }
 
 /// Create a new rwlock, with one associated condvar.
@@ -683,7 +683,7 @@ fn RWlockReleaseDowngrade(lock: &r/RWlock) -> RWlockReleaseDowngrade/&r {
 }
 
 /// The "write permission" token used for rwlock.write_downgrade().
-pub struct RWlockWriteMode { /* priv */ lock: &RWlock }
+pub struct RWlockWriteMode { priv lock: &RWlock }
 impl RWlockWriteMode : Drop { fn finalize(&self) {} }
 /// The "read permission" token used for rwlock.write_downgrade().
 pub struct RWlockReadMode  { priv lock: &RWlock }