Skip to content

Commit 6671ca1

Browse files
committed
---
yaml --- r: 155167 b: refs/heads/try2 c: 6113520 h: refs/heads/master i: 155165: 7abfe6d 155163: c7d2ce7 155159: 00f0c85 155151: f937f18 155135: 3f30dba v: v3
1 parent 215b258 commit 6671ca1

File tree

497 files changed

+15485
-15986
lines changed

Some content is hidden

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

497 files changed

+15485
-15986
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: fc6eb9a911a12159d2a1156d6f138cebef0bf945
8+
refs/heads/try2: 61135205e190e3ca2c5896d05610dfb304f7a12f
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ documentation.
66
## Quick Start
77

88
1. Download a [binary installer][installer] for your platform.
9-
2. Read the [guide].
9+
2. Read the [tutorial].
1010
3. Enjoy!
1111

1212
> ***Note:*** Windows users can read the detailed
1313
> [getting started][wiki-start] notes on the wiki.
1414
1515
[installer]: http://www.rust-lang.org/install.html
16-
[guide]: http://doc.rust-lang.org/guide.html
16+
[tutorial]: http://doc.rust-lang.org/tutorial.html
1717
[wiki-start]: https://github.com/rust-lang/rust/wiki/Note-getting-started-developing-Rust
1818
[win-wiki]: https://github.com/rust-lang/rust/wiki/Using-Rust-on-Windows
1919

@@ -54,7 +54,7 @@ documentation.
5454
When complete, `make install` will place several programs into
5555
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
5656
API-documentation tool.
57-
3. Read the [guide].
57+
3. Read the [tutorial].
5858
4. Enjoy!
5959

6060
### Building on Windows
@@ -76,7 +76,7 @@ To easily build on windows we can use [MSYS2](http://sourceforge.net/projects/ms
7676

7777
[repo]: https://github.com/rust-lang/rust
7878
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
79-
[guide]: http://doc.rust-lang.org/guide.html
79+
[tutorial]: http://doc.rust-lang.org/tutorial.html
8080

8181
## Notes
8282

@@ -101,18 +101,6 @@ There is a lot more documentation in the [wiki].
101101

102102
[wiki]: https://github.com/rust-lang/rust/wiki
103103

104-
## Getting help and getting involved
105-
106-
The Rust community congregates in a few places:
107-
108-
* [StackOverflow] - Get help here.
109-
* [/r/rust] - General discussion.
110-
* [discuss.rust-lang.org] - For development of the Rust language itself.
111-
112-
[StackOverflow]: http://stackoverflow.com/questions/tagged/rust
113-
[/r/rust]: http://reddit.com/r/rust
114-
[discuss.rust-lang.org]: http://discuss.rust-lang.org/
115-
116104
## License
117105

118106
Rust is primarily distributed under the terms of both the MIT license

branches/try2/configure

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,6 @@ fi
475475
step_msg "validating $CFG_SELF args"
476476
validate_opt
477477

478-
# Temporarily support the old windows triples while the bots make the transition
479-
# XXX Remove me
480-
CFG_BUILD=`echo "${CFG_BUILD}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
481-
CFG_HOST=`echo "${CFG_HOST}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
482-
CFG_TARGET=`echo "${CFG_TARGET}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
483-
484478
step_msg "looking for build programs"
485479

486480
probe_need CFG_PERL perl

branches/try2/mk/crates.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5959
TOOLS := compiletest rustdoc rustc
6060

6161
DEPS_core :=
62-
DEPS_rlibc := core
62+
DEPS_rlibc :=
6363
DEPS_unicode := core
6464
DEPS_alloc := core libc native:jemalloc
6565
DEPS_debug := std
@@ -70,7 +70,7 @@ DEPS_graphviz := std
7070
DEPS_green := std native:context_switch
7171
DEPS_rustuv := std native:uv native:uv_support
7272
DEPS_native := std
73-
DEPS_syntax := std term serialize log fmt_macros debug arena
73+
DEPS_syntax := std term serialize log fmt_macros debug
7474
DEPS_rustc := syntax flate arena serialize getopts rbml \
7575
time log graphviz debug rustc_llvm rustc_back
7676
DEPS_rustc_llvm := native:rustllvm libc std

branches/try2/mk/dist.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ distcheck-tar-src: dist-tar-src
112112

113113
ifdef CFG_ISCC
114114

115-
PKG_EXE = dist/$(PKG_NAME)-$(CFG_BUILD).exe
115+
PKG_EXE = dist/$(PKG_NAME)-install.exe
116116

117117
%.iss: $(S)src/etc/pkg/%.iss
118118
cp $< $@
@@ -123,7 +123,7 @@ PKG_EXE = dist/$(PKG_NAME)-$(CFG_BUILD).exe
123123
$(PKG_EXE): rust.iss modpath.iss upgrade.iss LICENSE.txt rust-logo.ico \
124124
$(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
125125
dist-prepare-win
126-
$(CFG_PYTHON) $(S)src/etc/make-win-dist.py tmp/dist/win $(CFG_BUILD)
126+
$(CFG_PYTHON) $(S)src/etc/copy-runtime-deps.py tmp/dist/win/bin
127127
@$(call E, ISCC: $@)
128128
$(Q)"$(CFG_ISCC)" $<
129129

branches/try2/mk/docs.mk

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# except according to those terms.
1010

1111
######################################################################
12-
# The various pieces of standalone documentation: guides, manual, etc
12+
# The various pieces of standalone documentation: guides, tutorial,
13+
# manual etc.
1314
#
1415
# The DOCS variable is their names (with no file extension).
1516
#
@@ -31,7 +32,7 @@ DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
3132
complement-lang-faq complement-design-faq complement-project-faq rust \
3233
rustdoc guide-unsafe guide-strings
3334

34-
PDF_DOCS := guide rust
35+
PDF_DOCS := tutorial rust
3536

3637
RUSTDOC_DEPS_rust := doc/full-toc.inc
3738
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc
@@ -75,22 +76,21 @@ endif
7576

7677
# Check for the various external utilities for the EPUB/PDF docs:
7778

78-
ifeq ($(CFG_LUALATEX),)
79-
$(info cfg: no lualatex found, deferring to xelatex)
79+
ifeq ($(CFG_PDFLATEX),)
80+
$(info cfg: no pdflatex found, deferring to xelatex)
8081
ifeq ($(CFG_XELATEX),)
81-
$(info cfg: no xelatex found, deferring to pdflatex)
82-
ifeq ($(CFG_PDFLATEX),)
83-
$(info cfg: no pdflatex found, disabling LaTeX docs)
82+
$(info cfg: no xelatex found, deferring to lualatex)
83+
ifeq ($(CFG_LUALATEX),)
84+
$(info cfg: no lualatex found, disabling LaTeX docs)
8485
NO_PDF_DOCS = 1
8586
else
86-
CFG_LATEX := $(CFG_PDFLATEX)
87+
CFG_LATEX := $(CFG_LUALATEX)
8788
endif
8889
else
8990
CFG_LATEX := $(CFG_XELATEX)
90-
XELATEX = 1
9191
endif
9292
else
93-
CFG_LATEX := $(CFG_LUALATEX)
93+
CFG_LATEX := $(CFG_PDFLATEX)
9494
endif
9595

9696

@@ -187,25 +187,12 @@ doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.tex | doc/
187187
ifneq ($(NO_PDF_DOCS),1)
188188
ifeq ($$(SHOULD_BUILD_PDF_DOC_$(1)),1)
189189
DOC_TARGETS += doc/$(1).pdf
190-
ifneq ($(XELATEX),1)
191190
doc/$(1).pdf: doc/$(1).tex
192191
@$$(call E, latex compiler: $$@)
193192
$$(Q)$$(CFG_LATEX) \
194193
-interaction=batchmode \
195194
-output-directory=doc \
196195
$$<
197-
else
198-
# The version of xelatex on the snap bots seemingly ingores -output-directory
199-
# So we'll output to . and move to the doc directory manually.
200-
# This will leave some intermediate files in the build directory.
201-
doc/$(1).pdf: doc/$(1).tex
202-
@$$(call E, latex compiler: $$@)
203-
$$(Q)$$(CFG_LATEX) \
204-
-interaction=batchmode \
205-
-output-directory=. \
206-
$$<
207-
$$(Q)mv ./$(1).pdf $$@
208-
endif # XELATEX
209196
endif # SHOULD_BUILD_PDF_DOCS_$(1)
210197
endif # NO_PDF_DOCS
211198

@@ -225,7 +212,7 @@ $(foreach docname,$(DOCS),$(eval $(call DEF_DOC,$(docname))))
225212
#
226213
# As such, I've attempted to get it working as much as possible (and
227214
# switching from pandoc to rustdoc), but preserving the old behaviour
228-
# (e.g. only running on the guide)
215+
# (e.g. only running on the tutorial)
229216
.PHONY: l10n-mds
230217
l10n-mds: $(D)/po4a.conf \
231218
$(foreach lang,$(L10N_LANG),$(D)/po/$(lang)/*.md.po)
@@ -243,7 +230,7 @@ doc/l10n/$(1)/$(2).html: l10n-mds $$(HTML_DEPS) $$(RUSTDOC_DEPS_$(2))
243230
$$(RUSTDOC) $$(RUSTDOC_HTML_OPTS) $$(RUSTDOC_FLAGS_$(1)) doc/l10n/$(1)/$(2).md
244231
endef
245232

246-
$(foreach lang,$(L10N_LANGS),$(eval $(call DEF_L10N_DOC,$(lang),guide)))
233+
$(foreach lang,$(L10N_LANGS),$(eval $(call DEF_L10N_DOC,$(lang),tutorial)))
247234

248235

249236
######################################################################

branches/try2/mk/platform.mk

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,36 @@ CFG_RUN_mips-unknown-linux-gnu=
433433
CFG_RUN_TARG_mips-unknown-linux-gnu=
434434
RUSTC_FLAGS_mips-unknown-linux-gnu := -C target-cpu=mips32r2 -C target-feature="+mips32r2,+o32" -C soft-float
435435

436+
# i686-pc-mingw32 configuration
437+
CC_i686-pc-mingw32=$(CC)
438+
CXX_i686-pc-mingw32=$(CXX)
439+
CPP_i686-pc-mingw32=$(CPP)
440+
AR_i686-pc-mingw32=$(AR)
441+
CFG_LIB_NAME_i686-pc-mingw32=$(1).dll
442+
CFG_STATIC_LIB_NAME_i686-pc-mingw32=$(1).lib
443+
CFG_LIB_GLOB_i686-pc-mingw32=$(1)-*.dll
444+
CFG_LIB_DSYM_GLOB_i686-pc-mingw32=$(1)-*.dylib.dSYM
445+
CFG_CFLAGS_mips-i686-pc-mingw32 := -m32 -march=i686 -D_WIN32_WINNT=0x0600 $(CFLAGS)
446+
CFG_GCCISH_CFLAGS_i686-pc-mingw32 := -Wall -Werror -g -m32 -march=i686 -D_WIN32_WINNT=0x0600 -I$(CFG_SRC_DIR)src/etc/mingw-fix-include $(CFLAGS)
447+
CFG_GCCISH_CXXFLAGS_i686-pc-mingw32 := -fno-rtti $(CXXFLAGS)
448+
CFG_GCCISH_LINK_FLAGS_i686-pc-mingw32 := -shared -fPIC -g -m32
449+
CFG_GCCISH_DEF_FLAG_i686-pc-mingw32 :=
450+
CFG_GCCISH_PRE_LIB_FLAGS_i686-pc-mingw32 :=
451+
CFG_GCCISH_POST_LIB_FLAGS_i686-pc-mingw32 :=
452+
CFG_DEF_SUFFIX_i686-pc-mingw32 := .mingw32.def
453+
CFG_LLC_FLAGS_i686-pc-mingw32 :=
454+
CFG_INSTALL_NAME_i686-pc-mingw32 =
455+
CFG_LIBUV_LINK_FLAGS_i686-pc-mingw32 := -lws2_32 -lpsapi -liphlpapi
456+
CFG_LLVM_BUILD_ENV_i686-pc-mingw32 := CPATH=$(CFG_SRC_DIR)src/etc/mingw-fix-include
457+
CFG_EXE_SUFFIX_i686-pc-mingw32 := .exe
458+
CFG_WINDOWSY_i686-pc-mingw32 := 1
459+
CFG_UNIXY_i686-pc-mingw32 :=
460+
CFG_PATH_MUNGE_i686-pc-mingw32 :=
461+
CFG_LDPATH_i686-pc-mingw32 :=$(CFG_LDPATH_i686-pc-mingw32):$(PATH)
462+
CFG_RUN_i686-pc-mingw32=PATH="$(CFG_LDPATH_i686-pc-mingw32):$(1)" $(2)
463+
CFG_RUN_TARG_i686-pc-mingw32=$(call CFG_RUN_i686-pc-mingw32,$(HLIB$(1)_H_$(CFG_BUILD)),$(2))
464+
RUSTC_FLAGS_i686-pc-mingw32=-C link-args="-Wl,--large-address-aware"
465+
436466
# i586-mingw32msvc configuration
437467
CC_i586-mingw32msvc=$(CFG_MINGW32_CROSS_PATH)/bin/i586-mingw32msvc-gcc
438468
CXX_i586-mingw32msvc=$(CFG_MINGW32_CROSS_PATH)/bin/i586-mingw32msvc-g++
@@ -473,7 +503,7 @@ CFG_LIB_NAME_i686-w64-mingw32=$(1).dll
473503
CFG_STATIC_LIB_NAME_i686-w64-mingw32=$(1).lib
474504
CFG_LIB_GLOB_i686-w64-mingw32=$(1)-*.dll
475505
CFG_LIB_DSYM_GLOB_i686-w64-mingw32=$(1)-*.dylib.dSYM
476-
CFG_CFLAGS_i686-w64-mingw32 := -march=i686 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
506+
CFG_CFLAGS_i586-w64-mingw32 := -march=i586 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
477507
CFG_GCCISH_CFLAGS_i686-w64-mingw32 := -Wall -Werror -g -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
478508
CFG_GCCISH_CXXFLAGS_i686-w64-mingw32 := -fno-rtti $(CXXFLAGS)
479509
CFG_GCCISH_LINK_FLAGS_i686-w64-mingw32 := -shared -g -m32
@@ -491,8 +521,6 @@ CFG_PATH_MUNGE_i686-w64-mingw32 :=
491521
CFG_LDPATH_i686-w64-mingw32 :=$(CFG_LDPATH_i686-w64-mingw32):$(PATH)
492522
CFG_RUN_i686-w64-mingw32=PATH="$(CFG_LDPATH_i686-w64-mingw32):$(1)" $(2)
493523
CFG_RUN_TARG_i686-w64-mingw32=$(call CFG_RUN_i686-w64-mingw32,$(HLIB$(1)_H_$(CFG_BUILD)),$(2))
494-
# Stop rustc from OOMing when building itself (I think)
495-
RUSTC_FLAGS_i686-w64-mingw32=-C link-args="-Wl,--large-address-aware"
496524
RUSTC_CROSS_FLAGS_i686-w64-mingw32 :=
497525

498526
# x86_64-w64-mingw32 configuration

branches/try2/mk/reconfig.mk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) \
1515

1616
ifndef CFG_DISABLE_MANAGE_SUBMODULES
1717
# This is a pretty expensive operation but I don't see any way to avoid it
18-
# NB: This only looks for '+' status (wrong commit checked out), not '-' status
19-
# (nothing checked out at all). `./configure --{llvm,jemalloc,libuv}-root`
20-
# will explicitly deinitialize the corresponding submodules, and we don't
21-
# want to force constant rebuilds in that case.
22-
NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^+')
18+
NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^\(+\|-\)')
2319
else
2420
NEED_GIT_RECONFIG=0
2521
endif

branches/try2/mk/rt.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,6 @@ JEMALLOC_DEPS := $(wildcard \
288288
$(S)src/jemalloc/*/*/*/*)
289289
endif
290290

291-
# See #17183 for details, this file is touched during the build process so we
292-
# don't want to consider it as a dependency.
293-
JEMALLOC_DEPS := $(filter-out $(S)src/jemalloc/VERSION,$(JEMALLOC_DEPS))
294-
295291
JEMALLOC_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc)
296292
ifeq ($$(CFG_WINDOWSY_$(1)),1)
297293
JEMALLOC_REAL_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc_s)

branches/try2/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ tidy:
283283
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
284284
$(Q)echo $(ALL_HS) \
285285
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
286-
$(Q)find $(S)src -type f -perm a+x \
286+
$(Q)find $(S)src -type f -perm +111 \
287287
-not -name '*.rs' -and -not -name '*.py' \
288288
-and -not -name '*.sh' \
289289
| grep '^$(S)src/jemalloc' -v \

branches/try2/src/compiletest/compiletest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub fn run_tests(config: &Config) {
259259
// parallel (especially when we have lots and lots of child processes).
260260
// For context, see #8904
261261
io::test::raise_fd_limit();
262-
let res = test::run_tests_console(&opts, tests.into_iter().collect());
262+
let res = test::run_tests_console(&opts, tests.move_iter().collect());
263263
match res {
264264
Ok(true) => {}
265265
Ok(false) => fail!("Some tests failed"),
@@ -400,4 +400,4 @@ fn extract_gdb_version(full_version_line: Option<String>) -> Option<String> {
400400
},
401401
_ => None
402402
}
403-
}
403+
}

branches/try2/src/compiletest/procsrv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn run(lib_path: &str,
4040
let mut cmd = Command::new(prog);
4141
cmd.args(args);
4242
add_target_env(&mut cmd, lib_path, aux_path);
43-
for (key, val) in env.into_iter() {
43+
for (key, val) in env.move_iter() {
4444
cmd.env(key, val);
4545
}
4646

@@ -72,7 +72,7 @@ pub fn run_background(lib_path: &str,
7272
let mut cmd = Command::new(prog);
7373
cmd.args(args);
7474
add_target_env(&mut cmd, lib_path, aux_path);
75-
for (key, val) in env.into_iter() {
75+
for (key, val) in env.move_iter() {
7676
cmd.env(key, val);
7777
}
7878

branches/try2/src/compiletest/runtest.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use util::logv;
2020
use util;
2121

2222
use std::io::File;
23-
use std::io::fs::PathExtensions;
2423
use std::io::fs;
2524
use std::io::net::tcp;
2625
use std::io::process::ProcessExit;
@@ -483,12 +482,12 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
483482
// GDB's script auto loading safe path ...
484483
script_str.push_str(
485484
format!("add-auto-load-safe-path {}\n",
486-
rust_pp_module_abs_path.replace("\\", "\\\\").as_slice())
485+
rust_pp_module_abs_path.as_slice())
487486
.as_slice());
488487
// ... and also the test directory
489488
script_str.push_str(
490489
format!("add-auto-load-safe-path {}\n",
491-
config.build_base.as_str().unwrap().replace("\\", "\\\\"))
490+
config.build_base.as_str().unwrap())
492491
.as_slice());
493492
}
494493
}
@@ -500,7 +499,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
500499

501500
// Load the target executable
502501
script_str.push_str(format!("file {}\n",
503-
exe_file.as_str().unwrap().replace("\\", "\\\\"))
502+
exe_file.as_str().unwrap())
504503
.as_slice());
505504

506505
script_str.push_str(cmds.as_slice());
@@ -768,7 +767,7 @@ fn cleanup_debug_info_options(options: &Option<String>) -> Option<String> {
768767
"--debuginfo".to_string()
769768
];
770769
let new_options =
771-
split_maybe_args(options).into_iter()
770+
split_maybe_args(options).move_iter()
772771
.filter(|x| !options_to_remove.contains(x))
773772
.collect::<Vec<String>>()
774773
.connect(" ");
@@ -1461,7 +1460,7 @@ fn _arm_exec_compiled_test(config: &Config,
14611460

14621461
// run test via adb_run_wrapper
14631462
runargs.push("shell".to_string());
1464-
for (key, val) in env.into_iter() {
1463+
for (key, val) in env.move_iter() {
14651464
runargs.push(format!("{}={}", key, val));
14661465
}
14671466
runargs.push(format!("{}/adb_run_wrapper.sh", config.adb_test_dir));

0 commit comments

Comments
 (0)