Skip to content

Commit 0ce3541

Browse files
author
David AO Lozano
committed
---
yaml --- r: 272182 b: refs/heads/auto c: 823f239 h: refs/heads/master
1 parent 592f5c6 commit 0ce3541

File tree

256 files changed

+1776
-1941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+1776
-1941
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: c8b8eb1fda90998832ba1cdf96a34dc676f7124b
11+
refs/heads/auto: 823f239ae581f66d73c8239566aa837b713ef210
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/COMPILER_TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn test_foo() {
7777
}
7878
```
7979

80-
Note that not all headers have meaning when customized to a revision.
80+
Note that not all headers have meaning when customized too a revision.
8181
For example, the `ignore-test` header (and all "ignore" headers)
8282
currently only apply to the test as a whole, not to particular
8383
revisions. The only headers that are intended to really work when

branches/auto/mk/crates.mk

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5959
rustc_data_structures rustc_front rustc_platform_intrinsics \
6060
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
61-
rustc_const_eval rustc_const_math
61+
rustc_const_eval
6262
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros \
6363
flate arena graphviz rbml log serialize
6464
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
@@ -92,39 +92,36 @@ DEPS_test := std getopts term native:rust_test_helpers
9292
DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode
9393
DEPS_syntax_ext := syntax fmt_macros
9494

95-
DEPS_rustc_const_math := std syntax log serialize
96-
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize rustc_front \
97-
rustc_back graphviz
95+
DEPS_rustc_const_eval := std syntax
9896

9997
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
10098
log graphviz rustc_back rustc_data_structures\
101-
rustc_const_math
99+
rustc_const_eval
102100
DEPS_rustc_back := std syntax rustc_front flate log libc
103101
DEPS_rustc_borrowck := rustc rustc_front rustc_mir log graphviz syntax
104102
DEPS_rustc_data_structures := std log serialize
105103
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
106104
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
107105
rustc_trans rustc_privacy rustc_lint rustc_front rustc_plugin \
108-
rustc_metadata syntax_ext rustc_passes rustc_save_analysis rustc_const_eval
106+
rustc_metadata syntax_ext rustc_passes rustc_save_analysis
109107
DEPS_rustc_front := std syntax log serialize
110-
DEPS_rustc_lint := rustc log syntax rustc_const_eval
108+
DEPS_rustc_lint := rustc log syntax
111109
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
112-
DEPS_rustc_metadata := rustc rustc_front syntax rbml rustc_const_math
113-
DEPS_rustc_passes := syntax rustc core rustc_front rustc_const_eval
114-
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_math rustc_const_eval
110+
DEPS_rustc_metadata := rustc rustc_front syntax rbml rustc_const_eval
111+
DEPS_rustc_passes := syntax rustc core rustc_front
112+
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_eval
115113
DEPS_rustc_resolve := arena rustc rustc_front log syntax
116114
DEPS_rustc_platform_intrinsics := std
117115
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
118116
DEPS_rustc_privacy := rustc rustc_front log syntax
119117
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
120118
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics \
121-
rustc_const_math rustc_const_eval
119+
rustc_const_eval
122120
DEPS_rustc_save_analysis := rustc log syntax rustc_front
123-
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_math \
124-
rustc_const_eval
121+
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_eval
125122

126123
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
127-
test rustc_lint rustc_front rustc_const_eval
124+
test rustc_lint rustc_front
128125

129126

130127
TOOL_DEPS_compiletest := test getopts log

branches/auto/src/bootstrap/build/compile.rs

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -123,38 +123,6 @@ fn build_startup_objects(build: &Build, target: &str, into: &Path) {
123123
}
124124
}
125125

126-
/// Build libtest.
127-
///
128-
/// This will build libtest and supporting libraries for a particular stage of
129-
/// the build using the `compiler` targeting the `target` architecture. The
130-
/// artifacts created will also be linked into the sysroot directory.
131-
pub fn test<'a>(build: &'a Build, target: &str, compiler: &Compiler<'a>) {
132-
println!("Building stage{} test artifacts ({} -> {})", compiler.stage,
133-
compiler.host, target);
134-
let out_dir = build.cargo_out(compiler, Mode::Libtest, target);
135-
build.clear_if_dirty(&out_dir, &libstd_shim(build, compiler, target));
136-
let mut cargo = build.cargo(compiler, Mode::Libtest, target, "build");
137-
cargo.arg("--manifest-path")
138-
.arg(build.src.join("src/rustc/test_shim/Cargo.toml"));
139-
build.run(&mut cargo);
140-
test_link(build, target, compiler, compiler.host);
141-
}
142-
143-
/// Link all libtest rlibs/dylibs into the sysroot location.
144-
///
145-
/// Links those artifacts generated in the given `stage` for `target` produced
146-
/// by `compiler` into `host`'s sysroot.
147-
pub fn test_link(build: &Build,
148-
target: &str,
149-
compiler: &Compiler,
150-
host: &str) {
151-
let target_compiler = Compiler::new(compiler.stage, host);
152-
let libdir = build.sysroot_libdir(&target_compiler, target);
153-
let out_dir = build.cargo_out(compiler, Mode::Libtest, target);
154-
add_to_sysroot(&out_dir, &libdir);
155-
}
156-
157-
158126
/// Build the compiler.
159127
///
160128
/// This will build the compiler for a particular stage of the build using
@@ -165,7 +133,7 @@ pub fn rustc<'a>(build: &'a Build, target: &str, compiler: &Compiler<'a>) {
165133
compiler.stage, compiler.host, target);
166134

167135
let out_dir = build.cargo_out(compiler, Mode::Librustc, target);
168-
build.clear_if_dirty(&out_dir, &libtest_shim(build, compiler, target));
136+
build.clear_if_dirty(&out_dir, &libstd_shim(build, compiler, target));
169137

170138
let mut cargo = build.cargo(compiler, Mode::Librustc, target, "build");
171139
cargo.arg("--features").arg(build.rustc_features())
@@ -234,12 +202,6 @@ fn libstd_shim(build: &Build, compiler: &Compiler, target: &str) -> PathBuf {
234202
build.cargo_out(compiler, Mode::Libstd, target).join("libstd_shim.rlib")
235203
}
236204

237-
/// Cargo's output path for libtest in a given stage, compiled by a particular
238-
/// compiler for the specified target.
239-
fn libtest_shim(build: &Build, compiler: &Compiler, target: &str) -> PathBuf {
240-
build.cargo_out(compiler, Mode::Libtest, target).join("libtest_shim.rlib")
241-
}
242-
243205
fn compiler_file(compiler: &Path, file: &str) -> String {
244206
output(Command::new(compiler)
245207
.arg(format!("-print-file-name={}", file))).trim().to_string()

branches/auto/src/bootstrap/build/doc.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,6 @@ pub fn std(build: &Build, stage: u32, host: &str, out: &Path) {
122122
cp_r(&out_dir, out)
123123
}
124124

125-
pub fn test(build: &Build, stage: u32, host: &str, out: &Path) {
126-
println!("Documenting stage{} test ({})", stage, host);
127-
let compiler = Compiler::new(stage, host);
128-
let out_dir = build.stage_out(&compiler, Mode::Libtest)
129-
.join(host).join("doc");
130-
let rustdoc = build.rustdoc(&compiler);
131-
132-
build.clear_if_dirty(&out_dir, &rustdoc);
133-
134-
let mut cargo = build.cargo(&compiler, Mode::Libtest, host, "doc");
135-
cargo.arg("--manifest-path")
136-
.arg(build.src.join("src/rustc/test_shim/Cargo.toml"));
137-
build.run(&mut cargo);
138-
cp_r(&out_dir, out)
139-
}
140-
141125
pub fn rustc(build: &Build, stage: u32, host: &str, out: &Path) {
142126
println!("Documenting stage{} compiler ({})", stage, host);
143127
let compiler = Compiler::new(stage, host);

branches/auto/src/bootstrap/build/mod.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ pub struct Build {
8888

8989
pub enum Mode {
9090
Libstd,
91-
Libtest,
9291
Librustc,
9392
Tool,
9493
}
@@ -142,13 +141,9 @@ impl Build {
142141
return clean::clean(self);
143142
}
144143

145-
self.verbose("finding compilers");
146144
cc::find(self);
147-
self.verbose("running sanity check");
148145
sanity::check(self);
149-
self.verbose("collecting channel variables");
150146
channel::collect(self);
151-
self.verbose("updating submodules");
152147
self.update_submodules();
153148

154149
for target in step::all(self) {
@@ -163,18 +158,12 @@ impl Build {
163158
Libstd { compiler } => {
164159
compile::std(self, target.target, &compiler);
165160
}
166-
Libtest { compiler } => {
167-
compile::test(self, target.target, &compiler);
168-
}
169161
Librustc { compiler } => {
170162
compile::rustc(self, target.target, &compiler);
171163
}
172164
LibstdLink { compiler, host } => {
173165
compile::std_link(self, target.target, &compiler, host);
174166
}
175-
LibtestLink { compiler, host } => {
176-
compile::test_link(self, target.target, &compiler, host);
177-
}
178167
LibrustcLink { compiler, host } => {
179168
compile::rustc_link(self, target.target, &compiler, host);
180169
}
@@ -214,9 +203,6 @@ impl Build {
214203
DocStd { stage } => {
215204
doc::std(self, stage, target.target, &doc_out);
216205
}
217-
DocTest { stage } => {
218-
doc::test(self, stage, target.target, &doc_out);
219-
}
220206
DocRustc { stage } => {
221207
doc::rustc(self, stage, target.target, &doc_out);
222208
}
@@ -374,7 +360,6 @@ impl Build {
374360
let host = compiler.host;
375361
let paths = vec![
376362
self.cargo_out(compiler, Mode::Libstd, host).join("deps"),
377-
self.cargo_out(compiler, Mode::Libtest, host).join("deps"),
378363
self.cargo_out(compiler, Mode::Librustc, host).join("deps"),
379364
];
380365
add_lib_path(paths, &mut cmd);
@@ -429,8 +414,7 @@ impl Build {
429414
fn stage_out(&self, compiler: &Compiler, mode: Mode) -> PathBuf {
430415
let suffix = match mode {
431416
Mode::Libstd => "-std",
432-
Mode::Libtest => "-test",
433-
Mode::Tool | Mode::Librustc => "-rustc",
417+
_ => "-rustc",
434418
};
435419
self.out.join(compiler.host)
436420
.join(format!("stage{}{}", compiler.stage, suffix))

branches/auto/src/bootstrap/build/step.rs

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,19 @@ macro_rules! targets {
2525
// compiler executable itself, not any of the support libraries
2626
(rustc, Rustc { stage: u32 }),
2727

28-
// Steps for the two main cargo builds. These are parameterized over
29-
// the compiler which is producing the artifact.
28+
// Steps for the two main cargo builds, one for the standard library
29+
// and one for the compiler itself. These are parameterized over the
30+
// stage output they're going to be placed in along with the
31+
// compiler which is producing the copy of libstd or librustc
3032
(libstd, Libstd { compiler: Compiler<'a> }),
31-
(libtest, Libtest { compiler: Compiler<'a> }),
3233
(librustc, Librustc { compiler: Compiler<'a> }),
3334

34-
// Links the target produced by the compiler provided into the
35-
// host's directory also provided.
35+
// Links the standard library/librustc produced by the compiler
36+
// provided into the host's directory also provided.
3637
(libstd_link, LibstdLink {
3738
compiler: Compiler<'a>,
3839
host: &'a str
3940
}),
40-
(libtest_link, LibtestLink {
41-
compiler: Compiler<'a>,
42-
host: &'a str
43-
}),
4441
(librustc_link, LibrustcLink {
4542
compiler: Compiler<'a>,
4643
host: &'a str
@@ -70,7 +67,6 @@ macro_rules! targets {
7067
(doc_style, DocStyle { stage: u32 }),
7168
(doc_standalone, DocStandalone { stage: u32 }),
7269
(doc_std, DocStd { stage: u32 }),
73-
(doc_test, DocTest { stage: u32 }),
7470
(doc_rustc, DocRustc { stage: u32 }),
7571
(doc_error_index, DocErrorIndex { stage: u32 }),
7672

@@ -166,10 +162,10 @@ fn top_level(build: &Build) -> Vec<Step> {
166162

167163
if host.target == build.config.build {
168164
targets.push(host.target(target)
169-
.libtest(host.compiler(stage)));
165+
.libstd(host.compiler(stage)));
170166
} else {
171167
targets.push(host.target(target)
172-
.libtest_link(t.compiler(stage), host.target));
168+
.libstd_link(t.compiler(stage), host.target));
173169
}
174170
}
175171
}
@@ -250,21 +246,15 @@ impl<'a> Step<'a> {
250246
vec![self.librustc(compiler)]
251247
}
252248
Source::Librustc { compiler } => {
253-
vec![self.libtest(compiler), self.llvm(())]
254-
}
255-
Source::Libtest { compiler } => {
256-
vec![self.libstd(compiler)]
249+
vec![self.libstd(compiler), self.llvm(())]
257250
}
258251
Source::Libstd { compiler } => {
259252
vec![self.compiler_rt(()),
260253
self.rustc(compiler.stage).target(compiler.host)]
261254
}
262255
Source::LibrustcLink { compiler, host } => {
263256
vec![self.librustc(compiler),
264-
self.libtest_link(compiler, host)]
265-
}
266-
Source::LibtestLink { compiler, host } => {
267-
vec![self.libtest(compiler), self.libstd_link(compiler, host)]
257+
self.libstd_link(compiler, host)]
268258
}
269259
Source::LibstdLink { compiler, host } => {
270260
vec![self.libstd(compiler),
@@ -277,9 +267,6 @@ impl<'a> Step<'a> {
277267
Source::DocStd { stage } => {
278268
vec![self.libstd(self.compiler(stage))]
279269
}
280-
Source::DocTest { stage } => {
281-
vec![self.libtest(self.compiler(stage))]
282-
}
283270
Source::DocBook { stage } |
284271
Source::DocNomicon { stage } |
285272
Source::DocStyle { stage } => {
@@ -292,7 +279,7 @@ impl<'a> Step<'a> {
292279
vec![self.rustc(stage)]
293280
}
294281
Source::DocRustc { stage } => {
295-
vec![self.doc_test(stage)]
282+
vec![self.doc_std(stage)]
296283
}
297284
Source::Doc { stage } => {
298285
vec![self.doc_book(stage), self.doc_nomicon(stage),
@@ -328,7 +315,7 @@ impl<'a> Step<'a> {
328315
vec![self.rustc(stage)]
329316
}
330317
Source::DistStd { compiler } => {
331-
vec![self.libtest(compiler)]
318+
vec![self.libstd(compiler)]
332319
}
333320

334321
Source::Dist { stage } => {

branches/auto/src/doc/book/associated-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ declarations.
131131
## Trait objects with associated types
132132

133133
There’s one more bit of syntax we should talk about: trait objects. If you
134-
try to create a trait object from a trait with an associated type, like this:
134+
try to create a trait object from an associated type, like this:
135135

136136
```rust,ignore
137137
# trait Graph {

branches/auto/src/doc/book/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ installed. Doing so will depend on your specific system, consult its
164164
documentation for more details.
165165

166166
If not, there are a number of places where we can get help. The easiest is
167-
[the #rust IRC channel on irc.mozilla.org][irc], which we can access through
167+
[the #rust-beginners IRC channel on irc.mozilla.org][irc], which we can access through
168168
[Mibbit][mibbit]. Click that link, and we'll be chatting with other Rustaceans
169169
(a silly nickname we call ourselves) who can help us out. Other great resources
170170
include [the user’s forum][users], and [Stack Overflow][stackoverflow].
171171

172-
[irc]: irc://irc.mozilla.org/#rust
173-
[mibbit]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
172+
[irc]: irc://irc.mozilla.org/#rust-begginers
173+
[mibbit]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-beginners
174174
[users]: https://users.rust-lang.org/
175175
[stackoverflow]: http://stackoverflow.com/questions/tagged/rust
176176

branches/auto/src/doc/book/no-stdlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
3838
// for a bare-bones hello world. These are normally
3939
// provided by libstd.
4040
#[lang = "eh_personality"] extern fn eh_personality() {}
41-
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop {} }
41+
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }
4242
# #[lang = "eh_unwind_resume"] extern fn rust_eh_unwind_resume() {}
4343
# #[no_mangle] pub extern fn rust_eh_register_frames () {}
4444
# #[no_mangle] pub extern fn rust_eh_unregister_frames () {}
@@ -65,7 +65,7 @@ pub extern fn main(argc: i32, argv: *const *const u8) -> i32 {
6565
}
6666

6767
#[lang = "eh_personality"] extern fn eh_personality() {}
68-
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop {} }
68+
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }
6969
# #[lang = "eh_unwind_resume"] extern fn rust_eh_unwind_resume() {}
7070
# #[no_mangle] pub extern fn rust_eh_register_frames () {}
7171
# #[no_mangle] pub extern fn rust_eh_unregister_frames () {}

branches/auto/src/doc/book/vectors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ You can iterate the vector multiple times by taking a reference to the vector wh
120120
For example, the following code does not compile.
121121

122122
```rust,ignore
123-
let v = vec![1, 2, 3, 4, 5];
123+
let mut v = vec![1, 2, 3, 4, 5];
124124
125125
for i in v {
126126
println!("Take ownership of the vector and its element {}", i);
@@ -134,7 +134,7 @@ for i in v {
134134
Whereas the following works perfectly,
135135

136136
```rust
137-
let v = vec![1, 2, 3, 4, 5];
137+
let mut v = vec![1, 2, 3, 4, 5];
138138

139139
for i in &v {
140140
println!("This is a reference to {}", i);

0 commit comments

Comments
 (0)