Skip to content

Commit 2b7a43b

Browse files
committed
---
yaml --- r: 277281 b: refs/heads/try c: 1356572 h: refs/heads/master i: 277279: 06e269a
1 parent 21e7f3a commit 2b7a43b

File tree

323 files changed

+4790
-6996
lines changed

Some content is hidden

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

323 files changed

+4790
-6996
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: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 95545e7adcf1715eff2a31a53fe25ce2b012e62b
4+
refs/heads/try: 135657206fba40c3f6138362b62457f4452e578b
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ are:
307307
[gsearchdocs]: https://www.google.com/search?q=site:doc.rust-lang.org+your+query+here
308308
[rif]: http://internals.rust-lang.org
309309
[rr]: https://doc.rust-lang.org/book/README.html
310-
[tlgba]: http://tomlee.co/2014/04/a-more-detailed-tour-of-the-rust-compiler/
310+
[tlgba]: http://tomlee.co/2014/04/03/a-more-detailed-tour-of-the-rust-compiler/
311311
[ro]: http://www.rustaceans.org/
312312
[rctd]: ./COMPILER_TESTS.md
313313
[cheatsheet]: http://buildbot.rust-lang.org/homu/

branches/try/Makefile.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@ include $(CFG_SRC_DIR)mk/debuggers.mk
214214
# Secondary makefiles, conditionalized for speed
215215
######################################################################
216216

217+
# Binary snapshots
218+
ifneq ($(strip $(findstring snap,$(MAKECMDGOALS)) \
219+
$(findstring clean,$(MAKECMDGOALS))),)
220+
CFG_INFO := $(info cfg: including snap rules)
221+
include $(CFG_SRC_DIR)mk/snap.mk
222+
endif
223+
217224
# The test suite
218225
ifneq ($(strip $(findstring check,$(MAKECMDGOALS)) \
219226
$(findstring test,$(MAKECMDGOALS)) \

branches/try/RELEASES.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ Cargo
140140
Performance
141141
-----------
142142

143-
* [The time complexity of comparing variables for equivalence during type
144-
unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
145-
to major compilation time improvement in some scenarios.
143+
* [During type unification, the complexity of comparing variables for
144+
equivalance was reduced from `O(n!)` to `O(n)`][1.9tu]. This leads
145+
to major compile-time improvements in some scenarios.
146146
* [`ToString` is specialized for `str`, giving it the same performance
147147
as `to_owned`][1.9ts].
148148
* [Spawning processes with `Command::output` no longer creates extra
@@ -418,7 +418,7 @@ Compatibility Notes
418418
numbers [no longer return platform-specific types][1.8r], but
419419
instead return widened integers. [RFC 1415].
420420
* [Modules sourced from the filesystem cannot appear within arbitrary
421-
blocks, but only within other modules][1.8mf].
421+
blocks, but only within other modules][1.8m].
422422
* [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
423423
* On Unix, [stack overflow triggers a runtime abort instead of a
424424
SIGSEGV][1.8so].
@@ -448,7 +448,7 @@ Compatibility Notes
448448
[1.8h]: https://github.com/rust-lang/rust/pull/31460
449449
[1.8l]: https://github.com/rust-lang/rust/pull/31668
450450
[1.8m]: https://github.com/rust-lang/rust/pull/31020
451-
[1.8mf]: https://github.com/rust-lang/rust/pull/31534
451+
[1.8m]: https://github.com/rust-lang/rust/pull/31534
452452
[1.8mp]: https://github.com/rust-lang/rust/pull/30894
453453
[1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
454454
[1.8ms]: https://github.com/rust-lang/rust/pull/30448

branches/try/mk/crates.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize \
9797
rustc_back graphviz
9898

9999
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
100-
log graphviz rustc_llvm rustc_back rustc_data_structures\
100+
log graphviz rustc_back rustc_data_structures\
101101
rustc_const_math
102102
DEPS_rustc_back := std syntax flate log libc
103103
DEPS_rustc_borrowck := rustc rustc_mir log graphviz syntax
@@ -133,7 +133,7 @@ TOOL_DEPS_rustdoc := rustdoc
133133
TOOL_DEPS_rustc := rustc_driver
134134
TOOL_DEPS_rustbook := std rustdoc
135135
TOOL_DEPS_error_index_generator := rustdoc syntax serialize
136-
TOOL_SOURCE_compiletest := $(S)src/tools/compiletest/src/main.rs
136+
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
137137
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
138138
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
139139
TOOL_SOURCE_rustbook := $(S)src/tools/rustbook/main.rs

branches/try/mk/dist.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ PKG_FILES := \
5050
$(addprefix $(S)src/, \
5151
bootstrap \
5252
build_helper \
53+
compiletest \
5354
doc \
5455
driver \
5556
etc \
@@ -61,7 +62,7 @@ PKG_FILES := \
6162
rtstartup \
6263
rustllvm \
6364
rustc \
64-
stage0.txt \
65+
snapshots.txt \
6566
rust-installer \
6667
tools \
6768
test) \

branches/try/mk/main.mk

Lines changed: 1 addition & 2 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
@@ -34,7 +34,6 @@ CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE)$(CFG_EXTRA_FILENAME) | $(C
3434
# intentionally not "secure" by any definition, this is largely just a deterrent
3535
# from users enabling unstable features on the stable compiler.
3636
CFG_BOOTSTRAP_KEY=$(CFG_FILENAME_EXTRA)
37-
CFG_BOOTSTRAP_KEY_STAGE0=$(shell grep 'rustc_key' $(S)src/stage0.txt | sed 's/rustc_key: '//)
3837

3938
ifeq ($(CFG_RELEASE_CHANNEL),stable)
4039
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"

branches/try/mk/reconfig.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ else
3838
SREL_ROOT := $(SREL)
3939
endif
4040

41-
config.stamp: $(S)configure $(S)Makefile.in $(S)src/stage0.txt
41+
config.stamp: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
4242
@$(call E, cfg: reconfiguring)
4343
$(SREL_ROOT)configure $(CFG_CONFIGURE_ARGS)

branches/try/mk/rustllvm.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ $$(RT_OUTPUT_DIR_$(1))/$$(call CFG_STATIC_LIB_NAME_$(1),rustllvm): \
4343
@$$(call E, link: $$@)
4444
$$(Q)$$(call CFG_CREATE_ARCHIVE_$(1),$$@) $$^
4545

46-
RUSTLLVM_COMPONENTS_$(1) = $$(shell echo $$(LLVM_ALL_COMPONENTS_$(1)) |\
47-
tr 'a-z-' 'A-Z_'| sed -e 's/^ //;s/\([^ ]*\)/\-DLLVM_COMPONENT_\1/g')
48-
4946
# On MSVC we need to double-escape arguments that llvm-config printed which
5047
# start with a '/'. The shell we're running in will auto-translate the argument
5148
# `/foo` to `C:/msys64/foo` but we really want it to be passed through as `/foo`
@@ -54,7 +51,6 @@ $(1)/rustllvm/%.o: $(S)src/rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1))
5451
@$$(call E, compile: $$@)
5552
$$(Q)$$(call CFG_COMPILE_CXX_$(1), $$@,) \
5653
$$(subst /,//,$$(LLVM_CXXFLAGS_$(1))) \
57-
$$(RUSTLLVM_COMPONENTS_$(1)) \
5854
$$(EXTRA_RUSTLLVM_CXXFLAGS_$(1)) \
5955
$$(RUSTLLVM_INCS_$(1)) \
6056
$$<

branches/try/mk/snap.mk

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2+
# file at the top-level directory of this distribution and at
3+
# http://rust-lang.org/COPYRIGHT.
4+
#
5+
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
# option. This file may not be copied, modified, or distributed
9+
# except according to those terms.
10+
11+
define DEF_SNAP_FOR_STAGE_H
12+
# $(1) stage
13+
# $(2) triple
14+
15+
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
16+
$(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2)
17+
18+
endef
19+
20+
$(foreach host,$(CFG_HOST), \
21+
$(foreach stage,1 2 3, \
22+
$(eval $(call DEF_SNAP_FOR_STAGE_H,$(stage),$(host)))))
23+
24+
snap-stage1: snap-stage1-H-$(CFG_BUILD)
25+
26+
snap-stage2: snap-stage2-H-$(CFG_BUILD)
27+
28+
snap-stage3: snap-stage3-H-$(CFG_BUILD)

branches/try/mk/stage0.mk

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ $(HLIB0_H_$(CFG_BUILD))/:
1010
endif
1111

1212
$(SNAPSHOT_RUSTC_POST_CLEANUP): \
13-
$(S)src/stage0.txt \
14-
$(S)src/etc/get-stage0.py $(MKFILE_DEPS) \
13+
$(S)src/snapshots.txt \
14+
$(S)src/etc/get-snapshot.py $(MKFILE_DEPS) \
1515
| $(HBIN0_H_$(CFG_BUILD))/
16+
1617
@$(call E, fetch: $@)
18+
# Note: the variable "SNAPSHOT_FILE" is generally not set, and so
19+
# we generally only pass one argument to this script.
1720
ifdef CFG_ENABLE_LOCAL_RUST
1821
$(Q)$(S)src/etc/local_stage0.sh $(CFG_BUILD) $(CFG_LOCAL_RUST_ROOT) rustlib
1922
else
20-
$(Q)$(CFG_PYTHON) $(S)src/etc/get-stage0.py $(CFG_BUILD)
23+
$(Q)$(CFG_PYTHON) $(S)src/etc/get-snapshot.py $(CFG_BUILD) $(SNAPSHOT_FILE)
2124
endif
2225
$(Q)if [ -e "$@" ]; then touch "$@"; else echo "ERROR: snapshot $@ not found"; exit 1; fi
2326

branches/try/mk/target.mk

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ $(foreach host,$(CFG_HOST), \
6565
# $(4) is the crate name
6666
define RUST_TARGET_STAGE_N
6767

68-
ifeq ($(1),0)
69-
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
70-
export RUSTC_BOOTSTRAP_KEY := $$(CFG_BOOTSTRAP_KEY_STAGE0)
71-
endif
72-
7368
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): CFG_COMPILER_HOST_TRIPLE = $(2)
7469
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
7570
$$(CRATEFILE_$(4)) \
@@ -118,11 +113,6 @@ endef
118113
# $(4) - name of the tool being built
119114
define TARGET_TOOL
120115

121-
ifeq ($(1),0)
122-
$$(TBIN$(1)_T_$(2)_H_$(3))/$(4)$$(X_$(2)): \
123-
export RUSTC_BOOTSTRAP_KEY := $$(CFG_BOOTSTRAP_KEY_STAGE0)
124-
endif
125-
126116
$$(TBIN$(1)_T_$(2)_H_$(3))/$(4)$$(X_$(2)): \
127117
$$(TOOL_SOURCE_$(4)) \
128118
$$(TOOL_INPUTS_$(4)) \
@@ -177,15 +167,11 @@ SNAPSHOT_RUSTC_POST_CLEANUP=$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD))
177167

178168
define TARGET_HOST_RULES
179169

180-
$$(TLIB$(1)_T_$(2)_H_$(3))/: $$(SNAPSHOT_RUSTC_POST_CLEANUP)
181-
mkdir -p $$@
182-
183-
$$(TBIN$(1)_T_$(2)_H_$(3))/: $$(SNAPSHOT_RUSTC_POST_CLEANUP)
170+
$$(TLIB$(1)_T_$(2)_H_$(3))/:
184171
mkdir -p $$@
185172

186173
$$(TLIB$(1)_T_$(2)_H_$(3))/%: $$(RT_OUTPUT_DIR_$(2))/% \
187-
$$(SNAPSHOT_RUSTC_POST_CLEANUP) \
188-
| $$(TLIB$(1)_T_$(2)_H_$(3))/
174+
| $$(TLIB$(1)_T_$(2)_H_$(3))/ $$(SNAPSHOT_RUSTC_POST_CLEANUP)
189175
@$$(call E, cp: $$@)
190176
$$(Q)cp $$< $$@
191177
endef

branches/try/mk/tests.mk

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,13 @@ cleantestlibs:
241241
######################################################################
242242

243243
.PHONY: tidy
244-
tidy: $(HBIN0_H_$(CFG_BUILD))/tidy$(X_$(CFG_BUILD)) \
245-
$(SNAPSHOT_RUSTC_POST_CLEANUP)
244+
tidy: $(HBIN0_H_$(CFG_BUILD))/tidy$(X_$(CFG_BUILD))
246245
$(TARGET_RPATH_VAR0_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $< $(S)src
247246

248247
$(HBIN0_H_$(CFG_BUILD))/tidy$(X_$(CFG_BUILD)): \
249248
$(TSREQ0_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
250249
$(TLIB0_T_$(CFG_BUILD)_H_$(CFG_BUILD))/stamp.std \
251-
$(call rwildcard,$(S)src/tools/tidy/src,*.rs) \
252-
$(SNAPSHOT_RUSTC_POST_CLEANUP) | \
253-
$(TLIB0_T_$(CFG_BUILD)_H_$(CFG_BUILD))
250+
$(call rwildcard,$(S)src/tools/tidy/src,*.rs)
254251
$(STAGE0_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(S)src/tools/tidy/src/main.rs \
255252
--out-dir $(@D) --crate-name tidy
256253

@@ -614,7 +611,7 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
614611
--run-lib-path $$(TLIB$(1)_T_$(2)_H_$(3)) \
615612
--rustc-path $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
616613
--rustdoc-path $$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
617-
--llvm-filecheck $(CFG_LLVM_INST_DIR_$(CFG_BUILD))/bin/FileCheck \
614+
--llvm-bin-path $(CFG_LLVM_INST_DIR_$(CFG_BUILD))/bin \
618615
--aux-base $$(S)src/test/auxiliary/ \
619616
--stage-id stage$(1)-$(2) \
620617
--target $(2) \

branches/try/src/bootstrap/Cargo.lock

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

branches/try/src/bootstrap/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ path = "rustdoc.rs"
2121

2222
[dependencies]
2323
build_helper = { path = "../build_helper" }
24-
cmake = "0.1.17"
24+
cmake = "0.1.10"
2525
filetime = "0.1"
2626
num_cpus = "0.2"
2727
toml = "0.1"
@@ -31,4 +31,3 @@ winapi = "0.2"
3131
kernel32-sys = "0.2"
3232
gcc = "0.3.17"
3333
libc = "0.2"
34-
md5 = "0.1"

0 commit comments

Comments
 (0)