Skip to content

Commit a7969f6

Browse files
committed
---
yaml --- r: 135394 b: refs/heads/snap-stage3 c: 61c4f6d h: refs/heads/master v: v3
1 parent 52bcc50 commit a7969f6

File tree

835 files changed

+19668
-24726
lines changed

Some content is hidden

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

835 files changed

+19668
-24726
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: 74090504219e4e37c1a6d9fdd8600f44b51c7b04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5615aceff0f44f7ac6ec0c51800b162804e22453
4+
refs/heads/snap-stage3: 61c4f6dcd95a8e0359a818c6646310272dfb3ab0
55
refs/heads/try: 14378ea357c06c23607ca61ade44f60a7a64a1c7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/.gitmodules

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
path = src/llvm
33
url = https://github.com/rust-lang/llvm.git
44
branch = master
5-
[submodule "src/libuv"]
6-
path = src/libuv
7-
url = https://github.com/rust-lang/libuv.git
8-
branch = master
9-
[submodule "src/gyp"]
10-
path = src/gyp
11-
url = https://github.com/rust-lang/gyp.git
125
[submodule "src/compiler-rt"]
136
path = src/compiler-rt
147
url = https://github.com/rust-lang/compiler-rt.git

branches/snap-stage3/.travis.yml

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,26 @@
11
# Use something that's not 'ruby' so we don't set up things like
2-
# RVM/bundler/ruby and whatnot. Right now 'rust' isn't a language on travis and
3-
# it treats unknown languages as ruby-like I believe.
2+
# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually
3+
# downloads a rust/cargo snapshot, which we don't really want for building rust.
44
language: c
55

6-
# Before we start doing anything, install a stock LLVM
6+
# Make sure we've got an up-to-date g++ compiler to get past the LLVM configure
7+
# script.
78
install:
8-
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main' >> /etc/apt/sources.list"
9-
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"
10-
- sudo sh -c "echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main' >> /etc/apt/sources.list"
11-
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
9+
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
1210
- sudo apt-get update -qq
13-
- sudo apt-get install -qq --force-yes -y llvm-$LLVM_VERSION
14-
llvm-${LLVM_VERSION}-dev clang-$LLVM_VERSION lldb-$LLVM_VERSION
11+
- sudo apt-get install g++-4.7
1512

16-
17-
# All of the llvm tools are suffixed with "-$VERS" which we don't want, so
18-
# symlink them all into a local directory and just use that
13+
# The test suite is in general way too stressful for travis, especially in
14+
# terms of time limit and reliability. In the past we've tried to scale things
15+
# back to only build the stage1 compiler and run a subset of tests, but this
16+
# didn't end up panning out very well.
1917
#
20-
# FIXME: this shouldn't update the src/llvm sub-repo, that takes about a minute
21-
# it's gotta download so much stuff.
18+
# As a result, we're just using travis to run `make tidy` now. It'll help
19+
# everyone find out about their trailing spaces early on!
2220
before_script:
23-
- mkdir -p local-llvm/bin
24-
- ln -nsf /usr/bin/llvm-config-$LLVM_VERSION local-llvm/bin/llvm-config
25-
- ln -nsf /usr/bin/llvm-mc-$LLVM_VERSION local-llvm/bin/llvm-mc
26-
- ln -nsf /usr/bin/llvm-as-$LLVM_VERSION local-llvm/bin/llvm-as
27-
- ln -nsf /usr/bin/llvm-dis-$LLVM_VERSION local-llvm/bin/llvm-dis
28-
- ln -nsf /usr/bin/llc-$LLVM_VERSION local-llvm/bin/llc
29-
- ln -nsf /usr/include/llvm-$LLVM_VERSION local-llvm/include
30-
- ./configure --disable-optimize-tests --llvm-root=`pwd`/local-llvm
31-
--enable-fast-make --enable-clang
32-
33-
# Tidy everything up first, then build a few things, and then run a few tests.
34-
# Note that this is meant to run in a "fairly small" amount of time, so this
35-
# isn't exhaustive at all.
36-
#
37-
# As a result of https://github.com/travis-ci/travis-ci/issues/1066, we run
38-
# everything in one large command instead of multiple commands.
39-
script: |
40-
if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then
41-
if [[ $LLVM_VERSION != '3.4' ]]; then exit 0; fi
42-
fi &&
43-
make tidy &&
44-
make -j4 rustc-stage1 RUSTFLAGS='-Z time-passes' &&
45-
make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail check-stage1-doc
46-
47-
env:
48-
global:
49-
- NO_BENCH=1
50-
matrix:
51-
- LLVM_VERSION=3.3
52-
- LLVM_VERSION=3.4
53-
54-
# We track this ourselves, and in theory we don't have to update the LLVM repo
55-
# (but sadly we do right now anyway).
56-
git:
57-
submodules: false
21+
- ./configure
22+
script:
23+
- make tidy
5824

5925
notifications:
6026
email: false

branches/snap-stage3/CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ If you're just reporting a bug, please see:
44

55
http://doc.rust-lang.org/complement-bugreport.html
66

7+
## Submitting an issue
8+
9+
Please submit issues here for bug reports or implementation details. For feature
10+
requests, language changes, or major changes to the libraries, please submit an
11+
issue against the [RFCs repository](https://github.com/rust-lang/rfcs).
12+
713
## Pull request procedure
814

915
Pull requests should be targeted at Rust's `master` branch.

branches/snap-stage3/COPYRIGHT

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -213,41 +213,6 @@ their own copyright notices and license terms:
213213
as the Rust compiler or runtime libraries themselves).
214214

215215

216-
* The libuv asynchronous I/O library. Code for this package
217-
is found in the src/libuv directory, within this
218-
distribution. This package is redistributed under the
219-
following terms, as noted in its source:
220-
221-
Copyright Joyent, Inc. and other Node contributors. All
222-
rights reserved. Permission is hereby granted, free of
223-
charge, to any person obtaining a copy of this software
224-
and associated documentation files (the "Software"), to
225-
deal in the Software without restriction, including
226-
without limitation the rights to use, copy, modify,
227-
merge, publish, distribute, sublicense, and/or sell
228-
copies of the Software, and to permit persons to whom
229-
the Software is furnished to do so, subject to the
230-
following conditions:
231-
232-
The above copyright notice and this permission notice
233-
shall be included in all copies or substantial portions
234-
of the Software.
235-
236-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
237-
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
238-
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
239-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
240-
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
241-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
242-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
243-
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
244-
DEALINGS IN THE SOFTWARE.
245-
246-
247-
* Additional libraries included in libuv carry separate
248-
BSD-compatible licenses. See src/libuv/LICENSE for
249-
details.
250-
251216
* The src/rt/miniz.c file, carrying an implementation of
252217
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
253218
<[email protected]>. All uses of this file are

branches/snap-stage3/configure

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ case $CFG_OSTYPE in
306306
# instead, msys defines $MSYSTEM which is MINGW32 on i686 and
307307
# MINGW64 on x86_64.
308308
CFG_CPUTYPE=i686
309-
CFG_OSTYPE=pc-mingw32
309+
CFG_OSTYPE=w64-mingw32
310310
if [ "$MSYSTEM" = MINGW64 ]
311311
then
312312
CFG_CPUTYPE=x86_64
@@ -438,7 +438,6 @@ valopt prefix "/usr/local" "set installation prefix"
438438
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
439439
valopt llvm-root "" "set LLVM root"
440440
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
441-
valopt libuv-root "" "set directory where libuv.a is located"
442441
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
443442
valopt mingw32-cross-path "" "MinGW32 cross compiler path"
444443

@@ -453,12 +452,12 @@ valopt datadir "${CFG_PREFIX}/share" "install data"
453452
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
454453
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
455454

456-
valopt release-channel "source" "the name of the release channel to build"
455+
valopt release-channel "dev" "the name of the release channel to build"
457456

458457
# On windows we just store the libraries in the bin directory because
459458
# there's no rpath. This is where the build system itself puts libraries;
460459
# --libdir is used to configure the installation directory.
461-
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
460+
# FIXME: This needs to parameterized over target triples. Do it in platform.mk
462461
CFG_LIBDIR_RELATIVE=lib
463462
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
464463
then
@@ -477,24 +476,18 @@ fi
477476
step_msg "validating $CFG_SELF args"
478477
validate_opt
479478

480-
# Temporarily support the old windows triples while the bots make the transition
481-
# XXX Remove me
482-
CFG_BUILD=`echo "${CFG_BUILD}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
483-
CFG_HOST=`echo "${CFG_HOST}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
484-
CFG_TARGET=`echo "${CFG_TARGET}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
485-
486479
# Validate the release channel
487480
case "$CFG_RELEASE_CHANNEL" in
488-
(source | nightly | beta | stable)
481+
(dev | nightly | beta | stable)
489482
;;
490483
(*)
491-
err "release channel must be 'source', 'nightly', 'beta' or 'stable'"
484+
err "release channel must be 'dev', 'nightly', 'beta' or 'stable'"
492485
;;
493486
esac
494487

495488
# Continue supporting the old --enable-nightly flag to transition the bots
496489
# XXX Remove me
497-
if [ $CFG_ENABLE_NIGHTLY -eq 1 ]
490+
if [ ! -z "$CFG_ENABLE_NIGHTLY" ]
498491
then
499492
CFG_RELEASE_CHANNEL=nightly
500493
putvar CFG_RELEASE_CHANNEL
@@ -875,10 +868,6 @@ do
875868
do
876869
make_dir $t/rt/stage$s
877870
make_dir $t/rt/jemalloc
878-
make_dir $t/rt/libuv
879-
make_dir $t/rt/libuv/src/ares
880-
make_dir $t/rt/libuv/src/eio
881-
make_dir $t/rt/libuv/src/ev
882871
for i in \
883872
isaac sync test \
884873
arch/i386 arch/x86_64 arch/arm arch/mips \
@@ -932,6 +921,7 @@ do
932921
make_dir $h/test/doc-guide-pointers
933922
make_dir $h/test/doc-guide-container
934923
make_dir $h/test/doc-guide-tasks
924+
make_dir $h/test/doc-guide-plugin
935925
make_dir $h/test/doc-rust
936926
done
937927

@@ -958,10 +948,6 @@ then
958948
msg "git: submodule deinit src/jemalloc"
959949
"${CFG_GIT}" submodule deinit src/jemalloc
960950
fi
961-
if [ ! -z "${CFG_LIBUV_ROOT}" ]; then
962-
msg "git: submodule deinit src/libuv"
963-
"${CFG_GIT}" submodule deinit src/libuv
964-
fi
965951

966952
msg "git: submodule update"
967953
"${CFG_GIT}" submodule update
@@ -1222,7 +1208,6 @@ putvar CFG_MINGW32_CROSS_PATH
12221208
putvar CFG_MANDIR
12231209
putvar CFG_DISABLE_INJECT_STD_VERSION
12241210
putvar CFG_JEMALLOC_ROOT
1225-
putvar CFG_LIBUV_ROOT
12261211
putvar CFG_DISABLE_JEMALLOC
12271212

12281213
# Avoid spurious warnings from clang by feeding it original source on

branches/snap-stage3/mk/crates.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
52+
TARGET_CRATES := libc std green native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
5454
url log regex graphviz core rbml rlibc alloc debug rustrt \
5555
unicode
@@ -59,6 +59,7 @@ CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5959
TOOLS := compiletest rustdoc rustc
6060

6161
DEPS_core :=
62+
DEPS_libc := core
6263
DEPS_rlibc := core
6364
DEPS_unicode := core
6465
DEPS_alloc := core libc native:jemalloc
@@ -68,9 +69,8 @@ DEPS_std := core libc rand alloc collections rustrt sync unicode \
6869
native:rust_builtin native:backtrace
6970
DEPS_graphviz := std
7071
DEPS_green := std native:context_switch
71-
DEPS_rustuv := std native:uv native:uv_support
7272
DEPS_native := std
73-
DEPS_syntax := std term serialize log fmt_macros debug arena
73+
DEPS_syntax := std term serialize log fmt_macros debug arena libc
7474
DEPS_rustc := syntax flate arena serialize getopts rbml \
7575
time log graphviz debug rustc_llvm rustc_back
7676
DEPS_rustc_llvm := native:rustllvm libc std
@@ -101,7 +101,7 @@ DEPS_regex := std
101101
DEPS_regex_macros = rustc syntax std regex
102102
DEPS_fmt_macros = std
103103

104-
TOOL_DEPS_compiletest := test green rustuv getopts
104+
TOOL_DEPS_compiletest := test getopts
105105
TOOL_DEPS_rustdoc := rustdoc native
106106
TOOL_DEPS_rustc := rustc native
107107
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs

branches/snap-stage3/mk/ctags.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,19 @@
1616
.PHONY: TAGS.emacs TAGS.vi
1717

1818
# This is using a blacklist approach, probably more durable than a whitelist.
19-
# We exclude: external dependencies (llvm, libuv, gyp, rt/{msvc,sundown,vg}),
19+
# We exclude: external dependencies (llvm, rt/{msvc,sundown,vg}),
2020
# tests (compiletest, test) and a couple of other things (rt/arch, etc)
2121
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
22-
$(patsubst ${CFG_SRC_DIR}src/libuv,, \
2322
$(patsubst ${CFG_SRC_DIR}src/compiletest,, \
2423
$(patsubst ${CFG_SRC_DIR}src/test,, \
25-
$(patsubst ${CFG_SRC_DIR}src/gyp,, \
2624
$(patsubst ${CFG_SRC_DIR}src/etc,, \
2725
$(patsubst ${CFG_SRC_DIR}src/rt,, \
2826
$(patsubst ${CFG_SRC_DIR}src/rt/arch,, \
2927
$(patsubst ${CFG_SRC_DIR}src/rt/msvc,, \
3028
$(patsubst ${CFG_SRC_DIR}src/rt/sundown,, \
3129
$(patsubst ${CFG_SRC_DIR}src/rt/vg,, \
3230
$(wildcard ${CFG_SRC_DIR}src/*) $(wildcard ${CFG_SRC_DIR}src/rt/*) \
33-
)))))))))))
31+
)))))))))
3432
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=-javascript --recurse ${CTAGS_LOCATIONS}
3533
# We could use `--languages=Rust`, but there is value in producing tags for the
3634
# C++ parts of the code base too (at the time of writing, those are .h and .cpp

branches/snap-stage3/mk/dist.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
3535

3636
PKG_TAR = dist/$(PKG_NAME).tar.gz
3737

38-
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt \
38+
PKG_GITMODULES := $(S)src/llvm $(S)src/compiler-rt \
3939
$(S)src/rt/hoedown $(S)src/jemalloc
4040
PKG_FILES := \
4141
$(S)COPYRIGHT \
@@ -283,7 +283,7 @@ distcheck-docs: dist-docs
283283

284284
ifdef CFG_WINDOWSY_$(CFG_BUILD)
285285

286-
dist: dist-win
286+
dist: dist-win dist-tar-bins
287287

288288
distcheck: distcheck-win
289289
$(Q)rm -Rf tmp/distcheck

branches/snap-stage3/mk/docs.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
######################################################################
2828
DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
2929
guide-tasks guide-container guide-pointers guide-testing \
30-
guide-runtime complement-bugreport \
30+
guide-runtime guide-plugin complement-bugreport \
3131
complement-lang-faq complement-design-faq complement-project-faq rust \
32-
rustdoc guide-unsafe guide-strings
32+
rustdoc guide-unsafe guide-strings reference
3333

34-
PDF_DOCS := guide rust
34+
PDF_DOCS := guide reference
3535

3636
RUSTDOC_DEPS_rust := doc/full-toc.inc
3737
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc

branches/snap-stage3/mk/main.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ ifeq ($(CFG_RELEASE_CHANNEL),nightly)
3535
CFG_RELEASE=$(CFG_RELEASE_NUM)-nightly
3636
CFG_PACKAGE_VERS=nightly
3737
endif
38-
ifeq ($(CFG_RELEASE_CHANNEL),source)
39-
CFG_RELEASE=$(CFG_RELEASE_NUM)-pre
40-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-pre
38+
ifeq ($(CFG_RELEASE_CHANNEL),dev)
39+
CFG_RELEASE=$(CFG_RELEASE_NUM)-dev
40+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-dev
4141
endif
4242

4343
# The name of the package to use for creating tarballs, installers etc.

0 commit comments

Comments
 (0)