Skip to content

Commit 0bad11c

Browse files
committed
---
yaml --- r: 128731 b: refs/heads/try c: e8204a8 h: refs/heads/master i: 128729: f605612 128727: caaec62 v: v3
1 parent b2a2fe4 commit 0bad11c

File tree

348 files changed

+6110
-2629
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

+6110
-2629
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 07d86b46a949a94223da714e35b343243e4ecce4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a86d9ad15e339ab343a12513f9c90556f677b9ca
5-
refs/heads/try: 8f71cb06bc019af707f119b5dda3d96a5ca1330c
5+
refs/heads/try: e8204a84c7f365533c217b4882bbe0cbce5a34e3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitignore

Lines changed: 68 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,94 @@
1-
*~
2-
\#*\#
3-
\#*
4-
.#*
5-
*.x86
6-
*.llvm
7-
*.out
1+
*.a
2+
*.aux
3+
*.bc
84
*.boot
9-
*.rustc
5+
*.bz2
6+
*.cmi
7+
*.cmo
108
*.cmx
11-
*.dll
9+
*.cp
10+
*.cps
11+
*.d
12+
*.dSYM
1213
*.def
13-
*.exe
14-
*.a
15-
*.rlib
16-
*.so
14+
*.diff
15+
*.dll
1716
*.dylib
18-
*.orig
19-
*.cmo
20-
*.cmi
21-
*.dSYM
22-
*.d
23-
*.o
24-
*.ll
25-
*.bc
26-
*.aux
27-
*.cp
17+
*.elc
18+
*.epub
19+
*.exe
2820
*.fn
21+
*.html
2922
*.ky
30-
*.cps
23+
*.ll
24+
*.llvm
3125
*.log
26+
*.o
27+
*.orig
28+
*.out
29+
*.patch
3230
*.pdf
33-
*.epub
34-
*.html
3531
*.pg
36-
*.toc
37-
*.tp
38-
*.vr
39-
*.patch
40-
*.diff
32+
*.pot
33+
*.pyc
4134
*.rej
42-
*.swp
35+
*.rlib
36+
*.rustc
37+
*.so
4338
*.swo
39+
*.swp
4440
*.tmp
45-
*.pyc
46-
*.elc
41+
*.toc
42+
*.tp
43+
*.vr
44+
*.x86
45+
*~
46+
.#*
47+
.DS_Store
48+
.cproject
4749
.hg/
4850
.hgignore
49-
.cproject
5051
.project
52+
.settings/
5153
.valgrindrc
52-
lexer.ml
53-
TAGS
54-
TAGS.emacs
55-
TAGS.vi
56-
version.ml
57-
version.texi
54+
/*-*-*-*/
55+
/*-*-*/
5856
/Makefile
59-
config.mk
60-
/rt/
61-
/rustllvm/
62-
/test/
57+
/build
58+
/dist/
59+
/dl/
60+
/doc
6361
/inst/
62+
/llvm/
6463
/mingw-build/
65-
src/.DS_Store
66-
/tmp/
67-
/dist/
64+
/nd/
65+
/rt/
66+
/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
6873
/stage0/
69-
/dl/
7074
/stage1/
7175
/stage2/
7276
/stage3/
73-
*.bz2
74-
/doc
75-
/nd/
76-
/llvm/
77-
version.md
78-
keywords.md
79-
x86_64-apple-darwin/
80-
x86_64-unknown-linux-gnu/
81-
i686-unknown-linux-gnu/
82-
tmp.*.rs
77+
/test/
78+
/tmp/
79+
TAGS
80+
TAGS.emacs
81+
TAGS.vi
82+
\#*
83+
\#*\#
84+
config.mk
8385
config.stamp
84-
.DS_Store
86+
keywords.md
87+
lexer.ml
88+
src/.DS_Store
8589
src/etc/dl
86-
.settings/
87-
/build
88-
i686-pc-mingw32/
8990
src/librustc_llvm/llvmdeps.rs
90-
*.pot
91+
tmp.*.rs
92+
version.md
93+
version.ml
94+
version.texi

branches/try/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ 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!
19+
examples in the docs are tested as well! Although for simple
20+
wording or grammar fixes, this is probably unnecessary.
2021

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

branches/try/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 http://static.rust-lang.org/dist/rust-nightly.tar.gz
35+
$ curl -O https://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]: http://static.rust-lang.org/dist/rust-nightly.tar.gz
78+
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
7979
[tutorial]: http://doc.rust-lang.org/tutorial.html
8080

8181
## Notes

branches/try/configure

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

558558
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
559559
then
560-
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
560+
system_rustc=$(which rustc)
561+
if [ -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
561562
then
562-
err "no local rust to use"
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}
563568
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"
569+
err "no local rust to use"
566570
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
567575
fi
568576

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

branches/try/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

branches/try/mk/main.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ 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+
142146
# platform-specific auto-configuration
143147
include $(CFG_SRC_DIR)mk/platform.mk
144148

branches/try/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,$$(CXX_$(1))) \
644+
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(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))

branches/try/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 sute on arm-linux-androideabi
139+
// Extra parameter to run test suite on arm-linux-androideabi
140140
pub adb_test_dir: String,
141141

142142
// status whether android device available or not

branches/try/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 shoud have 'compile-flags:-g' in the header)
328+
// compile test file (it should 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 shoud have 'compile-flags:-g' in the header)
523+
// compile test file (it should 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);

branches/try/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-
% Rust Design FAQ
1+
% The 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-`Share` `static mut` is unsafe
53+
## Non-`Sync` `static mut` is unsafe
5454

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
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
5757
thread-safe, and thus when used in a global require unsafe code to use.
5858

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

61-
### If mutable static items that implement `Share` are safe, why is taking &mut SHARABLE unsafe?
61+
### If mutable static items that implement `Sync` 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

branches/try/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-
% Language FAQ
1+
% The Rust Language FAQ
22

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

branches/try/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-
% Project FAQ
1+
% The Rust Project FAQ
22

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

branches/try/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 a copying a large data structure. For example:
658+
so as to avoid copying a large data structure. For example:
659659

660660
```{rust}
661661
struct BigStruct {

branches/try/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 Strings Guide
1+
% The Guide to Rust Strings
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

branches/try/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 Safe Unsafe and Low-Level Code
1+
% Writing Unsafe and Low-Level Code in Rust
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`, `share` and `copy`.
702+
various kinds; lang items `send`, `sync` and `copy`.
703703
- the marker types and variance indicators found in
704704
`std::kinds::markers`; lang items `covariant_type`,
705-
`contravariant_lifetime`, `no_share_bound`, etc.
705+
`contravariant_lifetime`, `no_sync_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)