Skip to content

Commit 797689d

Browse files
committed
---
yaml --- r: 60631 b: refs/heads/auto c: ebfc2b8 h: refs/heads/master i: 60629: 23e40ab 60627: 334cc29 60623: fda5b6f v: v3
1 parent f08e24a commit 797689d

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 0c820d4123c754522b0655e9e74f692c55685bfa
17+
refs/heads/auto: ebfc2b8e5671a8c56988e05f83c3b1eeaf2abb9a
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/librustc/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ pub fn compile_rest(sess: Session,
198198
crate = time(time_passes, ~"intrinsic injection", ||
199199
front::intrinsic_inject::inject_intrinsic(sess, crate));
200200

201-
crate = time(time_passes, ~"core injection", ||
202-
front::core_inject::maybe_inject_libcore_ref(sess, crate));
201+
crate = time(time_passes, ~"std injection", ||
202+
front::std_inject::maybe_inject_libstd_ref(sess, crate));
203203

204204
let ast_map = time(time_passes, ~"ast indexing", ||
205205
syntax::ast_map::map_crate(sess.diagnostic(), crate));

branches/auto/src/librustc/front/core_inject.rs renamed to branches/auto/src/librustc/front/std_inject.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,22 @@ use syntax::codemap;
1616
use syntax::codemap::dummy_sp;
1717
use syntax::fold;
1818

19-
static CORE_VERSION: &'static str = "0.7-pre";
19+
static STD_VERSION: &'static str = "0.7-pre";
2020

21-
pub fn maybe_inject_libcore_ref(sess: Session,
22-
crate: @ast::crate) -> @ast::crate {
23-
if use_core(crate) {
24-
inject_libcore_ref(sess, crate)
21+
pub fn maybe_inject_libstd_ref(sess: Session, crate: @ast::crate)
22+
-> @ast::crate {
23+
if use_std(crate) {
24+
inject_libstd_ref(sess, crate)
2525
} else {
2626
crate
2727
}
2828
}
2929

30-
fn use_core(crate: @ast::crate) -> bool {
31-
!attr::attrs_contains_name(crate.node.attrs, "no_core")
30+
fn use_std(crate: @ast::crate) -> bool {
31+
!attr::attrs_contains_name(crate.node.attrs, "no_std")
3232
}
3333

34-
fn inject_libcore_ref(sess: Session,
35-
crate: @ast::crate) -> @ast::crate {
34+
fn inject_libstd_ref(sess: Session, crate: @ast::crate) -> @ast::crate {
3635
fn spanned<T:Copy>(x: T) -> codemap::spanned<T> {
3736
codemap::spanned { node: x, span: dummy_sp() }
3837
}
@@ -48,7 +47,7 @@ fn inject_libcore_ref(sess: Session,
4847
style: ast::attr_inner,
4948
value: @spanned(ast::meta_name_value(
5049
@~"vers",
51-
spanned(ast::lit_str(@CORE_VERSION.to_str()))
50+
spanned(ast::lit_str(@STD_VERSION.to_str()))
5251
)),
5352
is_sugared_doc: false
5453
})

branches/auto/src/librustc/rustc.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub mod middle {
102102
pub mod front {
103103
pub mod config;
104104
pub mod test;
105-
pub mod core_inject;
105+
pub mod std_inject;
106106
pub mod intrinsic_inject;
107107
}
108108

branches/auto/src/libstd/core.rc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ they contained the following prologue:
5757
#[crate_type = "lib"];
5858

5959

60-
// Don't link to core. We are core.
61-
#[no_core];
60+
// Don't link to std. We are std.
61+
#[no_core]; // for stage0
62+
#[no_std];
6263

6364
#[deny(non_camel_case_types)];
6465

branches/auto/src/test/compile-fail/tag-that-dare-not-speak-its-name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// error-pattern:mismatched types: expected `char` but found
1212
// Issue #876
1313

14-
#[no_core];
14+
#[no_std];
1515

1616
extern mod core;
1717

branches/auto/src/test/run-pass/trait-to-str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// xfail-fast
1212

13-
#[no_core];
13+
#[no_std];
1414

1515
extern mod core;
1616

branches/auto/src/test/run-pass/use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// option. This file may not be copied, modified, or distributed
1111
// except according to those terms.
1212

13-
#[no_core];
13+
#[no_std];
1414
extern mod core;
1515
extern mod zed(name = "core");
1616
extern mod bar(name = "core", vers = "0.7-pre");

0 commit comments

Comments
 (0)