Skip to content

Commit f156059

Browse files
committed
---
yaml --- r: 171767 b: refs/heads/beta c: f031285 h: refs/heads/master i: 171765: ee40c36 171763: 318e3b2 171759: 2aea90a v: v3
1 parent 1e2da4d commit f156059

File tree

613 files changed

+11889
-6901
lines changed

Some content is hidden

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

613 files changed

+11889
-6901
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 48c6c807955093cc08284d5c1f7abf2a1f62e1fd
34+
refs/heads/beta: f031285c3a76b86525695bbb5b46daa9e77df200
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/beta/CONTRIBUTING.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,5 @@ example, if it's 2014, and you change a Rust file that was created in
4747
// Copyright 2010-2014 The Rust Project Developers.
4848
```
4949

50-
# Coordination and communication
51-
52-
Get feedback from other developers on
53-
[discuss.rust-lang.org][discuss], and
54-
[#rust-internals][pound-rust-internals].
55-
56-
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57-
[discuss]: http://discuss.rust-lang.org
58-
5950
For more details, please refer to
6051
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

branches/beta/configure

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,6 @@ case $CFG_CPUTYPE in
444444
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
445445
;;
446446

447-
aarch64)
448-
CFG_CPUTYPE=aarch64
449-
;;
450-
451447
x86_64 | x86-64 | x64 | amd64)
452448
CFG_CPUTYPE=x86_64
453449
;;
@@ -992,7 +988,7 @@ do
992988
make_dir $t/rt/jemalloc
993989
for i in \
994990
isaac sync test \
995-
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips
991+
arch/i386 arch/x86_64 arch/arm arch/mips
996992
do
997993
make_dir $t/rt/stage$s/$i
998994
done
@@ -1169,7 +1165,7 @@ do
11691165

11701166
msg "configuring LLVM for $gnu_t"
11711167

1172-
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips"
1168+
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,mips"
11731169
LLVM_BUILD="--build=$gnu_t"
11741170
LLVM_HOST="--host=$gnu_t"
11751171
LLVM_TARGET="--target=$gnu_t"

branches/beta/mk/cfg/aarch64-unknown-linux-gnu.mk

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

branches/beta/mk/crates.mk

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
################################################################################
5151

5252
TARGET_CRATES := libc std flate arena term \
53-
serialize getopts collections test rand \
53+
serialize getopts collections test time rand \
5454
log regex graphviz core rbml alloc \
5555
unicode
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5757
rustc_trans rustc_back rustc_llvm
58-
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
58+
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc regex_macros fmt_macros
5959
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6060
TOOLS := compiletest rustdoc rustc
6161

@@ -75,11 +75,11 @@ DEPS_rustc_typeck := rustc syntax
7575
DEPS_rustc_borrowck := rustc log graphviz syntax
7676
DEPS_rustc_resolve := rustc log syntax
7777
DEPS_rustc := syntax flate arena serialize getopts rbml \
78-
log graphviz rustc_llvm rustc_back
78+
time log graphviz rustc_llvm rustc_back
7979
DEPS_rustc_llvm := native:rustllvm libc std
8080
DEPS_rustc_back := std syntax rustc_llvm flate log libc
8181
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
82-
test
82+
test time
8383
DEPS_flate := std native:miniz
8484
DEPS_arena := std
8585
DEPS_graphviz := std
@@ -90,10 +90,12 @@ DEPS_term := std log
9090
DEPS_getopts := std
9191
DEPS_collections := core alloc unicode
9292
DEPS_num := std
93-
DEPS_test := std getopts serialize rbml term regex native:rust_test_helpers
93+
DEPS_test := std getopts serialize rbml term time regex native:rust_test_helpers
94+
DEPS_time := std serialize
9495
DEPS_rand := core
9596
DEPS_log := std regex
9697
DEPS_regex := std
98+
DEPS_regex_macros = rustc syntax std regex
9799
DEPS_fmt_macros = std
98100

99101
TOOL_DEPS_compiletest := test getopts
@@ -122,8 +124,10 @@ DOC_CRATES := $(filter-out rustc, \
122124
$(filter-out rustc_driver, \
123125
$(filter-out log, \
124126
$(filter-out regex, \
127+
$(filter-out regex_macros, \
125128
$(filter-out getopts, \
126-
$(filter-out syntax, $(CRATES)))))))))))
129+
$(filter-out time, \
130+
$(filter-out syntax, $(CRATES)))))))))))))
127131
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
128132
rustc_typeck rustc_driver syntax
129133

branches/beta/mk/dist.mk

Lines changed: 106 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# * dist - make all distribution artifacts
1818
# * distcheck - sanity check dist artifacts
1919
# * dist-tar-src - source tarballs
20+
# * dist-win - Windows exe installers
21+
# * dist-osx - OS X .pkg installers
2022
# * dist-tar-bins - Ad-hoc Unix binary installers
2123
# * dist-docs - Stage docs for upload
2224

@@ -104,6 +106,108 @@ distcheck-tar-src: dist-tar-src
104106
$(Q)rm -Rf tmp/distcheck/srccheck
105107

106108

109+
######################################################################
110+
# Windows .exe installer
111+
######################################################################
112+
113+
# FIXME Needs to support all hosts, but making rust.iss compatible looks like a chore
114+
115+
ifdef CFG_ISCC
116+
117+
PKG_EXE = dist/$(PKG_NAME)-$(CFG_BUILD).exe
118+
119+
%.iss: $(S)src/etc/pkg/%.iss
120+
cp $< $@
121+
122+
%.ico: $(S)src/etc/pkg/%.ico
123+
cp $< $@
124+
125+
$(PKG_EXE): rust.iss modpath.iss upgrade.iss LICENSE.txt rust-logo.ico \
126+
$(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
127+
dist-prepare-win
128+
$(Q)rm -rf tmp/dist/win/gcc
129+
$(CFG_PYTHON) $(S)src/etc/make-win-dist.py tmp/dist/win/rust tmp/dist/win/gcc $(CFG_BUILD)
130+
@$(call E, ISCC: $@)
131+
$(Q)$(CFG_ISCC) $<
132+
133+
$(eval $(call DEF_PREPARE,win))
134+
135+
dist-prepare-win: PREPARE_HOST=$(CFG_BUILD)
136+
dist-prepare-win: PREPARE_TARGETS=$(CFG_BUILD)
137+
dist-prepare-win: PREPARE_DEST_DIR=tmp/dist/win/rust
138+
dist-prepare-win: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
139+
dist-prepare-win: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
140+
dist-prepare-win: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
141+
dist-prepare-win: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
142+
dist-prepare-win: PREPARE_CLEAN=true
143+
dist-prepare-win: prepare-base-win
144+
145+
endif
146+
147+
dist-win: $(PKG_EXE)
148+
149+
distcheck-win: dist-win
150+
151+
######################################################################
152+
# OS X .pkg installer
153+
######################################################################
154+
155+
ifeq ($(CFG_OSTYPE), apple-darwin)
156+
157+
define DEF_OSX_PKG
158+
159+
$$(eval $$(call DEF_PREPARE,osx-$(1)))
160+
161+
dist-prepare-osx-$(1): PREPARE_HOST=$(1)
162+
dist-prepare-osx-$(1): PREPARE_TARGETS=$(2)
163+
dist-prepare-osx-$(1): PREPARE_DEST_DIR=tmp/dist/pkgroot-$(1)
164+
dist-prepare-osx-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
165+
dist-prepare-osx-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
166+
dist-prepare-osx-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
167+
dist-prepare-osx-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
168+
dist-prepare-osx-$(1): prepare-base-osx-$(1)
169+
170+
dist/$(PKG_NAME)-$(1).pkg: $(S)src/etc/pkg/Distribution.xml LICENSE.txt \
171+
dist-prepare-osx-$(1) \
172+
tmp/dist/pkgres-$(1)/LICENSE.txt \
173+
tmp/dist/pkgres-$(1)/welcome.rtf \
174+
tmp/dist/pkgres-$(1)/rust-logo.png
175+
@$$(call E, making OS X pkg)
176+
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot-$(1) rust.pkg
177+
$(Q)productbuild --distribution $(S)src/etc/pkg/Distribution.xml \
178+
--resources tmp/dist/pkgres-$(1) dist/$(PKG_NAME)-$(1).pkg
179+
$(Q)rm -rf tmp rust.pkg
180+
181+
tmp/dist/pkgres-$(1)/LICENSE.txt: LICENSE.txt
182+
@$$(call E,pkg resource LICENSE.txt)
183+
$(Q)mkdir -p $$(@D)
184+
$(Q)cp $$< $$@
185+
186+
tmp/dist/pkgres-$(1)/%: $(S)src/etc/pkg/%
187+
@$$(call E,pkg resource $$*)
188+
$(Q)mkdir -p $$(@D)
189+
$(Q)cp -r $$< $$@
190+
191+
endef
192+
193+
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
194+
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(host))))
195+
else
196+
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(TARGET))))
197+
endif
198+
199+
dist-osx: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).pkg)
200+
201+
else
202+
203+
dist-osx:
204+
205+
endif
206+
207+
# FIXME should do something
208+
distcheck-osx: dist-osx
209+
210+
107211
######################################################################
108212
# Unix binary installer tarballs
109213
######################################################################
@@ -273,9 +377,9 @@ MAYBE_DIST_DOCS=dist-docs
273377
MAYBE_DISTCHECK_DOCS=distcheck-docs
274378
endif
275379

276-
dist: $(MAYBE_DIST_TAR_SRC) dist-tar-bins $(MAYBE_DIST_DOCS)
380+
dist: $(MAYBE_DIST_TAR_SRC) dist-osx dist-win dist-tar-bins $(MAYBE_DIST_DOCS)
277381

278-
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-tar-bins $(MAYBE_DISTCHECK_DOCS)
382+
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-win distcheck-tar-bins $(MAYBE_DISTCHECK_DOCS)
279383
$(Q)rm -Rf tmp/distcheck
280384
@echo
281385
@echo -----------------------------------------------

branches/beta/mk/grammar.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $(BG)RustLexer.class: $(BG) $(SG)RustLexer.g4
3737
check-build-lexer-verifier: $(BG)verify
3838

3939
ifeq ($(NO_REBUILD),)
40-
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.rustc
40+
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
4141
else
4242
VERIFY_DEPS :=
4343
endif

branches/beta/mk/install.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ endif
2828
# Remove tmp files because it's a decent amount of disk space
2929
$(Q)rm -R tmp/dist
3030

31-
prepare_install: dist-tar-bins | tmp/empty_dir
31+
ifeq ($(CFG_DISABLE_DOCS),)
32+
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz dist/$(DOC_PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
33+
else
34+
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
35+
endif
3236

3337
uninstall:
3438
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
@@ -44,7 +48,7 @@ endif
4448
# Remove tmp files because it's a decent amount of disk space
4549
$(Q)rm -R tmp/dist
4650

47-
prepare_uninstall: dist-tar-bins | tmp/empty_dir
51+
prepare_uninstall: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
4852

4953
.PHONY: install prepare_install uninstall prepare_uninstall
5054

branches/beta/mk/main.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
22
# file at the top-level directory of this distribution and at
33
# http://rust-lang.org/COPYRIGHT.
44
#
@@ -45,7 +45,7 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-dev
4545
endif
4646

4747
# The name of the package to use for creating tarballs, installers etc.
48-
CFG_PACKAGE_NAME=rustc-$(CFG_PACKAGE_VERS)
48+
CFG_PACKAGE_NAME=rust-$(CFG_PACKAGE_VERS)
4949

5050
# The version string plus commit information - this is what rustc reports
5151
CFG_VERSION = $(CFG_RELEASE)
@@ -261,7 +261,7 @@ endif
261261
######################################################################
262262

263263
# FIXME: x86-ism
264-
LLVM_COMPONENTS=x86 arm aarch64 mips ipo bitreader bitwriter linker asmparser mcjit \
264+
LLVM_COMPONENTS=x86 arm mips ipo bitreader bitwriter linker asmparser mcjit \
265265
interpreter instrumentation
266266

267267
# Only build these LLVM tools

branches/beta/mk/platform.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
# file at the top-level directory of this distribution and at
33
# http://rust-lang.org/COPYRIGHT.
44
#
@@ -177,7 +177,7 @@ define CFG_MAKE_TOOLCHAIN
177177
$$(CFG_GCCISH_DEF_FLAG_$(1))$$(3) $$(2) \
178178
$$(call CFG_INSTALL_NAME_$(1),$$(4))
179179

180-
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel),)
180+
ifeq ($$(findstring $(HOST_$(1)),arm mips mipsel),)
181181

182182
# We're using llvm-mc as our assembler because it supports
183183
# .cfi pseudo-ops on mac
@@ -189,7 +189,7 @@ define CFG_MAKE_TOOLCHAIN
189189
-o=$$(1)
190190
else
191191

192-
# For the ARM, AARCH64 and MIPS crosses, use the toolchain assembler
192+
# For the ARM and MIPS crosses, use the toolchain assembler
193193
# FIXME: We should be able to use the LLVM assembler
194194
CFG_ASSEMBLE_$(1)=$$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
195195
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)

branches/beta/mk/tests.mk

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,15 @@ TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
373373
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
374374
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4))
375375

376+
# The regex crate depends on the regex_macros crate during testing, but it
377+
# notably depend on the *host* regex_macros crate, not the target version.
378+
# Additionally, this is not a dependency in stage1, only in stage2.
379+
ifeq ($(4),regex)
380+
ifneq ($(1),1)
381+
TESTDEP_$(1)_$(2)_$(3)_$(4) += $$(TLIB$(1)_T_$(3)_H_$(3))/stamp.regex_macros
382+
endif
383+
endif
384+
376385
else
377386
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
378387
endif
@@ -834,8 +843,27 @@ else
834843
CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
835844
endif
836845

846+
# (Issues #13732, #13983, #14000) The doc for the regex crate includes
847+
# uses of the `regex!` macro from the regex_macros crate. There is
848+
# normally a dependence injected that makes the target's regex depend
849+
# upon the host's regex_macros (see #13845), but that dependency
850+
# injection is currently skipped for stage1 as a special case.
851+
#
852+
# Therefore, as a further special case, this conditional skips
853+
# attempting to run the doc tests for the regex crate atop stage1,
854+
# (since there is no regex_macros crate for the stage1 rustc to load).
855+
#
856+
# (Another approach for solving this would be to inject the desired
857+
# dependence for stage1 as well, by setting things up to generate a
858+
# regex_macros crate that was compatible with the stage1 rustc and
859+
# thus re-enable our ability to run this test.)
860+
ifeq (stage$(1)-crate-$(4),stage1-crate-regex)
861+
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec:
862+
@$$(call E, skipping doc-crate-$(4) as it uses macros and cannot run at stage$(1))
863+
else
837864
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec: \
838865
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4))
866+
endif
839867

840868
ifeq ($(2),$$(CFG_BUILD))
841869
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)): $$(CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4))

0 commit comments

Comments
 (0)