Skip to content

Commit 26ea732

Browse files
committed
---
yaml --- r: 274981 b: refs/heads/stable c: 271777c h: refs/heads/master i: 274979: 3040621
1 parent 3f1fa56 commit 26ea732

File tree

153 files changed

+1201
-3415
lines changed

Some content is hidden

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

153 files changed

+1201
-3415
lines changed

[refs]

+1-1
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: 94ecd483e5ed692a6424b882b706e6615efa8336
32+
refs/heads/stable: 271777ce2214652bc75964c3b4953f08d0fdfbe2
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.gitignore

-1
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/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Read ["Installing Rust"] from [The Book].
1717
1. Make sure you have installed the dependencies:
1818

1919
* `g++` 4.7 or `clang++` 3.x
20-
* `python` 2.7 (but not 3.x)
20+
* `python` 2.7 or later (but not 3.x)
2121
* GNU `make` 3.81 or later
2222
* `curl`
2323
* `git`

branches/stable/configure

+3-3
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,12 @@ step_msg "looking for build programs"
729729

730730
probe_need CFG_CURLORWGET curl wget
731731
if [ -z "$CFG_PYTHON_PROVIDED" ]; then
732-
probe_need CFG_PYTHON python2.7 python2 python
732+
probe_need CFG_PYTHON python2.7 python2.6 python2 python
733733
fi
734734

735735
python_version=$($CFG_PYTHON -V 2>&1)
736-
if [ $(echo $python_version | grep -c '^Python 2\.7') -ne 1 ]; then
737-
err "Found $python_version, but Python 2.7 is required"
736+
if [ $(echo $python_version | grep -c '^Python 2\.[4567]') -ne 1 ]; then
737+
err "Found $python_version, but LLVM requires Python 2.4-2.7"
738738
fi
739739

740740
# If we have no git directory then we are probably a tarball distribution

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

-23
This file was deleted.

branches/stable/mk/crates.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_
5959
rustc_data_structures rustc_front rustc_platform_intrinsics \
6060
rustc_plugin rustc_metadata rustc_passes
6161
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros
62-
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
62+
TOOLS := compiletest rustdoc rustc rustbook error-index-generator
6363

6464
DEPS_core :=
6565
DEPS_alloc := core libc alloc_system
@@ -120,12 +120,12 @@ TOOL_DEPS_compiletest := test getopts
120120
TOOL_DEPS_rustdoc := rustdoc
121121
TOOL_DEPS_rustc := rustc_driver
122122
TOOL_DEPS_rustbook := std rustdoc
123-
TOOL_DEPS_error_index_generator := rustdoc syntax serialize
123+
TOOL_DEPS_error-index-generator := rustdoc syntax serialize
124124
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
125125
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
126126
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
127127
TOOL_SOURCE_rustbook := $(S)src/rustbook/main.rs
128-
TOOL_SOURCE_error_index_generator := $(S)src/error_index_generator/main.rs
128+
TOOL_SOURCE_error-index-generator := $(S)src/error-index-generator/main.rs
129129

130130
ONLY_RLIB_core := 1
131131
ONLY_RLIB_libc := 1

branches/stable/mk/dist.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ PKG_FILES := \
5252
doc \
5353
driver \
5454
etc \
55-
error_index_generator \
55+
error-index-generator \
5656
$(foreach crate,$(CRATES),lib$(crate)) \
5757
libcollectionstest \
5858
libcoretest \

branches/stable/mk/docs.mk

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ RUSTBOOK_EXE = $(HBIN2_H_$(CFG_BUILD))/rustbook$(X_$(CFG_BUILD))
5959
# ./configure
6060
RUSTBOOK = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(RUSTBOOK_EXE)
6161

62-
# The error_index_generator executable...
63-
ERR_IDX_GEN_EXE = $(HBIN2_H_$(CFG_BUILD))/error_index_generator$(X_$(CFG_BUILD))
62+
# The error-index-generator executable...
63+
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)
6565
ERR_IDX_GEN_MD = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE) markdown
6666

@@ -221,9 +221,9 @@ error-index: doc/error-index.html
221221
# Metadata used to generate the index is created as a side effect of
222222
# the build so this depends on every crate being up to date.
223223
doc/error-index.html: $(ERR_IDX_GEN_EXE) $(CSREQ$(2)_T_$(CFG_BUILD)_H_$(CFG_BUILD)) | doc/
224-
$(Q)$(call E, error_index_generator: $@)
224+
$(Q)$(call E, error-index-generator: $@)
225225
$(Q)$(ERR_IDX_GEN)
226226

227227
doc/error-index.md: $(ERR_IDX_GEN_EXE) $(CSREQ$(2)_T_$(CFG_BUILD)_H_$(CFG_BUILD)) | doc/
228-
$(Q)$(call E, error_index_generator: $@)
228+
$(Q)$(call E, error-index-generator: $@)
229229
$(Q)$(ERR_IDX_GEN_MD)

branches/stable/mk/prepare.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ define PREPARE_MAN
8282

8383
endef
8484

85-
PREPARE_TOOLS = $(filter-out compiletest rustbook error_index_generator, $(TOOLS))
85+
PREPARE_TOOLS = $(filter-out compiletest rustbook error-index-generator, $(TOOLS))
8686

8787

8888
# $(1) is tool

branches/stable/mk/rt.mk

+2-10
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

+1-3
Original file line numberDiff line numberDiff line change
@@ -1071,9 +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))" \
1076-
'$$(CXX_$(3))'
1074+
"$$(LLVM_ALL_COMPONENTS_$(3))"
10771075
@touch -r $$@.start_time $$@ && rm $$@.start_time
10781076
else
10791077
# FIXME #11094 - The above rule doesn't work right for multiple targets

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

-2
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

+3-3
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

+1-1
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

+4-6
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

+1-1
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

+1-1
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/book/vectors.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,15 @@ let v = vec![1, 2, 3, 4, 5]; // v: Vec<i32>
1111
```
1212

1313
(Notice that unlike the `println!` macro we’ve used in the past, we use square
14-
brackets `[]` with `vec!` macro. Rust allows you to use either in either
15-
situation, this is just convention.)
14+
brackets `[]` with `vec!` macro. Rust allows you to use either in either situation,
15+
this is just convention.)
1616

1717
There’s an alternate form of `vec!` for repeating an initial value:
1818

1919
```rust
2020
let v = vec![0; 10]; // ten zeroes
2121
```
2222

23-
Vectors store their contents as contiguous arrays of `T` on the heap. This means
24-
that they must be able to know the size of `T` at compile time (that is, how
25-
many bytes are needed to store a `T`?). The size of some things can't be known
26-
at compile time. For these you'll have to store a pointer to that thing:
27-
thankfully, the [`Box`][box] type works perfectly for this.
28-
2923
## Accessing elements
3024

3125
To get the value at a particular index in the vector, we use `[]`s:
@@ -119,7 +113,6 @@ Vectors have many more useful methods, which you can read about in [their
119113
API documentation][vec].
120114

121115
[vec]: ../std/vec/index.html
122-
[box]: ../std/boxed/index.html
123116
[generic]: generics.html
124117
[panic]: concurrency.html#panics
125118
[get]: http://doc.rust-lang.org/std/vec/struct.Vec.html#method.get

branches/stable/src/doc/uptack.tex

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
\usepackage{newunicodechar}
2+
\newunicodechar⊥{{$\bot$}}

branches/stable/src/etc/maketest.py

-3
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,8 +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])
60-
putenv('CXX', sys.argv[18])
6158
putenv('PYTHON', sys.executable)
6259
os.putenv('TARGET', target_triple)
6360

0 commit comments

Comments
 (0)