Skip to content

Commit 69615d7

Browse files
committed
---
yaml --- r: 274942 b: refs/heads/stable c: b7889ef h: refs/heads/master
1 parent 1ac066c commit 69615d7

File tree

229 files changed

+1071
-3376
lines changed

Some content is hidden

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

229 files changed

+1071
-3376
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: 69ad91290de8416cb309ed303ba0883b12b8017a
32+
refs/heads/stable: b7889ef23598524f310b8bb863271299bab628a6
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/rt.mk

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,7 @@ ifeq ($$(CFG_WINDOWSY_$(1)),1)
148148
else ifeq ($(OSTYPE_$(1)), apple-ios)
149149
JEMALLOC_ARGS_$(1) := --disable-tls
150150
else ifeq ($(findstring android, $(OSTYPE_$(1))), android)
151-
# We force android to have prefixed symbols because apparently replacement of
152-
# the libc allocator doesn't quite work. When this was tested (unprefixed
153-
# symbols), it was found that the `realpath` function in libc would allocate
154-
# with libc malloc (not jemalloc malloc), and then the standard library would
155-
# free with jemalloc free, causing a segfault.
156-
#
157-
# If the test suite passes, however, without symbol prefixes then we should be
158-
# good to go!
159-
JEMALLOC_ARGS_$(1) := --disable-tls --with-jemalloc-prefix=je_
151+
JEMALLOC_ARGS_$(1) := --disable-tls
160152
endif
161153

162154
ifdef CFG_ENABLE_DEBUG_JEMALLOC
@@ -194,7 +186,7 @@ JEMALLOC_LOCAL_$(1) := $$(JEMALLOC_BUILD_DIR_$(1))/lib/$$(JEMALLOC_REAL_NAME_$(1
194186
$$(JEMALLOC_LOCAL_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
195187
@$$(call E, make: jemalloc)
196188
cd "$$(JEMALLOC_BUILD_DIR_$(1))"; "$(S)src/jemalloc/configure" \
197-
$$(JEMALLOC_ARGS_$(1)) $(CFG_JEMALLOC_FLAGS) \
189+
$$(JEMALLOC_ARGS_$(1)) --with-jemalloc-prefix=je_ $(CFG_JEMALLOC_FLAGS) \
198190
--build=$$(CFG_GNU_TRIPLE_$(CFG_BUILD)) --host=$$(CFG_GNU_TRIPLE_$(1)) \
199191
CC="$$(CC_$(1)) $$(CFG_JEMALLOC_CFLAGS_$(1))" \
200192
AR="$$(AR_$(1))" \

branches/stable/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
10711071
$$(S) \
10721072
$(3) \
10731073
"$$(LLVM_LIBDIR_RUSTFLAGS_$(3))" \
1074-
"$$(LLVM_ALL_COMPONENTS_$(3))" \
1075-
"$$(LLVM_CXXFLAGS_$(3))"
1074+
"$$(LLVM_ALL_COMPONENTS_$(3))"
10761075
@touch -r $$@.start_time $$@ && rm $$@.start_time
10771076
else
10781077
# 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/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You get this error:
6868

6969
```text
7070
expected one of `!`, `:`, or `@`, found `)`
71-
fn print_sum(x, y) {
71+
fn print_number(x, y) {
7272
```
7373

7474
This is a deliberate design decision. While full-program inference is possible,

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/strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The second, with a `\`, trims the spaces and the newline:
3939

4040
```rust
4141
let s = "foo\
42-
bar";
42+
bar";
4343

4444
assert_eq!("foobar", s);
4545
```

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$}}

branches/stable/src/etc/maketest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def convert_path_spec(name, value):
4646
putenv('RUSTC', os.path.abspath(sys.argv[3]))
4747
putenv('TMPDIR', os.path.abspath(sys.argv[4]))
4848
putenv('CC', sys.argv[5] + ' ' + sys.argv[6])
49-
putenv('CFLAGS', sys.argv[6])
5049
putenv('RUSTDOC', os.path.abspath(sys.argv[7]))
5150
filt = sys.argv[8]
5251
putenv('LD_LIB_PATH_ENVVAR', sys.argv[9])
@@ -56,7 +55,6 @@ def convert_path_spec(name, value):
5655
putenv('S', os.path.abspath(sys.argv[13]))
5756
putenv('RUSTFLAGS', sys.argv[15])
5857
putenv('LLVM_COMPONENTS', sys.argv[16])
59-
putenv('LLVM_CXXFLAGS', sys.argv[17])
6058
putenv('PYTHON', sys.executable)
6159
os.putenv('TARGET', target_triple)
6260

0 commit comments

Comments
 (0)