about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2016-10-14 15:07:18 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2016-10-14 17:21:11 +0300
commit72399f2db75f7049a5f81e98e9c537ba7d2694db (patch)
tree50b84840c5b364184734d83d15395eb9d17fee43 /src/libstd/sync
parent350b0d89467d53a6febd9439beeed03d4a2e8c04 (diff)
downloadrust-72399f2db75f7049a5f81e98e9c537ba7d2694db.tar.gz
rust-72399f2db75f7049a5f81e98e9c537ba7d2694db.zip
Rename static mut to upper case
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/once.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index ad9d0b37544..71e163321ae 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -387,7 +387,7 @@ mod tests {
     #[test]
     fn stampede_once() {
         static O: Once = Once::new();
-        static mut run: bool = false;
+        static mut RUN: bool = false;
 
         let (tx, rx) = channel();
         for _ in 0..10 {
@@ -396,10 +396,10 @@ mod tests {
                 for _ in 0..4 { thread::yield_now() }
                 unsafe {
                     O.call_once(|| {
-                        assert!(!run);
-                        run = true;
+                        assert!(!RUN);
+                        RUN = true;
                     });
-                    assert!(run);
+                    assert!(RUN);
                 }
                 tx.send(()).unwrap();
             });
@@ -407,10 +407,10 @@ mod tests {
 
         unsafe {
             O.call_once(|| {
-                assert!(!run);
-                run = true;
+                assert!(!RUN);
+                RUN = true;
             });
-            assert!(run);
+            assert!(RUN);
         }
 
         for _ in 0..10 {