Skip to content

Commit 6faa11a

Browse files
committed
---
yaml --- r: 274908 b: refs/heads/stable c: a31d633 h: refs/heads/master
1 parent 7a1c3c1 commit 6faa11a

File tree

282 files changed

+2602
-5077
lines changed

Some content is hidden

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

282 files changed

+2602
-5077
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: 86e6e3235ee0df25ce41dcb48a08387125d31d35
32+
refs/heads/stable: a31d63320f20abddce1adc1a0e4d24b8063992bb
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*.elc
1818
*.epub
1919
*.exe
20-
*.pdb
2120
*.fn
2221
*.html
2322
*.kdev4

branches/stable/mk/cfg/i586-unknown-linux-gnu.mk

Lines changed: 0 additions & 23 deletions
This file was deleted.

branches/stable/mk/docs.mk

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ RUSTBOOK = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(RUSTBOOK_EXE)
6262
# The error-index-generator executable...
6363
ERR_IDX_GEN_EXE = $(HBIN2_H_$(CFG_BUILD))/error-index-generator$(X_$(CFG_BUILD))
6464
ERR_IDX_GEN = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE)
65-
ERR_IDX_GEN_MD = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE) markdown
6665

6766
D := $(S)src/doc
6867

@@ -218,12 +217,6 @@ doc/style/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/style/*.md) | doc/
218217

219218
error-index: doc/error-index.html
220219

221-
# Metadata used to generate the index is created as a side effect of
222-
# the build so this depends on every crate being up to date.
223-
doc/error-index.html: $(ERR_IDX_GEN_EXE) $(CSREQ$(2)_T_$(CFG_BUILD)_H_$(CFG_BUILD)) | doc/
220+
doc/error-index.html: $(ERR_IDX_GEN_EXE) | doc/
224221
$(Q)$(call E, error-index-generator: $@)
225222
$(Q)$(ERR_IDX_GEN)
226-
227-
doc/error-index.md: $(ERR_IDX_GEN_EXE) $(CSREQ$(2)_T_$(CFG_BUILD)_H_$(CFG_BUILD)) | doc/
228-
$(Q)$(call E, error-index-generator: $@)
229-
$(Q)$(ERR_IDX_GEN_MD)

branches/stable/mk/tests.mk

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
298298
check-stage$(1)-T-$(2)-H-$(3)-rfail-exec \
299299
check-stage$(1)-T-$(2)-H-$(3)-cfail-exec \
300300
check-stage$(1)-T-$(2)-H-$(3)-pfail-exec \
301-
check-stage$(1)-T-$(2)-H-$(3)-rpass-valgrind-exec \
302-
check-stage$(1)-T-$(2)-H-$(3)-rpass-full-exec \
303-
check-stage$(1)-T-$(2)-H-$(3)-rfail-full-exec \
301+
check-stage$(1)-T-$(2)-H-$(3)-rpass-valgrind-exec \
302+
check-stage$(1)-T-$(2)-H-$(3)-rpass-full-exec \
303+
check-stage$(1)-T-$(2)-H-$(3)-rfail-full-exec \
304304
check-stage$(1)-T-$(2)-H-$(3)-cfail-full-exec \
305305
check-stage$(1)-T-$(2)-H-$(3)-rmake-exec \
306306
check-stage$(1)-T-$(2)-H-$(3)-rustdocck-exec \
307-
check-stage$(1)-T-$(2)-H-$(3)-crates-exec \
308-
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec \
307+
check-stage$(1)-T-$(2)-H-$(3)-crates-exec \
308+
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec \
309309
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-gdb-exec \
310310
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-lldb-exec \
311311
check-stage$(1)-T-$(2)-H-$(3)-codegen-exec \
@@ -673,8 +673,8 @@ CTEST_DEPS_debuginfo-lldb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_LLDB_TESTS) \
673673
CTEST_DEPS_codegen_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_TESTS)
674674
CTEST_DEPS_codegen-units_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_UNITS_TESTS)
675675
CTEST_DEPS_rustdocck_$(1)-T-$(2)-H-$(3) = $$(RUSTDOCCK_TESTS) \
676-
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
677-
$(S)src/etc/htmldocck.py
676+
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
677+
$(S)src/etc/htmldocck.py
678678

679679
endef
680680

@@ -892,28 +892,6 @@ $(foreach host,$(CFG_HOST), \
892892
$(foreach crate,$(TEST_DOC_CRATES), \
893893
$(eval $(call DEF_CRATE_DOC_TEST,$(stage),$(target),$(host),$(crate)))))))
894894

895-
define DEF_DOC_TEST_ERROR_INDEX
896-
897-
check-stage$(1)-T-$(2)-H-$(3)-doc-error-index-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),doc-error-index)
898-
899-
ifeq ($(2),$$(CFG_BUILD))
900-
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-error-index): \
901-
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
902-
doc/error-index.md
903-
$$(Q)touch $$@.start_time
904-
$$(RUSTDOC_$(1)_T_$(2)_H_$(3)) --test doc/error-index.md
905-
$$(Q)touch -r $$@.start_time $$@ && rm $$@.start_time
906-
else
907-
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-error-index):
908-
$$(Q)touch $$@
909-
endif
910-
endef
911-
912-
$(foreach host,$(CFG_HOST), \
913-
$(foreach target,$(CFG_TARGET), \
914-
$(foreach stage,$(STAGES), \
915-
$(eval $(call DEF_DOC_TEST_ERROR_INDEX,$(stage),$(target),$(host))))))
916-
917895
######################################################################
918896
# Shortcut rules
919897
######################################################################
@@ -923,7 +901,7 @@ TEST_GROUPS = \
923901
$(foreach crate,$(TEST_CRATES),$(crate)) \
924902
$(foreach crate,$(TEST_DOC_CRATES),doc-crate-$(crate)) \
925903
rpass \
926-
rpass-valgrind \
904+
rpass-valgrind \
927905
rpass-full \
928906
rfail-full \
929907
cfail-full \
@@ -940,7 +918,7 @@ TEST_GROUPS = \
940918
$(foreach docname,$(DOC_NAMES),doc-$(docname)) \
941919
pretty \
942920
pretty-rpass \
943-
pretty-rpass-valgrind \
921+
pretty-rpass-valgrind \
944922
pretty-rpass-full \
945923
pretty-rfail-full \
946924
pretty-rfail \
@@ -1009,8 +987,7 @@ define DEF_CHECK_DOC_FOR_STAGE
1009987
check-stage$(1)-docs: $$(foreach docname,$$(DOC_NAMES), \
1010988
check-stage$(1)-T-$$(CFG_BUILD)-H-$$(CFG_BUILD)-doc-$$(docname)) \
1011989
$$(foreach crate,$$(TEST_DOC_CRATES), \
1012-
check-stage$(1)-T-$$(CFG_BUILD)-H-$$(CFG_BUILD)-doc-crate-$$(crate)) \
1013-
check-stage$(1)-T-$$(CFG_BUILD)-H-$$(CFG_BUILD)-doc-error-index-exec
990+
check-stage$(1)-T-$$(CFG_BUILD)-H-$$(CFG_BUILD)-doc-crate-$$(crate))
1014991
endef
1015992

1016993
$(foreach stage,$(STAGES), \
@@ -1071,8 +1048,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
10711048
$$(S) \
10721049
$(3) \
10731050
"$$(LLVM_LIBDIR_RUSTFLAGS_$(3))" \
1074-
"$$(LLVM_ALL_COMPONENTS_$(3))" \
1075-
"$$(LLVM_CXXFLAGS_$(3))"
1051+
"$$(LLVM_ALL_COMPONENTS_$(3))"
10761052
@touch -r $$@.start_time $$@ && rm $$@.start_time
10771053
else
10781054
# FIXME #11094 - The above rule doesn't work right for multiple targets

branches/stable/src/bootstrap/build/clean.rs

Lines changed: 0 additions & 36 deletions
This file was deleted.

branches/stable/src/bootstrap/build/flags.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pub struct Flags {
2626
pub src: Option<PathBuf>,
2727
pub jobs: Option<u32>,
2828
pub args: Vec<String>,
29-
pub clean: bool,
3029
}
3130

3231
pub struct Filter {
@@ -45,7 +44,6 @@ impl Flags {
4544
opts.optopt("", "stage", "stage to build", "N");
4645
opts.optopt("", "src", "path to repo root", "DIR");
4746
opts.optopt("j", "jobs", "number of jobs to run in parallel", "JOBS");
48-
opts.optflag("", "clean", "clean output directory");
4947
opts.optflag("h", "help", "print this help message");
5048

5149
let usage = |n| -> ! {
@@ -77,7 +75,6 @@ impl Flags {
7775

7876
Flags {
7977
verbose: m.opt_present("v"),
80-
clean: m.opt_present("clean"),
8178
stage: m.opt_str("stage").map(|j| j.parse().unwrap()),
8279
build: m.opt_str("build").unwrap(),
8380
host: Filter { values: m.opt_strs("host") },

branches/stable/src/bootstrap/build/job.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,9 @@ pub unsafe fn setup() {
6464
mem::size_of_val(&info) as DWORD);
6565
assert!(r != 0, "{}", io::Error::last_os_error());
6666

67-
// Assign our process to this job object. Note that if this fails, one very
68-
// likely reason is that we are ourselves already in a job object! This can
69-
// happen on the build bots that we've got for Windows, or if just anyone
70-
// else is instrumenting the build. In this case we just bail out
71-
// immediately and assume that they take care of it.
72-
//
73-
// Also note that nested jobs (why this might fail) are supported in recent
74-
// versions of Windows, but the version of Windows that our bots are running
75-
// at least don't support nested job objects.
67+
// Assign our process to this job object
7668
let r = AssignProcessToJobObject(job, GetCurrentProcess());
77-
if r == 0 {
78-
CloseHandle(job);
79-
return
80-
}
69+
assert!(r != 0, "{}", io::Error::last_os_error());
8170

8271
// If we've got a parent process (e.g. the python script that called us)
8372
// then move ownership of this job object up to them. That way if the python

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ macro_rules! t {
3030

3131
mod cc;
3232
mod channel;
33-
mod clean;
3433
mod compile;
3534
mod config;
3635
mod flags;
@@ -123,10 +122,6 @@ impl Build {
123122
#[cfg(not(windows))] fn setup_job() {}
124123
setup_job();
125124

126-
if self.flags.clean {
127-
return clean::clean(self);
128-
}
129-
130125
cc::find(self);
131126
sanity::check(self);
132127
channel::collect(self);

branches/stable/src/bootstrap/mk/Makefile.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,3 @@ BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py $(BOOTSTRAP_
2121

2222
all:
2323
$(Q)$(BOOTSTRAP)
24-
25-
clean:
26-
$(Q)$(BOOTSTRAP) --clean

branches/stable/src/doc/book/concurrency.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ use std::sync::mpsc;
286286
fn main() {
287287
let data = Arc::new(Mutex::new(0));
288288

289-
// `tx` is the "transmitter" or "sender"
290-
// `rx` is the "receiver"
291289
let (tx, rx) = mpsc::channel();
292290

293291
for _ in 0..10 {

branches/stable/src/doc/book/documentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,23 +319,23 @@ our source code:
319319
```text
320320
First, we set `x` to five:
321321
322-
```rust
322+
```text
323323
let x = 5;
324324
# let y = 6;
325325
# println!("{}", x + y);
326326
```
327327
328328
Next, we set `y` to six:
329329
330-
```rust
330+
```text
331331
# let x = 5;
332332
let y = 6;
333333
# println!("{}", x + y);
334334
```
335335
336336
Finally, we print the sum of `x` and `y`:
337337
338-
```rust
338+
```text
339339
# let x = 5;
340340
# let y = 6;
341341
println!("{}", x + y);

branches/stable/src/doc/book/ownership.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ fn foo() {
5151
}
5252
```
5353

54-
When `v` comes into scope, a new [vector] is created on [the stack][stack],
55-
and it allocates space on [the heap][heap] for its elements. When `v` goes out
56-
of scope at the end of `foo()`, Rust will clean up everything related to the
57-
vector, even the heap-allocated memory. This happens deterministically, at the
58-
end of the scope.
54+
When `v` comes into scope, a new [vector] is created, and it allocates space on
55+
[the heap][heap] for each of its elements. When `v` goes out of scope at the
56+
end of `foo()`, Rust will clean up everything related to the vector, even the
57+
heap-allocated memory. This happens deterministically, at the end of the scope.
5958

6059
We'll cover [vectors] in detail later in this chapter; we only use them
6160
here as an example of a type that allocates space on the heap at runtime. They
@@ -68,7 +67,6 @@ Vectors have a [generic type][generics] `Vec<T>`, so in this example `v` will ha
6867
[arrays]: primitive-types.html#arrays
6968
[vectors]: vectors.html
7069
[heap]: the-stack-and-the-heap.html
71-
[stack]: the-stack-and-the-heap.html#the-stack
7270
[bindings]: variable-bindings.html
7371
[generics]: generics.html
7472

branches/stable/src/doc/book/using-rust-without-the-standard-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ don’t want to use the standard library via an attribute: `#![no_std]`.
1111
> For details on binaries without the standard library, see [the nightly
1212
> chapter on `#![no_std]`](no-stdlib.html)
1313
14-
To use `#![no_std]`, add it to your crate root:
14+
To use `#![no_std]`, add a it to your crate root:
1515

1616
```rust
1717
#![no_std]

branches/stable/src/doc/uptack.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
\usepackage{newunicodechar}
2+
\newunicodechar⊥{{$\bot$}}

0 commit comments

Comments
 (0)