Skip to content

Commit 53ca25f

Browse files
committed
---
yaml --- r: 275116 b: refs/heads/stable c: c92e910 h: refs/heads/master
1 parent acfd1b6 commit 53ca25f

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 028106c434dfe428d111c3c532f6995e16e26198
32+
refs/heads/stable: c92e910c117775563a6a8782db16a15215061bc1
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
url = https://github.com/rust-lang/rust-installer.git
1717
[submodule "src/liblibc"]
1818
path = src/liblibc
19-
url = https://github.com/rust-lang-nursery/libc.git
19+
url = https://github.com/rust-lang/libc.git

branches/stable/mk/dist.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ PKG_FILES := \
4848
$(S)configure $(S)Makefile.in \
4949
$(S)man \
5050
$(addprefix $(S)src/, \
51+
bootstrap \
52+
build_helper \
5153
compiletest \
5254
doc \
5355
driver \
@@ -60,6 +62,7 @@ PKG_FILES := \
6062
rt \
6163
rtstartup \
6264
rustllvm \
65+
rustc \
6366
snapshots.txt \
6467
rust-installer \
6568
rustbook \

branches/stable/src/doc/book/guessing-game.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ done:
258258
io::stdin().read_line(&mut guess).expect("failed to read line");
259259
```
260260

261-
But that gets hard to read. So we’ve split it up, three lines for three method
261+
But that gets hard to read. So we’ve split it up, two lines for two method
262262
calls. We already talked about `read_line()`, but what about `expect()`? Well,
263263
we already mentioned that `read_line()` puts what the user types into the `&mut
264264
String` we pass it. But it also returns a value: in this case, an
@@ -644,7 +644,7 @@ So far, that hasn’t mattered, and so Rust defaults to an `i32`. However, here,
644644
Rust doesn’t know how to compare the `guess` and the `secret_number`. They
645645
need to be the same type. Ultimately, we want to convert the `String` we
646646
read as input into a real number type, for comparison. We can do that
647-
with three more lines. Here’s our new program:
647+
with two more lines. Here’s our new program:
648648
649649
```rust,ignore
650650
extern crate rand;

branches/stable/src/liballoc/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ test = false
1010

1111
[dependencies]
1212
core = { path = "../libcore" }
13-
libc = { path = "../rustc/libc_shim" }
14-
alloc_system = { path = "../liballoc_system" }

branches/stable/src/liballoc/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,9 @@
9292
#![feature(unsafe_no_drop_flag, filling_drop)]
9393
#![feature(unsize)]
9494

95-
// Issue# 30592: Systematically use alloc_system during stage0 since jemalloc
96-
// might be unavailable or disabled
97-
#![cfg_attr(stage0, feature(alloc_system))]
98-
9995
#![cfg_attr(not(test), feature(raw, fn_traits, placement_new_protocol))]
10096
#![cfg_attr(test, feature(test, rustc_private, box_heap))]
10197

102-
#[cfg(stage0)]
103-
extern crate alloc_system;
104-
10598
// Allow testing this library
10699

107100
#[cfg(test)]

branches/stable/src/libstd/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@
269269
#![feature(vec_push_all)]
270270
#![feature(zero_one)]
271271

272+
// Issue# 30592: Systematically use alloc_system during stage0 since jemalloc
273+
// might be unavailable or disabled
274+
#![cfg_attr(stage0, feature(alloc_system))]
275+
272276
// Don't link to std. We are std.
273277
#![no_std]
274278

@@ -295,6 +299,9 @@ extern crate alloc;
295299
extern crate rustc_unicode;
296300
extern crate libc;
297301

302+
#[cfg(stage0)]
303+
extern crate alloc_system;
304+
298305
// Make std testable by not duplicating lang items and other globals. See #2912
299306
#[cfg(test)] extern crate std as realstd;
300307

0 commit comments

Comments
 (0)