Skip to content

Commit 03ed008

Browse files
committed
---
yaml --- r: 234221 b: refs/heads/beta c: 1049021 h: refs/heads/master i: 234219: c189a88 v: v3
1 parent 5220f03 commit 03ed008

File tree

361 files changed

+2947
-14565
lines changed

Some content is hidden

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

361 files changed

+2947
-14565
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: bc6c3970a072ced531f39eaa918084acd43c785a
26+
refs/heads/beta: 104902100d8894d7578694754590668d6d725a17
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/COMPILER_TESTS.md

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

branches/beta/CONTRIBUTING.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ links to the major sections:
1010
* [Writing Documentation](#writing-documentation)
1111
* [Issue Triage](#issue-triage)
1212
* [Out-of-tree Contributions](#out-of-tree-contributions)
13-
* [Helpful Links and Information](#helpful-links-and-information)
1413

1514
If you have questions, please make a post on [internals.rust-lang.org][internals] or
1615
hop on [#rust-internals][pound-rust-internals].
@@ -211,28 +210,3 @@ valuable!
211210
[users]: https://users.rust-lang.org/
212211
[so]: http://stackoverflow.com/questions/tagged/rust
213212
[community-library]: https://github.com/rust-lang/rfcs/labels/A-community-library
214-
215-
## Helpful Links and Information
216-
217-
For people new to Rust, and just starting to contribute, or even for
218-
more seasoned developers, some useful places to look for information
219-
are:
220-
221-
* The [Rust Internals forum][rif], a place to ask questions and
222-
discuss Rust's internals
223-
* The [generated documentation for rust's compiler][gdfrustc]
224-
* The [rust referance][rr], even though it doesn't specifically talk about Rust's internals, its a great reasource nontheless
225-
* Although out of date, [Tom Lee's great blog article][tlgba] is very helpful
226-
* [rustaceans.org][ro] is helpful, but mostly dedicated to IRC
227-
* The [Rust Compiler Testing Docs][rctd]
228-
* For @bors, [this cheetsheat][cheetsheat] is helpful (Remember to replace `@homu` with `@bors` in the commands that you use.)
229-
* **Google**!
230-
* Don't be afraid to ask! The Rust community is friendly and helpful.
231-
232-
[gdfrustc]: http://manishearth.github.io/rust-internals-docs/rustc/
233-
[rif]: http://internals.rust-lang.org
234-
[rr]: https://doc.rust-lang.org/book/README.html
235-
[tlgba]: http://tomlee.co/2014/04/03/a-more-detailed-tour-of-the-rust-compiler/
236-
[ro]: http://www.rustaceans.org/
237-
[rctd]: ./COMPILER_TESTS.md
238-
[cheetsheat]: http://buildbot.rust-lang.org/homu/

branches/beta/COPYRIGHT

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,104 @@ The Rust Project includes packages written by third parties.
2222
The following third party packages are included, and carry
2323
their own copyright notices and license terms:
2424

25+
* 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
28+
are redistributed under the following terms, as noted in
29+
them:
30+
31+
for src/rt/valgrind/valgrind.h:
32+
33+
This file is part of Valgrind, a dynamic binary
34+
instrumentation framework.
35+
36+
Copyright (C) 2000-2010 Julian Seward. All rights
37+
reserved.
38+
39+
Redistribution and use in source and binary forms, with
40+
or without modification, are permitted provided that the
41+
following conditions are met:
42+
43+
1. Redistributions of source code must retain the above
44+
copyright notice, this list of conditions and the
45+
following disclaimer.
46+
47+
2. The origin of this software must not be
48+
misrepresented; you must not claim that you wrote the
49+
original software. If you use this software in a
50+
product, an acknowledgment in the product
51+
documentation would be appreciated but is not
52+
required.
53+
54+
3. Altered source versions must be plainly marked as
55+
such, and must not be misrepresented as being the
56+
original software.
57+
58+
4. The name of the author may not be used to endorse or
59+
promote products derived from this software without
60+
specific prior written permission.
61+
62+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
63+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
64+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
65+
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
66+
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
67+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
68+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
69+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
70+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
71+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
72+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
73+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
74+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
75+
OF SUCH DAMAGE.
76+
77+
for src/rt/valgrind/memcheck.h:
78+
79+
This file is part of MemCheck, a heavyweight Valgrind
80+
tool for detecting memory errors.
81+
82+
Copyright (C) 2000-2010 Julian Seward. All rights
83+
reserved.
84+
85+
Redistribution and use in source and binary forms, with
86+
or without modification, are permitted provided that the
87+
following conditions are met:
88+
89+
1. Redistributions of source code must retain the above
90+
copyright notice, this list of conditions and the
91+
following disclaimer.
92+
93+
2. The origin of this software must not be
94+
misrepresented; you must not claim that you wrote the
95+
original software. If you use this software in a
96+
product, an acknowledgment in the product
97+
documentation would be appreciated but is not
98+
required.
99+
100+
3. Altered source versions must be plainly marked as
101+
such, and must not be misrepresented as being the
102+
original software.
103+
104+
4. The name of the author may not be used to endorse or
105+
promote products derived from this software without
106+
specific prior written permission.
107+
108+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
109+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
110+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
111+
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
112+
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
113+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
114+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
115+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
116+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
117+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
118+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
119+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
120+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
121+
OF SUCH DAMAGE.
122+
25123
* The src/rt/miniz.c file, carrying an implementation of
26124
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
27125
<[email protected]>. All uses of this file are

branches/beta/RELEASES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.2.0 (2015-08-07)
1+
Version 1.2.0 (August 2015)
22
===========================
33

44
* ~1200 changes, numerous bugfixes
@@ -156,7 +156,7 @@ Misc
156156
[ad]: https://github.com/rust-lang/rust/pull/27382
157157
[win]: https://github.com/rust-lang/rust/pull/25350
158158

159-
Version 1.1.0 (2015-06-25)
159+
Version 1.1.0 (June 2015)
160160
=========================
161161

162162
* ~850 changes, numerous bugfixes
@@ -267,7 +267,7 @@ Misc
267267
[`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
268268
[drop]: https://github.com/rust-lang/rust/pull/24935
269269

270-
Version 1.0.0 (2015-05-15)
270+
Version 1.0.0 (May 2015)
271271
========================
272272

273273
* ~1500 changes, numerous bugfixes

branches/beta/configure

Lines changed: 11 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -885,28 +885,6 @@ then
885885
CFG_DISABLE_JEMALLOC=1
886886
fi
887887

888-
# default gcc version under OpenBSD maybe too old, try using egcc, which is a
889-
# gcc version from ports
890-
if [ $CFG_OSTYPE = unknown-openbsd ]
891-
then
892-
if [ $("$CFG_GCC" --version 2>&1 | grep -c ' 4\.[0-6]') -ne 0 ]; then
893-
step_msg "older GCC found, try with egcc instead"
894-
895-
# probe again but using egcc
896-
probe CFG_GCC egcc
897-
898-
# and use egcc/eg++ for CC/CXX too if it was found
899-
# (but user setting has priority)
900-
if [ -n "$CFG_GCC" ]; then
901-
CC="${CC:-egcc}"
902-
CXX="${CXX:-eg++}"
903-
fi
904-
fi
905-
906-
step_msg "on OpenBSD, disabling jemalloc"
907-
CFG_DISABLE_JEMALLOC=1
908-
fi
909-
910888
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
911889
# system, so if we find that gcc is clang, we should just use clang directly.
912890
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
@@ -978,7 +956,7 @@ then
978956
LLVM_VERSION=$($LLVM_CONFIG --version)
979957

980958
case $LLVM_VERSION in
981-
(3.[5-8]*)
959+
(3.[5-7]*)
982960
msg "found ok version of LLVM: $LLVM_VERSION"
983961
;;
984962
(*)
@@ -1052,7 +1030,7 @@ then
10521030
esac
10531031
else
10541032
case $CFG_CLANG_VERSION in
1055-
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7* | 3.8*)
1033+
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7*)
10561034
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
10571035
;;
10581036
(*)
@@ -1191,56 +1169,27 @@ do
11911169
#
11921170
# Consequently here we try to detect when that happens and print an
11931171
# error if it does.
1194-
if $CFG_PYTHON -c 'import sys; print sys.argv[1]' `pwd` | grep '^/' > /dev/null
1172+
if $CFG_PYTHON -c 'import sys; print sys.argv[1]' `pwd` | grep '^/'
11951173
then
1196-
err "
1197-
1198-
python is silently translating windows paths to MSYS paths \
1199-
and the build will fail if this python is used.
1200-
1201-
Either an official python install must be used or an \
1202-
alternative python package in MinGW must be used.
1203-
1204-
If you are building under msys2 try installing the mingw-w64-x86_64-python2 \
1205-
package instead of python2:
1206-
1207-
$ pacman -R python2 && pacman -S mingw-w64-x86_64-python2
1208-
"
1174+
err "python is silently translating windows paths to MSYS paths \
1175+
and the build will fail if this python is used.\n\n \
1176+
Either an official python install must be used or an \
1177+
alternative python package in MinGW must be used."
12091178
fi
12101179

12111180
# MSVC requires cmake because that's how we're going to build LLVM
12121181
probe_need CFG_CMAKE cmake
12131182

1214-
# There are three builds of cmake on windows: MSVC, MinGW and Cygwin
1215-
# The Cygwin build does not have generators for Visual Studio, so
1216-
# detect that here and error.
1217-
if ! "$CFG_CMAKE" --help | sed -n '/^Generators/,$p' | grep 'Visual Studio' > /dev/null
1218-
then
1219-
err "
1220-
1221-
cmake does not support Visual Studio generators.
1222-
1223-
This is likely due to it being an msys/cygwin build of cmake, \
1224-
rather than the required windows version, built using MinGW \
1225-
or Visual Studio.
1226-
1227-
If you are building under msys2 try installing the mingw-w64-x86_64-cmake \
1228-
package instead of cmake:
1229-
1230-
$ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
1231-
"
1232-
fi
1233-
12341183
# Use the REG program to figure out where VS is installed
12351184
# We need to figure out where cl.exe and link.exe are, so we do some
12361185
# munging and some probing here. We also look for the default
12371186
# INCLUDE and LIB variables for MSVC so we can set those in the
12381187
# build system as well.
1239-
install=$(cmd //c reg QUERY \
1188+
install=$(reg QUERY \
12401189
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0' \
12411190
-v InstallDir)
12421191
if [ -z "$install" ]; then
1243-
install=$(cmd //c reg QUERY \
1192+
install=$(reg QUERY \
12441193
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
12451194
-v InstallDir)
12461195
fi
@@ -1273,9 +1222,9 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
12731222
eval CFG_MSVC_LINK_$bits="\"$bindir/link.exe\""
12741223

12751224
vcvarsall="${CFG_MSVC_ROOT}/VC/vcvarsall.bat"
1276-
include_path=$(cmd //V:ON //c "$vcvarsall" $msvc_part \& echo !INCLUDE!)
1225+
include_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %INCLUDE%")
12771226
need_ok "failed to learn about MSVC's INCLUDE"
1278-
lib_path=$(cmd //V:ON //c "$vcvarsall" $msvc_part \& echo !LIB!)
1227+
lib_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %LIB%")
12791228
need_ok "failed to learn about MSVC's LIB"
12801229

12811230
eval CFG_MSVC_INCLUDE_PATH_${bits}="\"$include_path\""

branches/beta/mk/crates.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ TARGET_CRATES := libc std flate arena term \
5454
log graphviz core rbml alloc \
5555
rustc_unicode rustc_bitflags \
5656
alloc_system
57-
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
57+
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5959
rustc_data_structures rustc_front rustc_platform_intrinsics
6060
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
@@ -70,12 +70,11 @@ DEPS_std := core libc rand alloc collections rustc_unicode \
7070
DEPS_graphviz := std
7171
DEPS_syntax := std term serialize log fmt_macros arena libc rustc_bitflags
7272
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
73-
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
73+
rustc_typeck rustc_resolve log syntax serialize rustc_llvm \
7474
rustc_trans rustc_privacy rustc_lint rustc_front
7575

7676
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
7777
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics
78-
DEPS_rustc_mir := rustc rustc_front syntax
7978
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics
8079
DEPS_rustc_borrowck := rustc rustc_front log graphviz syntax
8180
DEPS_rustc_resolve := rustc rustc_front log syntax

branches/beta/mk/main.mk

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,6 @@ RUST_LIB_FLAGS_ST3 += -C prefer-dynamic
172172
# by not emitting them.
173173
RUSTFLAGS_STAGE0 += -Z no-landing-pads
174174

175-
# Enable MIR to "always build" for crates where this works. This is
176-
# just temporary while MIR is being actively built up -- it's just a
177-
# poor man's unit testing infrastructure. Anyway we only want this for
178-
# stage1/stage2.
179-
define ADD_MIR_FLAG
180-
RUSTFLAGS1_$(1) += -Z always-build-mir
181-
RUSTFLAGS2_$(1) += -Z always-build-mir
182-
endef
183-
$(foreach crate,$(TARGET_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
184-
$(foreach crate,$(RUSTC_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
185-
$(foreach crate,$(HOST_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
186-
187175
# platform-specific auto-configuration
188176
include $(CFG_SRC_DIR)mk/platform.mk
189177

0 commit comments

Comments
 (0)