diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-26 16:23:34 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-26 16:43:33 -0800 |
| commit | 28fbb19664db24c9d40e81f74bf75ac1d5d0f36b (patch) | |
| tree | f11aafd32c44b3f90c981668f6e2fe2533a0ffe0 /src/libcore | |
| parent | 2220d0f20f7faf63de3bb805fcfa0fa7a4c416ee (diff) | |
rustc: Switch the --no-core switch to a #[no_core] attribute
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/core.rc | 7 |
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; |
