about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-26 16:23:34 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-26 16:43:33 -0800
commit28fbb19664db24c9d40e81f74bf75ac1d5d0f36b (patch)
treef11aafd32c44b3f90c981668f6e2fe2533a0ffe0 /src/libcore
parent2220d0f20f7faf63de3bb805fcfa0fa7a4c416ee (diff)
rustc: Switch the --no-core switch to a #[no_core] attribute
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/core.rc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libcore/core.rc b/src/libcore/core.rc
index 534aeee9ee8..b90c1c16d1a 100644
--- a/src/libcore/core.rc
+++ b/src/libcore/core.rc
@@ -7,9 +7,13 @@
 #[license = "MIT"];
 #[crate_type = "lib"];
 
+// Don't link to core. We are core.
+#[no_core];
+
 #[doc(
     brief = "The Rust core library",
     desc = "
+
 The core library provides functionality that is closely tied to the Rust
 built-in types and runtime services, or that is used in nearly every
 non-trivial program.
@@ -20,7 +24,8 @@ as though the user had written the following:
     use core;
     import core::*;
 
-This behavior can be disabled with the `--no-core` compiler flag."
+This behavior can be disabled with the `no_core` crate attribute."
+
 )];
 
 export box, char, float, bessel, f32, f64, int, str, ptr;