Skip to content

Commit 1e2bf9c

Browse files
committed
---
yaml --- r: 127756 b: refs/heads/master c: fd10d20 h: refs/heads/master v: v3
1 parent 79977f3 commit 1e2bf9c

File tree

348 files changed

+2665
-6109
lines changed

Some content is hidden

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

348 files changed

+2665
-6109
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 49a970f2449a78f28b6c301e542d38593094ca77
2+
refs/heads/master: fd10d209cdceedcb95e51025e624be749e0cc5f9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: aa98b25c4f0c10729dff37c699904ad57b8fbda8
55
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3

trunk/.gitignore

Lines changed: 64 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,90 @@
1-
*.a
2-
*.aux
3-
*.bc
1+
*~
2+
\#*\#
3+
\#*
4+
.#*
5+
*.x86
6+
*.llvm
7+
*.out
48
*.boot
5-
*.bz2
6-
*.cmi
7-
*.cmo
9+
*.rustc
810
*.cmx
9-
*.cp
10-
*.cps
11-
*.d
12-
*.dSYM
13-
*.def
14-
*.diff
1511
*.dll
16-
*.dylib
17-
*.elc
18-
*.epub
12+
*.def
1913
*.exe
14+
*.a
15+
*.rlib
16+
*.so
17+
*.dylib
18+
*.orig
19+
*.cmo
20+
*.cmi
21+
*.dSYM
22+
*.d
23+
*.o
24+
*.ll
25+
*.bc
26+
*.aux
27+
*.cp
2028
*.fn
21-
*.html
2229
*.ky
23-
*.ll
24-
*.llvm
30+
*.cps
2531
*.log
26-
*.o
27-
*.orig
28-
*.out
29-
*.patch
3032
*.pdf
33+
*.epub
34+
*.html
3135
*.pg
32-
*.pot
33-
*.pyc
34-
*.rej
35-
*.rlib
36-
*.rustc
37-
*.so
38-
*.swo
39-
*.swp
40-
*.tmp
4136
*.toc
4237
*.tp
4338
*.vr
44-
*.x86
45-
*~
46-
.#*
47-
.DS_Store
48-
.cproject
39+
*.patch
40+
*.diff
41+
*.rej
42+
*.swp
43+
*.swo
44+
*.tmp
45+
*.pyc
46+
*.elc
4947
.hg/
5048
.hgignore
49+
.cproject
5150
.project
52-
.settings/
5351
.valgrindrc
54-
/*-*-*-*/
55-
/*-*-*/
52+
lexer.ml
53+
TAGS
54+
TAGS.emacs
55+
TAGS.vi
56+
version.ml
57+
version.texi
5658
/Makefile
57-
/build
58-
/dist/
59-
/dl/
60-
/doc
61-
/inst/
62-
/llvm/
63-
/mingw-build/
64-
/nd/
59+
config.mk
6560
/rt/
6661
/rustllvm/
67-
/src/libunicode/DerivedCoreProperties.txt
68-
/src/libunicode/EastAsianWidth.txt
69-
/src/libunicode/HangulSyllableType.txt
70-
/src/libunicode/PropList.txt
71-
/src/libunicode/Scripts.txt
72-
/src/libunicode/UnicodeData.txt
62+
/test/
63+
/inst/
64+
/mingw-build/
65+
src/.DS_Store
66+
/tmp/
67+
/dist/
7368
/stage0/
69+
/dl/
7470
/stage1/
7571
/stage2/
7672
/stage3/
77-
/test/
78-
/tmp/
79-
TAGS
80-
TAGS.emacs
81-
TAGS.vi
82-
\#*
83-
\#*\#
84-
config.mk
85-
config.stamp
73+
*.bz2
74+
/doc
75+
/nd/
76+
/llvm/
77+
version.md
8678
keywords.md
87-
lexer.ml
88-
src/.DS_Store
79+
x86_64-apple-darwin/
80+
x86_64-unknown-linux-gnu/
81+
i686-unknown-linux-gnu/
82+
tmp.*.rs
83+
config.stamp
84+
.DS_Store
8985
src/etc/dl
86+
.settings/
87+
/build
88+
i686-pc-mingw32/
9089
src/librustc_llvm/llvmdeps.rs
91-
tmp.*.rs
92-
version.md
93-
version.ml
94-
version.texi
90+
*.pot

trunk/CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ please do two things:
1616

1717
2. Run the full Rust test suite with the `make check` command. You're
1818
not off the hook even if you just stick to documentation; code
19-
examples in the docs are tested as well! Although for simple
20-
wording or grammar fixes, this is probably unnecessary.
19+
examples in the docs are tested as well!
2120

2221
Pull requests will be treated as "review requests", and we will give
2322
feedback we expect to see corrected on

trunk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ documentation.
3232

3333
To build from the [tarball] do:
3434

35-
$ curl -O https://static.rust-lang.org/dist/rust-nightly.tar.gz
35+
$ curl -O http://static.rust-lang.org/dist/rust-nightly.tar.gz
3636
$ tar -xzf rust-nightly.tar.gz
3737
$ cd rust-nightly
3838

@@ -75,7 +75,7 @@ To easily build on windows we can use [MSYS2](http://sourceforge.net/projects/ms
7575
$ make && make install
7676

7777
[repo]: https://github.com/rust-lang/rust
78-
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
78+
[tarball]: http://static.rust-lang.org/dist/rust-nightly.tar.gz
7979
[tutorial]: http://doc.rust-lang.org/tutorial.html
8080

8181
## Notes

trunk/configure

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -557,21 +557,13 @@ fi
557557

558558
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
559559
then
560-
system_rustc=$(which rustc)
561-
if [ -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
560+
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
562561
then
563-
: # everything already configured
564-
elif [ -n "$system_rustc" ]
565-
then
566-
# we assume that rustc is in a /bin directory
567-
CFG_LOCAL_RUST_ROOT=${system_rustc%/bin/rustc}
568-
else
569562
err "no local rust to use"
563+
else
564+
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} --version`
565+
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: $LRV"
570566
fi
571-
572-
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} --version`
573-
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: $LRV"
574-
putvar CFG_LOCAL_RUST_ROOT
575567
fi
576568

577569
# Force freebsd to build with clang; gcc doesn't like us there

trunk/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ doc/$(1)/:
285285
$(2) += doc/$(1)/index.html
286286
doc/$(1)/index.html: CFG_COMPILER_HOST_TRIPLE = $(CFG_TARGET)
287287
doc/$(1)/index.html: $$(LIB_DOC_DEP_$(1)) doc/$(1)/
288-
@$$(call E, rustdoc: $$@)
288+
@$$(call E, rustdoc $$@)
289289
$$(Q)$$(RUSTDOC) --cfg dox --cfg stage2 $$<
290290
endef
291291

trunk/mk/main.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ endif
139139
RUSTFLAGS_STAGE0 += -C prefer-dynamic
140140
RUSTFLAGS_STAGE1 += -C prefer-dynamic
141141

142-
# Landing pads require a lot of codegen. We can get through bootstrapping faster
143-
# by not emitting them.
144-
RUSTFLAGS_STAGE0 += -Z no-landing-pads
145-
146142
# platform-specific auto-configuration
147143
include $(CFG_SRC_DIR)mk/platform.mk
148144

trunk/mk/platform.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabi :=
377377
# mipsel-linux configuration
378378
CC_mipsel-linux=mipsel-linux-gcc
379379
CXX_mipsel-linux=mipsel-linux-g++
380-
CPP_mipsel-linux=mipsel-linux-gcc
380+
CPP_mipsel-linux=mipsel-linux-gcc
381381
AR_mipsel-linux=mipsel-linux-ar
382382
CFG_LIB_NAME_mipsel-linux=lib$(1).so
383383
CFG_STATIC_LIB_NAME_mipsel-linux=lib$(1).a
@@ -641,7 +641,7 @@ define CFG_MAKE_TOOLCHAIN
641641
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
642642
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
643643
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
644-
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(1))) \
644+
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CXX_$(1))) \
645645
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
646646

647647
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))

trunk/src/compiletest/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub struct Config {
136136
// Extra parameter to run adb on arm-linux-androideabi
137137
pub adb_path: String,
138138

139-
// Extra parameter to run test suite on arm-linux-androideabi
139+
// Extra parameter to run test sute on arm-linux-androideabi
140140
pub adb_test_dir: String,
141141

142142
// status whether android device available or not

trunk/src/compiletest/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
325325
let DebuggerCommands { commands, check_lines, .. } = parse_debugger_commands(testfile, "gdb");
326326
let mut cmds = commands.connect("\n");
327327

328-
// compile test file (it should have 'compile-flags:-g' in the header)
328+
// compile test file (it shoud have 'compile-flags:-g' in the header)
329329
let compiler_run_result = compile_test(config, props, testfile);
330330
if !compiler_run_result.status.success() {
331331
fatal_proc_rec("compilation failed!", &compiler_run_result);
@@ -520,7 +520,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
520520

521521
let config = &mut config;
522522

523-
// compile test file (it should have 'compile-flags:-g' in the header)
523+
// compile test file (it shoud have 'compile-flags:-g' in the header)
524524
let compile_result = compile_test(config, props, testfile);
525525
if !compile_result.status.success() {
526526
fatal_proc_rec("compilation failed!", &compile_result);

trunk/src/doc/complement-design-faq.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% The Rust Design FAQ
1+
% Rust Design FAQ
22

33
This document describes decisions were arrived at after lengthy discussion and
44
experimenting with alternatives. Please do not propose reversing them unless
@@ -50,15 +50,15 @@ non-deterministic behavior. Rust provides the tools to make using a GC
5050
possible and even pleasant, but it should not be a requirement for
5151
implementing the language.
5252

53-
## Non-`Sync` `static mut` is unsafe
53+
## Non-`Share` `static mut` is unsafe
5454

55-
Types which are [`Sync`][sync] are thread-safe when multiple shared
56-
references to them are used concurrently. Types which are not `Sync` are not
55+
Types which are [`Share`][share] are thread-safe when multiple shared
56+
references to them are used concurrently. Types which are not `Share` are not
5757
thread-safe, and thus when used in a global require unsafe code to use.
5858

59-
[sync]: http://doc.rust-lang.org/core/kinds/trait.Sync.html
59+
[share]: http://doc.rust-lang.org/core/kinds/trait.Share.html
6060

61-
### If mutable static items that implement `Sync` are safe, why is taking &mut SHARABLE unsafe?
61+
### If mutable static items that implement `Share` are safe, why is taking &mut SHARABLE unsafe?
6262

6363
Having multiple aliasing `&mut T`s is never allowed. Due to the nature of
6464
globals, the borrow checker cannot possibly ensure that a static obeys the

trunk/src/doc/complement-lang-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% The Rust Language FAQ
1+
% Language FAQ
22

33
## Are there any big programs written in it yet? I want to read big samples.
44

trunk/src/doc/complement-project-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% The Rust Project FAQ
1+
% Project FAQ
22

33
# What is this project's goal, in one sentence?
44

trunk/src/doc/guide-pointers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ This part is coming soon.
655655
# Returning Pointers
656656

657657
In many languages with pointers, you'd return a pointer from a function
658-
so as to avoid copying a large data structure. For example:
658+
so as to avoid a copying a large data structure. For example:
659659

660660
```{rust}
661661
struct BigStruct {

trunk/src/doc/guide-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% The Guide to Rust Strings
1+
% The Strings Guide
22

33
Strings are an important concept to master in any programming language. If you
44
come from a managed language background, you may be surprised at the complexity

trunk/src/doc/guide-unsafe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Writing Unsafe and Low-Level Code in Rust
1+
% Writing Safe Unsafe and Low-Level Code
22

33
# Introduction
44

@@ -699,10 +699,10 @@ Other features provided by lang items include:
699699
- stack unwinding and general failure; the `eh_personality`, `fail_`
700700
and `fail_bounds_checks` lang items.
701701
- the traits in `std::kinds` used to indicate types that satisfy
702-
various kinds; lang items `send`, `sync` and `copy`.
702+
various kinds; lang items `send`, `share` and `copy`.
703703
- the marker types and variance indicators found in
704704
`std::kinds::markers`; lang items `covariant_type`,
705-
`contravariant_lifetime`, `no_sync_bound`, etc.
705+
`contravariant_lifetime`, `no_share_bound`, etc.
706706

707707
Lang items are loaded lazily by the compiler; e.g. if one never uses
708708
`Box` then there is no need to define functions for `exchange_malloc`

0 commit comments

Comments
 (0)