Skip to content

Commit 1ce1635

Browse files
committed
---
yaml --- r: 275353 b: refs/heads/master c: 8d61cb2 h: refs/heads/master i: 275351: d80d602
1 parent fe9f823 commit 1ce1635

File tree

1,187 files changed

+26951
-38149
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,187 files changed

+26951
-38149
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: ccc7e95a964ece830caf66ad537e89ae6fb397a6
2+
refs/heads/master: 8d61cb245d10bb2a61928cfa8651b1e88e7b115a
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
/stage3/
7979
/test/
8080
/tmp/
81-
/obj/
8281
TAGS
8382
TAGS.emacs
8483
TAGS.vi

trunk/COMPILER_TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn test_foo() {
7777
}
7878
```
7979

80-
Note that not all headers have meaning when customized to a revision.
80+
Note that not all headers have meaning when customized too a revision.
8181
For example, the `ignore-test` header (and all "ignore" headers)
8282
currently only apply to the test as a whole, not to particular
8383
revisions. The only headers that are intended to really work when

trunk/CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ which includes important information about what platform you're on, what
7171
version of Rust you're using, etc.
7272

7373
Sometimes, a backtrace is helpful, and so including that is nice. To get
74-
a backtrace, set the `RUST_BACKTRACE` environment variable to a value
75-
other than `0`. The easiest way
74+
a backtrace, set the `RUST_BACKTRACE` environment variable. The easiest way
7675
to do this is to invoke `rustc` like this:
7776

7877
```bash
@@ -133,8 +132,8 @@ Some common make targets are:
133132
- `make check-stage1-std NO_REBUILD=1` - test the standard library without
134133
rebuilding the entire compiler
135134
- `make check TESTNAME=<substring-of-test-name>` - Run a matching set of tests.
136-
- `TESTNAME` should be a substring of the tests to match against e.g. it could
137-
be the fully qualified test name, or just a part of it.
135+
- `TESTNAME` should be a substring of the tests to match against e.g. it could
136+
be the fully qualified test name, or just a part of it.
138137
`TESTNAME=collections::hash::map::test_map::test_capacity_not_less_than_len`
139138
or `TESTNAME=test_capacity_not_less_than_len`.
140139
- `make check-stage1-rpass TESTNAME=<substring-of-test-name>` - Run a single

trunk/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ build.
7777
7878
Download [MinGW from
7979
here](http://mingw-w64.org/doku.php/download/mingw-builds), and choose the
80-
`version=4.9.x,threads=win32,exceptions=dwarf/seh` flavor when installing. Also, make sure to install to a path without spaces in it. After installing,
80+
`threads=win32,exceptions=dwarf/seh` flavor when installing. Also, make sure to install to a path without spaces in it. After installing,
8181
add its `bin` directory to your `PATH`. This is due to [#28260](https://github.com/rust-lang/rust/issues/28260), in the future,
8282
installing from pacman should be just fine.
8383
@@ -177,11 +177,10 @@ To contribute to Rust, please see [CONTRIBUTING](CONTRIBUTING.md).
177177
Rust has an [IRC] culture and most real-time collaboration happens in a
178178
variety of channels on Mozilla's IRC network, irc.mozilla.org. The
179179
most popular channel is [#rust], a venue for general discussion about
180-
Rust. And a good place to ask for help would be [#rust-beginners].
180+
Rust, and a good place to ask for help.
181181
182182
[IRC]: https://en.wikipedia.org/wiki/Internet_Relay_Chat
183183
[#rust]: irc://irc.mozilla.org/rust
184-
[#rust-beginners]: irc://irc.mozilla.org/rust-beginners
185184
186185
## License
187186

trunk/RELEASES.md

Lines changed: 2 additions & 498 deletions
Large diffs are not rendered by default.

trunk/configure

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,6 @@ opt dist-host-only 0 "only install bins for the host architecture"
607607
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
608608
opt llvm-version-check 1 "check if the LLVM version is supported, build anyway"
609609
opt rustbuild 0 "use the rust and cargo based build system"
610-
opt orbit 0 "get MIR where it belongs - everywhere; most importantly, in orbit"
611-
opt codegen-tests 1 "run the src/test/codegen tests"
612610

613611
# Optimization and debugging options. These may be overridden by the release channel, etc.
614612
opt_nosave optimize 1 "build optimized rust code"
@@ -715,7 +713,17 @@ if [ -n "$CFG_ENABLE_DEBUG_ASSERTIONS" ]; then putvar CFG_ENABLE_DEBUG_ASSERTION
715713
if [ -n "$CFG_ENABLE_DEBUGINFO" ]; then putvar CFG_ENABLE_DEBUGINFO; fi
716714
if [ -n "$CFG_ENABLE_DEBUG_JEMALLOC" ]; then putvar CFG_ENABLE_DEBUG_JEMALLOC; fi
717715

718-
if [ -n "$CFG_ENABLE_ORBIT" ]; then putvar CFG_ENABLE_ORBIT; fi
716+
# A magic value that allows the compiler to use unstable features
717+
# during the bootstrap even when doing so would normally be an error
718+
# because of feature staging or because the build turns on
719+
# warnings-as-errors and unstable features default to warnings. The
720+
# build has to match this key in an env var. Meant to be a mild
721+
# deterrent from users just turning on unstable features on the stable
722+
# channel.
723+
# Basing CFG_BOOTSTRAP_KEY on CFG_BOOTSTRAP_KEY lets it get picked up
724+
# during a Makefile reconfig.
725+
CFG_BOOTSTRAP_KEY="${CFG_BOOTSTRAP_KEY-`date +%H:%M:%S`}"
726+
putvar CFG_BOOTSTRAP_KEY
719727

720728
step_msg "looking for build programs"
721729

@@ -958,11 +966,11 @@ then
958966
LLVM_VERSION=$($LLVM_CONFIG --version)
959967

960968
case $LLVM_VERSION in
961-
(3.[6-8]*)
969+
(3.[5-8]*)
962970
msg "found ok version of LLVM: $LLVM_VERSION"
963971
;;
964972
(*)
965-
err "bad LLVM version: $LLVM_VERSION, need >=3.6"
973+
err "bad LLVM version: $LLVM_VERSION, need >=3.5"
966974
;;
967975
esac
968976
fi
@@ -1023,7 +1031,7 @@ then
10231031
if [ -n "$CFG_OSX_CLANG_VERSION" ]
10241032
then
10251033
case $CFG_OSX_CLANG_VERSION in
1026-
(7.0* | 7.1* | 7.2* | 7.3*)
1034+
(7.0* | 7.1* | 7.2*)
10271035
step_msg "found ok version of APPLE CLANG: $CFG_OSX_CLANG_VERSION"
10281036
;;
10291037
(*)
@@ -1241,7 +1249,7 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
12411249
bits=x86_64
12421250
msvc_part=amd64
12431251
;;
1244-
i*86-*)
1252+
i686-*)
12451253
bits=i386
12461254
msvc_part=
12471255
;;
@@ -1486,9 +1494,7 @@ do
14861494
LLVM_INST_DIR=$CFG_LLVM_ROOT
14871495
do_reconfigure=0
14881496
# Check that LLVm FileCheck is available. Needed for the tests
1489-
if [ -z "$CFG_DISABLE_CODEGEN_TESTS" ]; then
1490-
need_cmd $LLVM_INST_DIR/bin/FileCheck
1491-
fi
1497+
need_cmd $LLVM_INST_DIR/bin/FileCheck
14921498
fi
14931499

14941500
if [ ${do_reconfigure} -ne 0 ]

trunk/man/rustc.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ the maximum number of threads used for this purpose.
268268

269269
.TP
270270
\fBRUST_TEST_NOCAPTURE\fR
271-
If set to a value other than "0", a synonym for the --nocapture flag.
271+
A synonym for the --nocapture flag.
272272

273273
.TP
274274
\fBRUST_MIN_STACK\fR
275275
Sets the minimum stack size for new threads.
276276

277277
.TP
278278
\fBRUST_BACKTRACE\fR
279-
If set to a value different than "0", produces a backtrace in the output of a program which panics.
279+
If set, produces a backtrace in the output of a program which panics.
280280

281281
.SH "EXAMPLES"
282282
To build an executable from a source file with a main function:

trunk/mk/cfg/i586-unknown-linux-gnu.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ CFG_LIB_NAME_i586-unknown-linux-gnu=lib$(1).so
77
CFG_STATIC_LIB_NAME_i586-unknown-linux-gnu=lib$(1).a
88
CFG_LIB_GLOB_i586-unknown-linux-gnu=lib$(1)-*.so
99
CFG_LIB_DSYM_GLOB_i586-unknown-linux-gnu=lib$(1)-*.dylib.dSYM
10-
CFG_JEMALLOC_CFLAGS_i586-unknown-linux-gnu := -m32 $(CFLAGS) -march=pentium
11-
CFG_GCCISH_CFLAGS_i586-unknown-linux-gnu := -Wall -Werror -g -fPIC -m32 $(CFLAGS) -march=pentium
12-
CFG_GCCISH_CXXFLAGS_i586-unknown-linux-gnu := -fno-rtti $(CXXFLAGS) -march=pentium
10+
CFG_JEMALLOC_CFLAGS_i586-unknown-linux-gnu := -m32 $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_i586-unknown-linux-gnu := -Wall -Werror -g -fPIC -m32 $(CFLAGS)
12+
CFG_GCCISH_CXXFLAGS_i586-unknown-linux-gnu := -fno-rtti $(CXXFLAGS)
1313
CFG_GCCISH_LINK_FLAGS_i586-unknown-linux-gnu := -shared -fPIC -ldl -pthread -lrt -g -m32
1414
CFG_GCCISH_DEF_FLAG_i586-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list=
1515
CFG_LLC_FLAGS_i586-unknown-linux-gnu :=

trunk/mk/crates.mk

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ TARGET_CRATES := libc std term \
5353
getopts collections test rand \
5454
core alloc \
5555
rustc_unicode rustc_bitflags \
56-
alloc_system alloc_jemalloc
56+
alloc_system alloc_jemalloc rustc_const_eval
5757
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
59-
rustc_data_structures rustc_platform_intrinsics \
60-
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
61-
rustc_const_eval rustc_const_math rustc_incremental
59+
rustc_data_structures rustc_front rustc_platform_intrinsics \
60+
rustc_plugin rustc_metadata rustc_passes
6261
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros \
6362
flate arena graphviz rbml log serialize
6463
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
@@ -92,43 +91,38 @@ DEPS_test := std getopts term native:rust_test_helpers
9291
DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode
9392
DEPS_syntax_ext := syntax fmt_macros
9493

95-
DEPS_rustc_const_math := std syntax log serialize
96-
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize \
97-
rustc_back graphviz
94+
DEPS_rustc_const_eval := std syntax
9895

99-
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
100-
log graphviz rustc_back rustc_data_structures\
101-
rustc_const_math
102-
DEPS_rustc_back := std syntax flate log libc
103-
DEPS_rustc_borrowck := rustc rustc_mir log graphviz syntax
96+
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
97+
log graphviz rustc_llvm rustc_back rustc_data_structures\
98+
rustc_const_eval
99+
DEPS_rustc_back := std syntax rustc_llvm rustc_front flate log libc
100+
DEPS_rustc_borrowck := rustc rustc_front log graphviz syntax
104101
DEPS_rustc_data_structures := std log serialize
105102
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
106103
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
107-
rustc_trans rustc_privacy rustc_lint rustc_plugin \
108-
rustc_metadata syntax_ext rustc_passes rustc_save_analysis rustc_const_eval \
109-
rustc_incremental
110-
DEPS_rustc_lint := rustc log syntax rustc_const_eval
104+
rustc_trans rustc_privacy rustc_lint rustc_front rustc_plugin \
105+
rustc_metadata syntax_ext rustc_passes
106+
DEPS_rustc_front := std syntax log serialize
107+
DEPS_rustc_lint := rustc log syntax
111108
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
112-
DEPS_rustc_metadata := rustc syntax rbml rustc_const_math
113-
DEPS_rustc_passes := syntax rustc core rustc_const_eval
114-
DEPS_rustc_mir := rustc syntax rustc_const_math rustc_const_eval
115-
DEPS_rustc_resolve := arena rustc log syntax
116-
DEPS_rustc_platform_intrinsics := std
109+
DEPS_rustc_metadata := rustc rustc_front syntax rbml rustc_const_eval
110+
DEPS_rustc_passes := syntax rustc core rustc_front
111+
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_eval
112+
DEPS_rustc_resolve := arena rustc rustc_front log syntax
113+
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
117114
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
118-
DEPS_rustc_privacy := rustc log syntax
115+
DEPS_rustc_privacy := rustc rustc_front log syntax
119116
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
120-
log syntax serialize rustc_llvm rustc_platform_intrinsics \
121-
rustc_const_math rustc_const_eval rustc_incremental
122-
DEPS_rustc_incremental := rbml rustc serialize rustc_data_structures
123-
DEPS_rustc_save_analysis := rustc log syntax
124-
DEPS_rustc_typeck := rustc syntax rustc_platform_intrinsics rustc_const_math \
125-
rustc_const_eval
117+
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics \
118+
rustc_const_eval
119+
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_eval
126120

127121
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
128-
test rustc_lint rustc_const_eval
122+
test rustc_lint rustc_front
129123

130124

131-
TOOL_DEPS_compiletest := test getopts log
125+
TOOL_DEPS_compiletest := test getopts
132126
TOOL_DEPS_rustdoc := rustdoc
133127
TOOL_DEPS_rustc := rustc_driver
134128
TOOL_DEPS_rustbook := std rustdoc

trunk/mk/main.mk

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.10.0
16+
CFG_RELEASE_NUM=1.9.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release
@@ -24,17 +24,6 @@ CFG_PRERELEASE_VERSION=.1
2424
# versions in the same place
2525
CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE)$(CFG_EXTRA_FILENAME) | $(CFG_HASH_COMMAND))
2626

27-
# A magic value that allows the compiler to use unstable features during the
28-
# bootstrap even when doing so would normally be an error because of feature
29-
# staging or because the build turns on warnings-as-errors and unstable features
30-
# default to warnings. The build has to match this key in an env var.
31-
#
32-
# This value is keyed off the release to ensure that all compilers for one
33-
# particular release have the same bootstrap key. Note that this is
34-
# intentionally not "secure" by any definition, this is largely just a deterrent
35-
# from users enabling unstable features on the stable compiler.
36-
CFG_BOOTSTRAP_KEY=$(CFG_FILENAME_EXTRA)
37-
3827
ifeq ($(CFG_RELEASE_CHANNEL),stable)
3928
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"
4029
CFG_RELEASE=$(CFG_RELEASE_NUM)
@@ -145,11 +134,6 @@ ifdef CFG_ENABLE_DEBUGINFO
145134
CFG_RUSTC_FLAGS += -g
146135
endif
147136

148-
ifdef CFG_ENABLE_ORBIT
149-
$(info cfg: launching MIR (CFG_ENABLE_ORBIT))
150-
CFG_RUSTC_FLAGS += -Z orbit
151-
endif
152-
153137
ifdef SAVE_TEMPS
154138
CFG_RUSTC_FLAGS += --save-temps
155139
endif
@@ -504,7 +488,7 @@ endif
504488
LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3) := \
505489
$$(CURDIR)/$$(HLIB$(1)_H_$(3)):$$(CFG_LLVM_INST_DIR_$(3))/lib
506490
LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3) := \
507-
$$(CURDIR)/$$(TLIB$(1)_T_$(2)_H_$(3))
491+
$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))
508492

509493
HOST_RPATH_VAR$(1)_T_$(2)_H_$(3) := \
510494
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3)):$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))
@@ -517,14 +501,18 @@ RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(HOST_RPATH_VAR$(1)_T_$(2)_H_$(3))
517501
# if you're building a cross config, the host->* parts are
518502
# effectively stage1, since it uses the just-built stage0.
519503
#
520-
# Also be sure to use the right rpath because we're loading libraries from the
521-
# CFG_BUILD's stage1 directory for our target, so switch this one instance of
522-
# `RPATH_VAR` to get the bootstrap working.
504+
# This logic is similar to how the LD_LIBRARY_PATH variable must
505+
# change be slightly different when doing cross compilations.
506+
# The build doesn't copy over all target libraries into
507+
# a new directory, so we need to point the library path at
508+
# the build directory where all the target libraries came
509+
# from (the stage0 build host). Otherwise the relative rpaths
510+
# inside of the rustc binary won't get resolved correctly.
523511
ifeq ($(1),0)
524512
ifneq ($(strip $(CFG_BUILD)),$(strip $(3)))
525513
CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
526514

527-
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(TARGET_RPATH_VAR1_T_$(2)_H_$$(CFG_BUILD))
515+
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(TARGET_RPATH_VAR$(1)_T_$(2)_H_$(3))
528516
endif
529517
endif
530518

trunk/mk/rt.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ else ifeq ($(findstring android, $(OSTYPE_$(1))), android)
157157
# If the test suite passes, however, without symbol prefixes then we should be
158158
# good to go!
159159
JEMALLOC_ARGS_$(1) := --disable-tls --with-jemalloc-prefix=je_
160-
else ifeq ($(findstring dragonfly, $(OSTYPE_$(1))), dragonfly)
161-
JEMALLOC_ARGS_$(1) := --with-jemalloc-prefix=je_
162160
endif
163161

164162
ifdef CFG_ENABLE_DEBUG_JEMALLOC
@@ -238,11 +236,11 @@ COMPRT_LIB_$(1) := $$(RT_OUTPUT_DIR_$(1))/$$(COMPRT_NAME_$(1))
238236
COMPRT_BUILD_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/compiler-rt
239237

240238
ifeq ($$(findstring msvc,$(1)),msvc)
241-
$$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS) $$(LLVM_CONFIG_$$(CFG_BUILD))
239+
$$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1))
242240
@$$(call E, cmake: compiler-rt)
243241
$$(Q)cd "$$(COMPRT_BUILD_DIR_$(1))"; $$(CFG_CMAKE) "$(S)src/compiler-rt" \
244242
-DCMAKE_BUILD_TYPE=$$(LLVM_BUILD_CONFIG_MODE) \
245-
-DLLVM_CONFIG_PATH=$$(LLVM_CONFIG_$$(CFG_BUILD)) \
243+
-DLLVM_CONFIG_PATH=$$(LLVM_CONFIG_$(1)) \
246244
-G"$$(CFG_CMAKE_GENERATOR)"
247245
$$(Q)$$(CFG_CMAKE) --build "$$(COMPRT_BUILD_DIR_$(1))" \
248246
--target lib/builtins/builtins \

trunk/mk/target.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8989
$$(RUSTFLAGS$(1)_$(4)_T_$(2)) \
9090
--out-dir $$(@D) \
9191
-C extra-filename=-$$(CFG_FILENAME_EXTRA) \
92-
-C metadata=$$(CFG_FILENAME_EXTRA) \
9392
$$<
9493
@touch -r $$@.start_time $$@ && rm $$@.start_time
9594
$$(call LIST_ALL_OLD_GLOB_MATCHES, \

0 commit comments

Comments
 (0)