Skip to content

Commit 5bfee6c

Browse files
committed
---
yaml --- r: 187079 b: refs/heads/try c: be0dc49 h: refs/heads/master i: 187077: 6889311 187075: a649063 187071: cda4daa v: v3
1 parent dc88464 commit 5bfee6c

File tree

784 files changed

+4907
-13303
lines changed

Some content is hidden

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

784 files changed

+4907
-13303
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: 9fe2d212a0f776dda3986291921a9b0ebf1d7a48
5+
refs/heads/try: be0dc49675ff38b4bc2e73f68bff298168bc6875
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ links to the major sections:
1414
If you have questions, please make a post on [internals.rust-lang.org][internals] or
1515
hop on [#rust-internals][pound-rust-internals].
1616

17-
As a reminder, all contributors are expected to follow our [Code of Conduct][coc].
17+
As a reminder, all contributors are expected to follow our [Code of Conduct](coc).
1818

1919
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
2020
[internals]: http://internals.rust-lang.org

branches/try/README.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# The Rust Programming Language
22

33
This is a compiler for Rust, including standard libraries, tools and
4-
documentation. Rust is a systems programming language that is fast,
5-
memory safe and multithreaded, but does not employ a garbage collector
6-
or otherwise impose significant runtime overhead.
4+
documentation.
75

86
## Quick Start
97

10-
Read ["Installing Rust"] from [The Book].
8+
Read ["Installing Rust"][install] from [The Book][trpl].
119

12-
["Installing Rust"]: http://doc.rust-lang.org/book/installing-rust.html
13-
[The Book]: http://doc.rust-lang.org/book/index.html
10+
[install]: http://doc.rust-lang.org/book/installing-rust.html
11+
[trpl]: http://doc.rust-lang.org/book/index.html
1412

1513
## Building from Source
1614

@@ -21,14 +19,22 @@ Read ["Installing Rust"] from [The Book].
2119
* `curl`
2220
* `git`
2321

24-
2. Clone the [source] with `git`:
22+
2. Download and build Rust:
23+
24+
You can either download a [tarball] or build directly from the [repo].
25+
26+
To build from the [tarball] do:
27+
28+
$ curl -O https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
29+
$ tar -xzf rustc-nightly-src.tar.gz
30+
$ cd rustc-nightly
31+
32+
Or to build from the [repo] do:
2533

2634
$ git clone https://github.com/rust-lang/rust.git
2735
$ cd rust
2836

29-
[source]: https://github.com/rust-lang/rust
30-
31-
3. Build and install:
37+
Now that you have Rust's source code, you can configure and build it:
3238

3339
$ ./configure
3440
$ make && make install
@@ -40,10 +46,7 @@ Read ["Installing Rust"] from [The Book].
4046
4147
When complete, `make install` will place several programs into
4248
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
43-
API-documentation tool. This install does not include [Cargo],
44-
Rust's package manager, which you may also want to build.
45-
46-
[Cargo]: https://github.com/rust-lang/cargo
49+
API-documentation tool.
4750

4851
### Building on Windows
4952

@@ -69,6 +72,9 @@ $ pacman -S base-devel
6972
$ ./configure
7073
$ make && make install
7174

75+
[repo]: https://github.com/rust-lang/rust
76+
[tarball]: https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
77+
7278
## Notes
7379

7480
Since the Rust compiler is written in Rust, it must be built by a
@@ -88,9 +94,9 @@ supported build environments that are most likely to work.
8894
Rust currently needs about 1.5 GiB of RAM to build without swapping; if it hits
8995
swap, it will take a very long time to build.
9096

91-
There is more advice about hacking on Rust in [CONTRIBUTING.md].
97+
There is a lot more documentation in the [wiki].
9298

93-
[CONTRIBUTING.md]: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md
99+
[wiki]: https://github.com/rust-lang/rust/wiki
94100

95101
## Getting help
96102

@@ -108,14 +114,6 @@ The Rust community congregates in a few places:
108114

109115
To contribute to Rust, please see [CONTRIBUTING.md](CONTRIBUTING.md).
110116

111-
Rust has an [IRC] culture and most real-time collaboration happens in a
112-
variety of channels on Mozilla's IRC network, irc.mozilla.org. The
113-
most popular channel is [#rust], a venue for general discussion about
114-
Rust, and a good place to ask for help,
115-
116-
[IRC]: https://en.wikipedia.org/wiki/Internet_Relay_Chat
117-
[#rust]: irc://irc.mozilla.org/rust
118-
119117
## License
120118

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

branches/try/RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Version 1.0.0-alpha.2 (February 2015)
5151
* Abstract [OS-specific string types][osstr], `std::ff::{OsString,
5252
OsStr}`, provide strings in platform-specific encodings for easier
5353
interop with system APIs. [RFC][osstr-rfc].
54-
* The `boxed::into_raw` and `Box::from_raw` functions [convert
54+
* The `boxed::into_raw` and `Box::frow_raw` functions [convert
5555
between `Box<T>` and `*mut T`][boxraw], a common pattern for
5656
creating raw pointers.
5757

branches/try/configure

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,8 @@ case $CFG_OSTYPE in
374374
CFG_OSTYPE=unknown-dragonfly
375375
;;
376376

377-
Bitrig)
378-
CFG_OSTYPE=unknown-bitrig
379-
;;
380-
381377
OpenBSD)
382-
CFG_OSTYPE=unknown-openbsd
378+
CFG_OSTYPE=unknown-openbsd
383379
;;
384380

385381
Darwin)
@@ -751,13 +747,6 @@ then
751747
CFG_ENABLE_CLANG=1
752748
fi
753749

754-
# Force bitrig to build with clang; gcc doesn't like us there
755-
if [ $CFG_OSTYPE = unknown-bitrig ]
756-
then
757-
step_msg "on Bitrig, forcing use of clang"
758-
CFG_ENABLE_CLANG=1
759-
fi
760-
761750
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
762751
then
763752
err "either clang or gcc is required"
@@ -1067,7 +1056,6 @@ do
10671056
make_dir $h/test/run-pass-fulldeps
10681057
make_dir $h/test/run-fail
10691058
make_dir $h/test/compile-fail
1070-
make_dir $h/test/parse-fail
10711059
make_dir $h/test/compile-fail-fulldeps
10721060
make_dir $h/test/bench
10731061
make_dir $h/test/perf

branches/try/mk/cfg/x86_64-unknown-bitrig.mk

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

branches/try/mk/platform.mk

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ FIND_COMPILER = $(word 1,$(1:ccache=))
144144
define CFG_MAKE_TOOLCHAIN
145145
# Prepend the tools with their prefix if cross compiling
146146
ifneq ($(CFG_BUILD),$(1))
147-
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
148-
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
149-
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
150-
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
151-
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(1))) \
152-
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
153-
154-
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
147+
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
148+
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
149+
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
150+
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
151+
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(1))) \
152+
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
153+
154+
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
155155
endif
156156

157157
CFG_COMPILE_C_$(1) = $$(CC_$(1)) \
@@ -179,19 +179,11 @@ define CFG_MAKE_TOOLCHAIN
179179

180180
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel powerpc),)
181181

182-
# On Bitrig, we need the relocation model to be PIC for everthing
183-
ifeq (,$(filter $(OSTYPE_$(1)),bitrig))
184-
LLVM_MC_RELOCATION_MODEL="pic"
185-
else
186-
LLVM_MC_RELOCATION_MODEL="default"
187-
endif
188-
189182
# We're using llvm-mc as our assembler because it supports
190183
# .cfi pseudo-ops on mac
191184
CFG_ASSEMBLE_$(1)=$$(CPP_$(1)) -E $$(CFG_DEPEND_FLAGS) $$(2) | \
192185
$$(LLVM_MC_$$(CFG_BUILD)) \
193186
-assemble \
194-
-relocation-model=$$(LLVM_MC_RELOCATION_MODEL) \
195187
-filetype=obj \
196188
-triple=$(1) \
197189
-o=$$(1)
@@ -200,7 +192,7 @@ define CFG_MAKE_TOOLCHAIN
200192
# For the ARM, AARCH64, MIPS and POWER crosses, use the toolchain assembler
201193
# FIXME: We should be able to use the LLVM assembler
202194
CFG_ASSEMBLE_$(1)=$$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
203-
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)
195+
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)
204196

205197
endif
206198

branches/try/mk/tests.mk

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ check-notidy: cleantmptestlogs cleantestlibs all check-stage2
174174
check-lite: cleantestlibs cleantmptestlogs \
175175
$(foreach crate,$(TEST_TARGET_CRATES),check-stage2-$(crate)) \
176176
check-stage2-rpass check-stage2-rpass-valgrind \
177-
check-stage2-rfail check-stage2-cfail check-stage2-pfail check-stage2-rmake
177+
check-stage2-rfail check-stage2-cfail check-stage2-rmake
178178
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
179179

180180
# Only check the 'reference' tests: rpass/cfail/rfail/rmake.
181181
check-ref: cleantestlibs cleantmptestlogs check-stage2-rpass check-stage2-rpass-valgrind \
182-
check-stage2-rfail check-stage2-cfail check-stage2-pfail check-stage2-rmake
182+
check-stage2-rfail check-stage2-cfail check-stage2-rmake
183183
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
184184

185185
# Only check the docs.
@@ -291,7 +291,6 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
291291
check-stage$(1)-T-$(2)-H-$(3)-rpass-exec \
292292
check-stage$(1)-T-$(2)-H-$(3)-rfail-exec \
293293
check-stage$(1)-T-$(2)-H-$(3)-cfail-exec \
294-
check-stage$(1)-T-$(2)-H-$(3)-pfail-exec \
295294
check-stage$(1)-T-$(2)-H-$(3)-rpass-valgrind-exec \
296295
check-stage$(1)-T-$(2)-H-$(3)-rpass-full-exec \
297296
check-stage$(1)-T-$(2)-H-$(3)-cfail-full-exec \
@@ -471,8 +470,7 @@ RPASS_VALGRIND_TESTS := $(RPASS_VALGRIND_RS)
471470
RPASS_FULL_TESTS := $(RPASS_FULL_RS)
472471
CFAIL_FULL_TESTS := $(CFAIL_FULL_RS)
473472
RFAIL_TESTS := $(RFAIL_RS)
474-
CFAIL_TESTS := $(CFAIL_RS)
475-
PFAIL_TESTS := $(PFAIL_RS)
473+
CFAIL_TESTS := $(CFAIL_RS) $(PFAIL_RS)
476474
BENCH_TESTS := $(BENCH_RS)
477475
PERF_TESTS := $(PERF_RS)
478476
PRETTY_TESTS := $(PRETTY_RS)
@@ -510,11 +508,6 @@ CTEST_BUILD_BASE_cfail = compile-fail
510508
CTEST_MODE_cfail = compile-fail
511509
CTEST_RUNTOOL_cfail = $(CTEST_RUNTOOL)
512510

513-
CTEST_SRC_BASE_pfail = parse-fail
514-
CTEST_BUILD_BASE_pfail = parse-fail
515-
CTEST_MODE_pfail = parse-fail
516-
CTEST_RUNTOOL_pfail = $(CTEST_RUNTOOL)
517-
518511
CTEST_SRC_BASE_bench = bench
519512
CTEST_BUILD_BASE_bench = bench
520513
CTEST_MODE_bench = run-pass
@@ -637,7 +630,6 @@ CTEST_DEPS_rpass-full_$(1)-T-$(2)-H-$(3) = $$(RPASS_FULL_TESTS) $$(CSREQ$(1)_T_$
637630
CTEST_DEPS_cfail-full_$(1)-T-$(2)-H-$(3) = $$(CFAIL_FULL_TESTS) $$(CSREQ$(1)_T_$(3)_H_$(3)) $$(SREQ$(1)_T_$(2)_H_$(3))
638631
CTEST_DEPS_rfail_$(1)-T-$(2)-H-$(3) = $$(RFAIL_TESTS)
639632
CTEST_DEPS_cfail_$(1)-T-$(2)-H-$(3) = $$(CFAIL_TESTS)
640-
CTEST_DEPS_pfail_$(1)-T-$(2)-H-$(3) = $$(PFAIL_TESTS)
641633
CTEST_DEPS_bench_$(1)-T-$(2)-H-$(3) = $$(BENCH_TESTS)
642634
CTEST_DEPS_perf_$(1)-T-$(2)-H-$(3) = $$(PERF_TESTS)
643635
CTEST_DEPS_debuginfo-gdb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_GDB_TESTS)
@@ -706,7 +698,7 @@ endif
706698

707699
endef
708700

709-
CTEST_NAMES = rpass rpass-valgrind rpass-full cfail-full rfail cfail pfail bench perf debuginfo-gdb debuginfo-lldb codegen
701+
CTEST_NAMES = rpass rpass-valgrind rpass-full cfail-full rfail cfail bench perf debuginfo-gdb debuginfo-lldb codegen
710702

711703
$(foreach host,$(CFG_HOST), \
712704
$(eval $(foreach target,$(CFG_TARGET), \
@@ -865,7 +857,6 @@ TEST_GROUPS = \
865857
cfail-full \
866858
rfail \
867859
cfail \
868-
pfail \
869860
bench \
870861
perf \
871862
rmake \

branches/try/src/compiletest/common.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use std::str::FromStr;
1515
#[derive(Clone, Copy, PartialEq, Debug)]
1616
pub enum Mode {
1717
CompileFail,
18-
ParseFail,
1918
RunFail,
2019
RunPass,
2120
RunPassValgrind,
@@ -30,7 +29,6 @@ impl FromStr for Mode {
3029
fn from_str(s: &str) -> Result<Mode, ()> {
3130
match s {
3231
"compile-fail" => Ok(CompileFail),
33-
"parse-fail" => Ok(ParseFail),
3432
"run-fail" => Ok(RunFail),
3533
"run-pass" => Ok(RunPass),
3634
"run-pass-valgrind" => Ok(RunPassValgrind),
@@ -47,7 +45,6 @@ impl fmt::Display for Mode {
4745
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4846
fmt::Display::fmt(match *self {
4947
CompileFail => "compile-fail",
50-
ParseFail => "parse-fail",
5148
RunFail => "run-fail",
5249
RunPass => "run-pass",
5350
RunPassValgrind => "run-pass-valgrind",

branches/try/src/compiletest/compiletest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#![feature(test)]
2222
#![feature(unicode)]
2323
#![feature(env)]
24-
#![feature(core)]
2524

2625
#![deny(warnings)]
2726

@@ -73,7 +72,7 @@ pub fn parse_config(args: Vec<String> ) -> Config {
7372
reqopt("", "aux-base", "directory to find auxiliary test files", "PATH"),
7473
reqopt("", "stage-id", "the target-stage identifier", "stageN-TARGET"),
7574
reqopt("", "mode", "which sort of compile tests to run",
76-
"(compile-fail|parse-fail|run-fail|run-pass|run-pass-valgrind|pretty|debug-info)"),
75+
"(compile-fail|run-fail|run-pass|run-pass-valgrind|pretty|debug-info)"),
7776
optflag("", "ignored", "run tests marked as ignored"),
7877
optopt("", "runtool", "supervisor program to run tests under \
7978
(eg. emulator, valgrind)", "PROGRAM"),

branches/try/src/compiletest/runtest.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use self::TargetLocation::*;
1212

1313
use common::Config;
14-
use common::{CompileFail, ParseFail, Pretty, RunFail, RunPass, RunPassValgrind, DebugInfoGdb};
14+
use common::{CompileFail, Pretty, RunFail, RunPass, RunPassValgrind, DebugInfoGdb};
1515
use common::{Codegen, DebugInfoLldb};
1616
use errors;
1717
use header::TestProps;
@@ -66,7 +66,6 @@ pub fn run_metrics(config: Config, testfile: String, mm: &mut MetricMap) {
6666
debug!("loaded props");
6767
match config.mode {
6868
CompileFail => run_cfail_test(&config, &props, &testfile),
69-
ParseFail => run_cfail_test(&config, &props, &testfile),
7069
RunFail => run_rfail_test(&config, &props, &testfile),
7170
RunPass => run_rpass_test(&config, &props, &testfile),
7271
RunPassValgrind => run_valgrind_test(&config, &props, &testfile),
@@ -89,7 +88,7 @@ fn run_cfail_test(config: &Config, props: &TestProps, testfile: &Path) {
8988
let proc_res = compile_test(config, props, testfile);
9089

9190
if proc_res.status.success() {
92-
fatal_proc_rec(&format!("{} test compiled successfully!", config.mode)[],
91+
fatal_proc_rec("compile-fail test compiled successfully!",
9392
&proc_res);
9493
}
9594

@@ -689,7 +688,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
689688
.unwrap()
690689
.to_string();
691690

692-
script_str.push_str(&format!("command script import {}\n", &rust_pp_module_abs_path[..])[]);
691+
script_str.push_str(&format!("command script import {}\n", &rust_pp_module_abs_path[])[]);
693692
script_str.push_str("type summary add --no-value ");
694693
script_str.push_str("--python-function lldb_rust_formatters.print_val ");
695694
script_str.push_str("-x \".*\" --category Rust\n");
@@ -1134,7 +1133,7 @@ fn compile_test_(config: &Config, props: &TestProps,
11341133
// FIXME (#9639): This needs to handle non-utf8 paths
11351134
let mut link_args = vec!("-L".to_string(),
11361135
aux_dir.as_str().unwrap().to_string());
1137-
link_args.extend(extra_args.iter().cloned());
1136+
link_args.extend(extra_args.iter().map(|s| s.clone()));
11381137
let args = make_compile_args(config,
11391138
props,
11401139
link_args,

0 commit comments

Comments
 (0)