Skip to content

Commit 3371244

Browse files
committed
---
yaml --- r: 183727 b: refs/heads/beta c: e4e4afa h: refs/heads/master i: 183725: 08dbf6e 183723: 469a207 183719: c414c03 183711: 51cc423 v: v3
1 parent f4f6b62 commit 3371244

File tree

289 files changed

+5669
-3029
lines changed

Some content is hidden

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

289 files changed

+5669
-3029
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: dab626b5becdab4155e0328ab4ac140cef5cc715
34+
refs/heads/beta: e4e4afa92d5c9c5e1ff923c30f72cb7f0832f8ac
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@ documentation.
55

66
## Quick Start
77

8-
1. Download a [binary installer][installer] for your platform.
9-
2. Read [The Rust Programming Language][trpl].
10-
3. Enjoy!
8+
Read ["Installing Rust"][install] from [The Book][trpl].
119

12-
> ***Note:*** Windows users can read the detailed
13-
> [using Rust on Windows][win-wiki] notes on the wiki.
14-
15-
[installer]: http://www.rust-lang.org/install.html
10+
[install]: http://doc.rust-lang.org/book/installing-rust.html
1611
[trpl]: http://doc.rust-lang.org/book/index.html
17-
[win-wiki]: https://github.com/rust-lang/rust/wiki/Using-Rust-on-Windows
1812

1913
## Building from Source
2014

@@ -52,8 +46,6 @@ documentation.
5246
When complete, `make install` will place several programs into
5347
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
5448
API-documentation tool.
55-
3. Read [The Rust Programming Language][trpl].
56-
4. Enjoy!
5749

5850
### Building on Windows
5951

@@ -81,7 +73,6 @@ $ pacman -S base-devel
8173

8274
[repo]: https://github.com/rust-lang/rust
8375
[tarball]: https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
84-
[trpl]: http://doc.rust-lang.org/book/index.html
8576

8677
## Notes
8778

branches/beta/mk/dist.mk

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ distcheck-tar-src: dist-tar-src
109109
# Unix binary installer tarballs
110110
######################################################################
111111

112-
NON_INSTALLED_PREFIXES=COPYRIGHT,LICENSE-APACHE,LICENSE-MIT,README.md,version
113-
114112
define DEF_INSTALLER
115113

116114
$$(eval $$(call DEF_PREPARE,dir-$(1)))
@@ -124,19 +122,23 @@ dist-install-dir-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
124122
dist-install-dir-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
125123
dist-install-dir-$(1): PREPARE_CLEAN=true
126124
dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
127-
$$(Q)$$(PREPARE_MAN_CMD) $$(S)COPYRIGHT $$(PREPARE_DEST_DIR)
128-
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)
129-
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)
130-
$$(Q)$$(PREPARE_MAN_CMD) $$(S)README.md $$(PREPARE_DEST_DIR)
131125
$$(Q)mkdir -p $$(PREPARE_DEST_DIR)/share/doc/rust
132126
$$(Q)$$(PREPARE_MAN_CMD) $$(S)COPYRIGHT $$(PREPARE_DEST_DIR)/share/doc/rust
133127
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)/share/doc/rust
134128
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)/share/doc/rust
135129
$$(Q)$$(PREPARE_MAN_CMD) $$(S)README.md $$(PREPARE_DEST_DIR)/share/doc/rust
130+
131+
prepare-overlay-$(1):
132+
$$(Q)rm -Rf tmp/dist/$$(PKG_NAME)-$(1)-overlay
133+
$$(Q)mkdir -p tmp/dist/$$(PKG_NAME)-$(1)-overlay
134+
$$(Q)cp $$(S)COPYRIGHT tmp/dist/$$(PKG_NAME)-$(1)-overlay/
135+
$$(Q)cp $$(S)LICENSE-APACHE tmp/dist/$$(PKG_NAME)-$(1)-overlay/
136+
$$(Q)cp $$(S)LICENSE-MIT tmp/dist/$$(PKG_NAME)-$(1)-overlay/
137+
$$(Q)cp $$(S)README.md tmp/dist/$$(PKG_NAME)-$(1)-overlay/
136138
# This tiny morsel of metadata is used by rust-packaging
137-
$$(Q)echo "$(CFG_VERSION)" > $$(PREPARE_DEST_DIR)/version
139+
$$(Q)echo "$(CFG_VERSION)" > tmp/dist/$$(PKG_NAME)-$(1)-overlay/version
138140

139-
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
141+
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1) prepare-overlay-$(1)
140142
@$(call E, build: $$@)
141143
# Copy essential gcc components into installer
142144
ifdef CFG_WINDOWSY_$(1)
@@ -146,13 +148,12 @@ ifdef CFG_WINDOWSY_$(1)
146148
endif
147149
$$(Q)$$(S)src/rust-installer/gen-installer.sh \
148150
--product-name=Rust \
149-
--verify-bin=rustc \
150151
--rel-manifest-dir=rustlib \
151152
--success-message=Rust-is-ready-to-roll. \
152153
--image-dir=tmp/dist/$$(PKG_NAME)-$(1)-image \
153154
--work-dir=tmp/dist \
154155
--output-dir=dist \
155-
--non-installed-prefixes=$$(NON_INSTALLED_PREFIXES) \
156+
--non-installed-overlay=tmp/dist/$$(PKG_NAME)-$(1)-overlay \
156157
--package-name=$$(PKG_NAME)-$(1) \
157158
--component-name=rustc \
158159
--legacy-manifest-dirs=rustlib,cargo

branches/beta/mk/docs.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
######################################################################
2828
DOCS := index intro tutorial complement-bugreport \
2929
complement-lang-faq complement-design-faq complement-project-faq \
30-
rustdoc reference
30+
rustdoc reference grammar
3131

3232
# Legacy guides, preserved for a while to reduce the number of 404s
3333
DOCS += guide-crates guide-error-handling guide-ffi guide-macros guide \
@@ -129,21 +129,21 @@ doc/:
129129
HTML_DEPS += doc/rust.css
130130
doc/rust.css: $(D)/rust.css | doc/
131131
@$(call E, cp: $@)
132-
$(Q)cp -a $< $@ 2> /dev/null
132+
$(Q)cp -PRp $< $@ 2> /dev/null
133133

134134
HTML_DEPS += doc/favicon.inc
135135
doc/favicon.inc: $(D)/favicon.inc | doc/
136136
@$(call E, cp: $@)
137-
$(Q)cp -a $< $@ 2> /dev/null
137+
$(Q)cp -PRp $< $@ 2> /dev/null
138138

139139
doc/full-toc.inc: $(D)/full-toc.inc | doc/
140140
@$(call E, cp: $@)
141-
$(Q)cp -a $< $@ 2> /dev/null
141+
$(Q)cp -PRp $< $@ 2> /dev/null
142142

143143
HTML_DEPS += doc/footer.inc
144144
doc/footer.inc: $(D)/footer.inc | doc/
145145
@$(call E, cp: $@)
146-
$(Q)cp -a $< $@ 2> /dev/null
146+
$(Q)cp -PRp $< $@ 2> /dev/null
147147

148148
# The (english) documentation for each doc item.
149149

branches/beta/mk/main.mk

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CFG_RELEASE_NUM=1.0.0
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
2020
# versions (section 9)
21-
CFG_PRERELEASE_VERSION=.1
21+
CFG_PRERELEASE_VERSION=.2
2222

2323
CFG_FILENAME_EXTRA=4e7c5e5c
2424

@@ -30,8 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
34-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
3535
CFG_DISABLE_UNSTABLE_FEATURES=1
3636
endif
3737
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
@@ -61,13 +61,16 @@ SPACE :=
6161
SPACE +=
6262
ifneq ($(CFG_GIT),)
6363
ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
64-
CFG_VER_DATE = $(shell git --git-dir='$(CFG_GIT_DIR)' log -1 --pretty=format:'%ci')
64+
CFG_VER_DATE = $(shell git --git-dir='$(CFG_GIT_DIR)' log -1 --date=short --pretty=format:'%cd')
6565
CFG_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse HEAD)
6666
CFG_SHORT_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse --short=9 HEAD)
6767
CFG_VERSION += ($(CFG_SHORT_VER_HASH) $(CFG_VER_DATE))
6868
endif
6969
endif
7070

71+
CFG_BUILD_DATE = $(shell date +%F)
72+
CFG_VERSION += (built $(CFG_BUILD_DATE))
73+
7174
# Windows exe's need numeric versions - don't use anything but
7275
# numbers and dots here
7376
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
@@ -317,6 +320,7 @@ endif
317320
ifdef CFG_VER_HASH
318321
export CFG_VER_HASH
319322
endif
323+
export CFG_BUILD_DATE
320324
export CFG_VERSION
321325
export CFG_VERSION_WIN
322326
export CFG_RELEASE

branches/beta/mk/tests.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ ifdef CHECK_IGNORED
3838
TESTARGS += --ignored
3939
endif
4040

41-
4241
# Arguments to the cfail/rfail/rpass/bench tests
4342
ifdef CFG_VALGRIND
4443
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
4544
endif
4645

47-
ifdef PLEASE_BENCH
48-
TESTARGS += --bench
49-
endif
50-
5146
# Arguments to the perf tests
5247
ifdef CFG_PERF_TOOL
5348
CTEST_PERF_RUNTOOL = --runtool "$(CFG_PERF_TOOL)"
5449
endif
5550

5651
CTEST_TESTARGS := $(TESTARGS)
5752

53+
# --bench is only relevant for crate tests, not for the compile tests
54+
ifdef PLEASE_BENCH
55+
TESTARGS += --bench
56+
endif
57+
5858
ifdef VERBOSE
5959
CTEST_TESTARGS += --verbose
6060
endif

branches/beta/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![feature(io)]
1717
#![feature(path)]
1818
#![feature(rustc_private)]
19-
#![feature(slicing_syntax, unboxed_closures)]
19+
#![feature(unboxed_closures)]
2020
#![feature(std_misc)]
2121
#![feature(test)]
2222
#![feature(unicode)]

branches/beta/src/doc/complement-bugreport.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ $ RUST_BACKTRACE=1 rustc ...
5656

5757
# I submitted a bug, but nobody has commented on it!
5858

59-
This is sad, but does happen sometimes, since we're short-staffed. If you
60-
submit a bug and you haven't received a comment on it within 3 business days,
61-
it's entirely reasonable to either ask on the #rust IRC channel,
62-
or post on the [rust-dev mailing list](https://mail.mozilla.org/listinfo/rust-dev)
63-
to ask what the status of the bug is.
59+
This is sad, but does happen sometimes, since we're short-staffed. If you submit a
60+
bug and you haven't received a comment on it within 3 business days, it's entirely
61+
reasonable to ask about the status of the bug in #rust on irc.mozilla.org.

branches/beta/src/doc/grammar.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# **This is a work in progress**
2-
3-
% The Rust Grammar
1+
% Grammar
42

53
# Introduction
64

@@ -570,7 +568,7 @@ binop_expr : expr binop expr ;
570568
The precedence of Rust binary operators is ordered as follows, going from
571569
strong to weak:
572570

573-
```
571+
```text
574572
* / %
575573
as
576574
+ -

branches/beta/src/doc/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ segfault when we allocate more memory?
224224

225225
The answer is that in the C++ version, `x` is a *reference* to the memory
226226
location where the first element of the array is stored. But in Ruby, `x` is a
227-
standalone value, not connected to the underyling array at all. Let's dig into
227+
standalone value, not connected to the underlying array at all. Let's dig into
228228
the details for a moment. Your program has access to memory, provided to it by
229229
the operating system. Each location in memory has an address. So when we make
230230
our vector, `v`, it's stored in a memory location somewhere:

0 commit comments

Comments
 (0)