Skip to content

Commit 538176a

Browse files
committed
---
yaml --- r: 126759 b: refs/heads/snap-stage3 c: 3419e20 h: refs/heads/master i: 126757: e596daa 126755: 94bbae3 126751: 2a0270a v: v3
1 parent c61151a commit 538176a

File tree

350 files changed

+2953
-8988
lines changed

Some content is hidden

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

350 files changed

+2953
-8988
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: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 2224edcfe16ff798fcfa6f21a339822cb8b0f7ba
4+
refs/heads/snap-stage3: 3419e20f3b0800d40a4e33d47da7051d142e62ce
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/Makefile.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ ifneq ($(strip $(findstring check,$(MAKECMDGOALS)) \
216216
$(findstring tidy,$(MAKECMDGOALS))),)
217217
CFG_INFO := $(info cfg: including test rules)
218218
include $(CFG_SRC_DIR)mk/tests.mk
219-
include $(CFG_SRC_DIR)mk/grammar.mk
220219
endif
221220

222221
# Performance and benchmarking

branches/snap-stage3/configure

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,6 @@ opt rpath 0 "build rpaths into rustc itself"
422422
opt nightly 0 "build nightly packages"
423423
opt verify-install 1 "verify installed binaries work"
424424
opt jemalloc 1 "build liballoc with jemalloc"
425-
# This is used by the automation to produce single-target nightlies
426-
opt dist-host-only 0 "only install bins for the host architecture"
427425
valopt prefix "/usr/local" "set installation prefix"
428426
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
429427
valopt llvm-root "" "set LLVM root"
@@ -495,9 +493,6 @@ probe CFG_VALGRIND valgrind
495493
probe CFG_PERF perf
496494
probe CFG_ISCC iscc
497495
probe CFG_LLNEXTGEN LLnextgen
498-
probe CFG_JAVAC javac
499-
probe CFG_ANTLR4 antlr4
500-
probe CFG_GRUN grun
501496
probe CFG_PANDOC pandoc
502497
probe CFG_PDFLATEX pdflatex
503498
probe CFG_XELATEX xelatex

branches/snap-stage3/mk/dist.mk

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ define DEF_OSX_PKG
156156
$$(eval $$(call DEF_PREPARE,osx-$(1)))
157157

158158
dist-prepare-osx-$(1): PREPARE_HOST=$(1)
159-
dist-prepare-osx-$(1): PREPARE_TARGETS=$(2)
159+
dist-prepare-osx-$(1): PREPARE_TARGETS=$(1)
160160
dist-prepare-osx-$(1): PREPARE_DEST_DIR=tmp/dist/pkgroot-$(1)
161161
dist-prepare-osx-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
162162
dist-prepare-osx-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
@@ -187,11 +187,7 @@ tmp/dist/pkgres-$(1)/%: $(S)src/etc/pkg/%
187187

188188
endef
189189

190-
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
191-
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(host))))
192-
else
193-
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(TARGET))))
194-
endif
190+
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host))))
195191

196192
dist-osx: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).pkg)
197193

@@ -209,19 +205,17 @@ distcheck-osx: dist-osx
209205
# Unix binary installer tarballs
210206
######################################################################
211207

212-
define DEF_INSTALLER
213-
214-
$$(eval $$(call DEF_PREPARE,dir-$(1)))
215-
216-
dist-install-dir-$(1): PREPARE_HOST=$(1)
217-
dist-install-dir-$(1): PREPARE_TARGETS=$(2)
218-
dist-install-dir-$(1): PREPARE_DEST_DIR=tmp/dist/$$(PKG_NAME)-$(1)
219-
dist-install-dir-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
220-
dist-install-dir-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
221-
dist-install-dir-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
222-
dist-install-dir-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
223-
dist-install-dir-$(1): PREPARE_CLEAN=true
224-
dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
208+
define DEF_PREPARE_DIST_DIR
209+
210+
dist-install-dir-$(1)$(3): PREPARE_HOST=$(1)
211+
dist-install-dir-$(1)$(3): PREPARE_TARGETS=$(2)
212+
dist-install-dir-$(1)$(3): PREPARE_DEST_DIR=tmp/dist/$$(PKG_NAME)-$(1)
213+
dist-install-dir-$(1)$(3): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
214+
dist-install-dir-$(1)$(3): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
215+
dist-install-dir-$(1)$(3): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
216+
dist-install-dir-$(1)$(3): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
217+
dist-install-dir-$(1)$(3): PREPARE_CLEAN=true
218+
dist-install-dir-$(1)$(3): prepare-base-dir-$(1) docs compiler-docs
225219
$$(Q)(cd $$(PREPARE_DEST_DIR)/ && find . -type f | sed 's/^\.\///') \
226220
> tmp/dist/manifest-$(1).in
227221
$$(Q)mv tmp/dist/manifest-$(1).in $$(PREPARE_DEST_DIR)/$$(CFG_LIBDIR_RELATIVE)/rustlib/manifest.in
@@ -233,19 +227,24 @@ dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
233227
$$(Q)cp -r doc $$(PREPARE_DEST_DIR)
234228
$$(Q)$$(PREPARE_BIN_CMD) $$(S)src/etc/install.sh $$(PREPARE_DEST_DIR)
235229

230+
endef
231+
232+
define DEF_INSTALLER
233+
234+
$$(eval $$(call DEF_PREPARE,dir-$(1)))
235+
236+
$$(eval $$(call DEF_PREPARE_DIST_DIR,$(1),$(1),))
237+
238+
$$(eval $$(call DEF_PREPARE_DIST_DIR,$(1),$(CFG_TARGET),-with-target-libs))
239+
236240
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
237241
@$(call E, build: $$@)
238242
$$(Q)tar -czf dist/$$(PKG_NAME)-$(1).tar.gz -C tmp/dist $$(PKG_NAME)-$(1)
239243

240244
endef
241245

242-
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
243-
$(foreach host,$(CFG_HOST),\
244-
$(eval $(call DEF_INSTALLER,$(host),$(host))))
245-
else
246246
$(foreach host,$(CFG_HOST),\
247-
$(eval $(call DEF_INSTALLER,$(host),$(CFG_TARGET))))
248-
endif
247+
$(eval $(call DEF_INSTALLER,$(host))))
249248

250249
dist-install-dirs: $(foreach host,$(CFG_HOST),dist-install-dir-$(host))
251250

branches/snap-stage3/mk/docs.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
3030
guide-tasks guide-container guide-pointers guide-testing \
3131
guide-runtime complement-bugreport \
3232
complement-lang-faq complement-design-faq complement-project-faq rust \
33-
rustdoc guide-unsafe guide-strings
33+
rustdoc guide-unsafe
3434

3535
PDF_DOCS := tutorial rust
3636

@@ -112,8 +112,8 @@ HTML_DEPS += doc/version_info.html
112112
doc/version_info.html: $(D)/version_info.html.template $(MKFILE_DEPS) \
113113
$(wildcard $(D)/*.*) | doc/
114114
@$(call E, version-info: $@)
115-
$(Q)sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(\
116-
CFG_SHORT_VER_HASH)/;\
115+
$(Q)sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(shell echo \
116+
$(CFG_VER_HASH) | head -c 8)/;\
117117
s/STAMP/$(CFG_VER_HASH)/;" $< >$@
118118

119119
GENERATED += doc/version.tex doc/version_info.html

branches/snap-stage3/mk/grammar.mk

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

branches/snap-stage3/mk/install.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ else
1414
MAYBE_DISABLE_VERIFY=
1515
endif
1616

17-
install: dist-install-dir-$(CFG_BUILD) | tmp/empty_dir
17+
install: dist-install-dir-$(CFG_BUILD)-with-target-libs | tmp/empty_dir
1818
$(Q)cd tmp/empty_dir && sh ../../tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)" "$(MAYBE_DISABLE_VERIFY)"
1919
# Remove tmp files while we can because they may have been created under sudo
2020
$(Q)rm -R tmp/dist
2121

22-
uninstall: dist-install-dir-$(CFG_BUILD) | tmp/empty_dir
22+
uninstall: dist-install-dir-$(CFG_BUILD)-with-target-libs | tmp/empty_dir
2323
$(Q)cd tmp/empty_dir && sh ../../tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)"
2424
# Remove tmp files while we can because they may have been created under sudo
2525
$(Q)rm -R tmp/dist

branches/snap-stage3/mk/main.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT))),)
4646
ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
4747
CFG_VER_DATE = $(shell git --git-dir='$(CFG_GIT_DIR)' log -1 --pretty=format:'%ci')
4848
CFG_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse HEAD)
49-
CFG_SHORT_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse --short=9 HEAD)
50-
CFG_VERSION += ($(CFG_SHORT_VER_HASH) $(CFG_VER_DATE))
49+
CFG_VERSION += ($(CFG_VER_HASH) $(CFG_VER_DATE))
5150
endif
5251
endif
5352

branches/snap-stage3/mk/tests.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
192192
# NOTE: Remove after reprogramming windows bots
193193
check-fast: check-lite
194194

195-
check-syntax: check-lexer
196-
197195
.PHONY: cleantmptestlogs cleantestlibs
198196

199197
cleantmptestlogs:

branches/snap-stage3/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ fn make_run_args(config: &Config, props: &TestProps, testfile: &Path) ->
11781178
// Add the arguments in the run_flags directive
11791179
args.push_all_move(split_maybe_args(&props.run_flags));
11801180

1181-
let prog = args.remove(0).unwrap();
1181+
let prog = args.shift().unwrap();
11821182
return ProcArgs {
11831183
prog: prog,
11841184
args: args,

branches/snap-stage3/src/doc/guide-strings.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
% The Strings Guide
22

3+
# Strings
4+
35
Strings are an important concept to master in any programming language. If you
46
come from a managed language background, you may be surprised at the complexity
57
of string handling in a systems programming language. Efficient access and
@@ -12,7 +14,7 @@ Additionally, strings are not null-terminated and can contain null bytes.
1214

1315
Rust has two main types of strings: `&str` and `String`.
1416

15-
# &str
17+
## &str
1618

1719
The first kind is a `&str`. This is pronounced a 'string slice.' String literals
1820
are of the type `&str`:
@@ -36,7 +38,7 @@ Like vector slices, string slices are simply a pointer plus a length. This
3638
means that they're a 'view' into an already-allocated string, such as a
3739
`&'static str` or a `String`.
3840

39-
# String
41+
## String
4042

4143
A `String` is a heap-allocated string. This string is growable, and is also
4244
guaranteed to be UTF-8.
@@ -71,9 +73,9 @@ let x: &[u8] = &[b'a', b'b'];
7173
let stack_str: &str = str::from_utf8(x).unwrap();
7274
```
7375

74-
# Best Practices
76+
## Best Practices
7577

76-
## `String` vs. `&str`
78+
### `String` vs. `&str`
7779

7880
In general, you should prefer `String` when you need ownership, and `&str` when
7981
you just need to borrow a string. This is very similar to using `Vec<T>` vs. `&[T]`,
@@ -96,7 +98,7 @@ need, and it can make your lifetimes more complex. Furthermore, you can pass
9698
either kind of string into `foo` by using `.as_slice()` on any `String` you
9799
need to pass in, so the `&str` version is more flexible.
98100

99-
## Comparisons
101+
### Comparisons
100102

101103
To compare a String to a constant string, prefer `as_slice()`...
102104

@@ -121,7 +123,7 @@ fn compare(string: String) {
121123
Converting a `String` to a `&str` is cheap, but converting the `&str` to a
122124
`String` involves an allocation.
123125

124-
# Other Documentation
126+
## Other Documentation
125127

126128
* [the `&str` API documentation](/std/str/index.html)
127129
* [the `String` API documentation](std/string/index.html)

0 commit comments

Comments
 (0)