Skip to content

Commit 80cbe2a

Browse files
committed
---
yaml --- r: 179431 b: refs/heads/snap-stage3 c: 98c46c3 h: refs/heads/master i: 179429: c01b640 179427: 8093f71 179423: bc39c09 v: v3
1 parent a370c16 commit 80cbe2a

File tree

1,909 files changed

+26271
-36328
lines changed

Some content is hidden

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

1,909 files changed

+26271
-36328
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0ba9e1fa52627404a1e5b90f745f96a872a0c564
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 715f9a5e8da73e04bff039dddc58800a5e6a24bd
4+
refs/heads/snap-stage3: 98c46c30ed6f2ed43f984919c063d38651d6ea9a
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Olivier Saut <[email protected]>
516516
Olle Jonsson <[email protected]>
517517
Or Brostovski <[email protected]>
518518
Oren Hazi <[email protected]>
519-
Orpheus Lummis <o@orpheuslummis.com>
519+
Orphée Lafond-Lummis <o@orftz.com>
520520
521521
Pablo Brasero <[email protected]>
522522
Palmer Cox <[email protected]>

branches/snap-stage3/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ example, if it's 2014, and you change a Rust file that was created in
5050
# Coordination and communication
5151

5252
Get feedback from other developers on
53-
[internals.rust-lang.org][internals], and
53+
[discuss.rust-lang.org][discuss], and
5454
[#rust-internals][pound-rust-internals].
5555

5656
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57-
[internals]: http://internals.rust-lang.org
57+
[discuss]: http://discuss.rust-lang.org
5858

5959
For more details, please refer to
6060
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

branches/snap-stage3/COPYRIGHT

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ The following third party packages are included, and carry
2323
their own copyright notices and license terms:
2424

2525
* Two header files that are part of the Valgrind
26-
package. These files are found at src/rt/valgrind/valgrind.h and
27-
src/rt/valgrind/memcheck.h, within this distribution. These files
26+
package. These files are found at src/rt/vg/valgrind.h and
27+
src/rt/vg/memcheck.h, within this distribution. These files
2828
are redistributed under the following terms, as noted in
2929
them:
3030

31-
for src/rt/valgrind/valgrind.h:
31+
for src/rt/vg/valgrind.h:
3232

3333
This file is part of Valgrind, a dynamic binary
3434
instrumentation framework.
@@ -74,7 +74,7 @@ their own copyright notices and license terms:
7474
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
7575
OF SUCH DAMAGE.
7676

77-
for src/rt/valgrind/memcheck.h:
77+
for src/rt/vg/memcheck.h:
7878

7979
This file is part of MemCheck, a heavyweight Valgrind
8080
tool for detecting memory errors.
@@ -120,6 +120,18 @@ their own copyright notices and license terms:
120120
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
121121
OF SUCH DAMAGE.
122122

123+
* The auxiliary file src/etc/pkg/modpath.iss contains a
124+
library routine compiled, by Inno Setup, into the Windows
125+
installer binary. This file is licensed under the LGPL,
126+
version 3, but, in our legal interpretation, this does not
127+
affect the aggregate "collected work" license of the Rust
128+
distribution (MIT/ASL2) nor any other components of it. We
129+
believe that the terms governing distribution of the
130+
binary Windows installer built from modpath.iss are
131+
therefore LGPL, but not the terms governing distribution
132+
of any of the files installed by such an installer (such
133+
as the Rust compiler or runtime libraries themselves).
134+
123135
* The src/rt/miniz.c file, carrying an implementation of
124136
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
125137
<[email protected]>. All uses of this file are

branches/snap-stage3/Makefile.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
# * check-stage$(stage)-$(crate) - Test a crate in a specific stage
6060
# * check-stage$(stage)-{rpass,rfail,cfail,rmake,...} - Run tests in src/test/
6161
# * check-stage1-T-$(target)-H-$(host) - Run cross-compiled-tests
62-
# * tidy-basic - show file / line stats
63-
# * tidy-errors - show the highest rustc error code
64-
# * tidy-features - show the status of language and lib features
6562
#
6663
# Then mix in some of these environment variables to harness the
6764
# ultimate power of The Rust Build System.

branches/snap-stage3/README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ documentation.
3030

3131
To build from the [tarball] do:
3232

33-
$ curl -O https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
34-
$ tar -xzf rustc-nightly-src.tar.gz
35-
$ cd rustc-nightly
33+
$ curl -O https://static.rust-lang.org/dist/rust-nightly.tar.gz
34+
$ tar -xzf rust-nightly.tar.gz
35+
$ cd rust-nightly
3636

3737
Or to build from the [repo] do:
3838

@@ -80,7 +80,7 @@ $ pacman -S base-devel
8080
$ make && make install
8181

8282
[repo]: https://github.com/rust-lang/rust
83-
[tarball]: https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
83+
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
8484
[trpl]: http://doc.rust-lang.org/book/index.html
8585

8686
## Notes
@@ -110,15 +110,13 @@ There is a lot more documentation in the [wiki].
110110

111111
The Rust community congregates in a few places:
112112

113-
* [StackOverflow] - Direct questions about using the language here.
114-
* [users.rust-lang.org] - General discussion, broader questions.
115-
* [internals.rust-lang.org] - For development of the Rust language itself.
116-
* [/r/rust] - News and general discussion.
113+
* [StackOverflow] - Get help here.
114+
* [/r/rust] - General discussion.
115+
* [discuss.rust-lang.org] - For development of the Rust language itself.
117116

118117
[StackOverflow]: http://stackoverflow.com/questions/tagged/rust
119118
[/r/rust]: http://reddit.com/r/rust
120-
[users.rust-lang.org]: http://users.rust-lang.org/
121-
[internals.rust-lang.org]: http://internals.rust-lang.org/
119+
[discuss.rust-lang.org]: http://discuss.rust-lang.org/
122120

123121
## License
124122

branches/snap-stage3/configure

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ need_ok() {
2828

2929
need_cmd() {
3030
if command -v $1 >/dev/null 2>&1
31-
then msg "found program $1"
32-
else err "need program $1"
31+
then msg "found $1"
32+
else err "need $1"
3333
fi
3434
}
3535

@@ -340,7 +340,6 @@ need_cmd date
340340
need_cmd tr
341341
need_cmd sed
342342
need_cmd file
343-
need_cmd make
344343

345344
msg "inspecting environment"
346345

@@ -374,10 +373,6 @@ case $CFG_OSTYPE in
374373
CFG_OSTYPE=unknown-dragonfly
375374
;;
376375

377-
OpenBSD)
378-
CFG_OSTYPE=unknown-openbsd
379-
;;
380-
381376
Darwin)
382377
CFG_OSTYPE=apple-darwin
383378
;;

branches/snap-stage3/man/rustc.1

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@ Display the help message
1818
\fB\-\-cfg\fR SPEC
1919
Configure the compilation environment
2020
.TP
21-
\fB\-L\fR [KIND=]PATH
22-
Add a directory to the library search path. The optional KIND can be one of:
23-
dependency = only lookup transitive dependencies here
24-
crate = only lookup local `extern crate` directives here
25-
native = only lookup native libraries here
26-
framework = only look for OSX frameworks here
27-
all = look for anything here (the default)
28-
.TP
29-
\fB\-l\fR [KIND=]NAME
21+
\fB\-L\fR PATH
22+
Add a directory to the library search path
23+
.TP
24+
\fB\-l\fR NAME[:KIND]
3025
Link the generated crate(s) to the specified native library NAME. The optional
3126
KIND can be one of, static, dylib, or framework. If omitted, dylib is assumed.
3227
.TP

branches/snap-stage3/mk/cfg/x86_64-unknown-openbsd.mk

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

branches/snap-stage3/mk/main.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
34-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
3535
CFG_DISABLE_UNSTABLE_FEATURES=1
3636
endif
3737
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
@@ -72,7 +72,6 @@ endif
7272
# numbers and dots here
7373
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
7474

75-
CFG_INFO := $(info cfg: version $(CFG_VERSION))
7675

7776
######################################################################
7877
# More configuration
@@ -180,7 +179,6 @@ endif
180179

181180
ifndef CFG_DISABLE_VALGRIND_RPASS
182181
$(info cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS))
183-
$(info cfg: valgrind-rpass command set to $(CFG_VALGRIND))
184182
CFG_VALGRIND_RPASS :=$(CFG_VALGRIND)
185183
else
186184
CFG_VALGRIND_RPASS :=

branches/snap-stage3/mk/tests.mk

Lines changed: 50 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ $(foreach file,$(wildcard $(S)src/doc/trpl/*.md), \
162162
######################################################################
163163

164164
# The main testing target. Tests lots of stuff.
165-
check: cleantmptestlogs cleantestlibs all check-stage2 tidy
166-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
165+
check: cleantmptestlogs cleantestlibs check-notidy tidy
167166

168167
# As above but don't bother running tidy.
169168
check-notidy: cleantmptestlogs cleantestlibs all check-stage2
@@ -236,24 +235,57 @@ cleantestlibs:
236235
######################################################################
237236

238237
ifdef CFG_NOTIDY
239-
.PHONY: tidy
240238
tidy:
241239
else
242240

243-
# Run the tidy script in multiple parts to avoid huge 'echo' commands
244-
.PHONY: tidy
245-
tidy: tidy-basic tidy-binaries tidy-errors tidy-features
241+
ALL_CS := $(wildcard $(S)src/rt/*.cpp \
242+
$(S)src/rt/*/*.cpp \
243+
$(S)src/rt/*/*/*.cpp \
244+
$(S)src/rustllvm/*.cpp)
245+
ALL_CS := $(filter-out $(S)src/rt/miniz.cpp \
246+
$(wildcard $(S)src/rt/hoedown/src/*.c) \
247+
$(wildcard $(S)src/rt/hoedown/bin/*.c) \
248+
,$(ALL_CS))
249+
ALL_HS := $(wildcard $(S)src/rt/*.h \
250+
$(S)src/rt/*/*.h \
251+
$(S)src/rt/*/*/*.h \
252+
$(S)src/rustllvm/*.h)
253+
ALL_HS := $(filter-out $(S)src/rt/valgrind/valgrind.h \
254+
$(S)src/rt/valgrind/memcheck.h \
255+
$(S)src/rt/msvc/typeof.h \
256+
$(S)src/rt/msvc/stdint.h \
257+
$(S)src/rt/msvc/inttypes.h \
258+
$(wildcard $(S)src/rt/hoedown/src/*.h) \
259+
$(wildcard $(S)src/rt/hoedown/bin/*.h) \
260+
,$(ALL_HS))
246261

247-
endif
248-
249-
.PHONY: tidy-basic
250-
tidy-basic:
262+
# Run the tidy script in multiple parts to avoid huge 'echo' commands
263+
tidy:
251264
@$(call E, check: formatting)
252-
$(Q) $(CFG_PYTHON) $(S)src/etc/tidy.py $(S)src/
253-
254-
.PHONY: tidy-binaries
255-
tidy-binaries:
256-
@$(call E, check: binaries)
265+
$(Q)find $(S)src -name '*.r[sc]' \
266+
-and -not -regex '^$(S)src/jemalloc.*' \
267+
-and -not -regex '^$(S)src/libuv.*' \
268+
-and -not -regex '^$(S)src/llvm.*' \
269+
-and -not -regex '^$(S)src/gyp.*' \
270+
-and -not -regex '^$(S)src/libbacktrace.*' \
271+
-print0 \
272+
| xargs -0 -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
273+
$(Q)find $(S)src/etc -name '*.py' \
274+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
275+
$(Q)find $(S)src/doc -name '*.js' \
276+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
277+
$(Q)find $(S)src/etc -name '*.sh' \
278+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
279+
$(Q)find $(S)src/etc -name '*.pl' \
280+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
281+
$(Q)find $(S)src/etc -name '*.c' \
282+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
283+
$(Q)find $(S)src/etc -name '*.h' \
284+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
285+
$(Q)echo $(ALL_CS) \
286+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
287+
$(Q)echo $(ALL_HS) \
288+
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
257289
$(Q)find $(S)src -type f -perm +a+x \
258290
-not -name '*.rs' -and -not -name '*.py' \
259291
-and -not -name '*.sh' \
@@ -268,16 +300,10 @@ tidy-binaries:
268300
| grep '^$(S)src/libbacktrace' -v \
269301
| grep '^$(S)src/rust-installer' -v \
270302
| xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py
271-
272-
.PHONY: tidy-errors
273-
tidy-errors:
274-
@$(call E, check: extended errors)
275303
$(Q) $(CFG_PYTHON) $(S)src/etc/errorck.py $(S)src/
276304

277-
.PHONY: tidy-features
278-
tidy-features:
279-
@$(call E, check: feature sanity)
280-
$(Q) $(CFG_PYTHON) $(S)src/etc/featureck.py $(S)src/
305+
306+
endif
281307

282308

283309
######################################################################
@@ -612,6 +638,7 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
612638

613639
ifdef CFG_VALGRIND_RPASS
614640
ifdef GOOD_VALGRIND_$(2)
641+
$(info cfg: valgrind-path set to $(CFG_VALGRIND_RPASS))
615642
CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) += --valgrind-path "$(CFG_VALGRIND_RPASS)"
616643
endif
617644
endif

branches/snap-stage3/src/compiletest/common.rs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub use self::Mode::*;
1212
use std::fmt;
1313
use std::str::FromStr;
1414

15-
#[derive(Clone, Copy, PartialEq, Debug)]
15+
#[derive(Clone, PartialEq, Debug)]
1616
pub enum Mode {
1717
CompileFail,
1818
RunFail,
@@ -24,19 +24,20 @@ pub enum Mode {
2424
Codegen
2525
}
2626

27+
impl Copy for Mode {}
28+
2729
impl FromStr for Mode {
28-
type Err = ();
29-
fn from_str(s: &str) -> Result<Mode, ()> {
30+
fn from_str(s: &str) -> Option<Mode> {
3031
match s {
31-
"compile-fail" => Ok(CompileFail),
32-
"run-fail" => Ok(RunFail),
33-
"run-pass" => Ok(RunPass),
34-
"run-pass-valgrind" => Ok(RunPassValgrind),
35-
"pretty" => Ok(Pretty),
36-
"debuginfo-lldb" => Ok(DebugInfoLldb),
37-
"debuginfo-gdb" => Ok(DebugInfoGdb),
38-
"codegen" => Ok(Codegen),
39-
_ => Err(()),
32+
"compile-fail" => Some(CompileFail),
33+
"run-fail" => Some(RunFail),
34+
"run-pass" => Some(RunPass),
35+
"run-pass-valgrind" => Some(RunPassValgrind),
36+
"pretty" => Some(Pretty),
37+
"debuginfo-lldb" => Some(DebugInfoLldb),
38+
"debuginfo-gdb" => Some(DebugInfoGdb),
39+
"codegen" => Some(Codegen),
40+
_ => None,
4041
}
4142
}
4243
}

0 commit comments

Comments
 (0)