about summary refs log tree commit diff
path: root/src/libstd/rt/mod.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-06-23 14:15:39 -0700
committerBrian Anderson <banderson@mozilla.com>2013-06-24 17:07:03 -0700
commitd071f51cdc7c3492ae2bc4180ffbf13bcdb31439 (patch)
tree66c0dbf70798728bf0adeaed716e716bec06b450 /src/libstd/rt/mod.rs
parentb530ca103388c99e774868645758785d6ad6b9a9 (diff)
downloadrust-d071f51cdc7c3492ae2bc4180ffbf13bcdb31439.tar.gz
rust-d071f51cdc7c3492ae2bc4180ffbf13bcdb31439.zip
std::rt: deny(unused_unsafe)
Diffstat (limited to 'src/libstd/rt/mod.rs')
-rw-r--r--src/libstd/rt/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs
index fec555e8afd..8713cf05a47 100644
--- a/src/libstd/rt/mod.rs
+++ b/src/libstd/rt/mod.rs
@@ -58,6 +58,7 @@ Several modules in `core` are clients of `rt`:
 #[deny(unused_imports)];
 #[deny(unused_mut)];
 #[deny(unused_variable)];
+#[deny(unused_unsafe)];
 
 use cell::Cell;
 use clone::Clone;
@@ -224,7 +225,7 @@ pub fn run(main: ~fn()) -> int {
 
     let nthreads = match os::getenv("RUST_THREADS") {
         Some(nstr) => FromStr::from_str(nstr).get(),
-        None => unsafe { util::num_cpus() }
+        None => util::num_cpus()
     };
 
     // The shared list of sleeping schedulers. Schedulers wake each other