Skip to content

Commit 2ea8d5f

Browse files
committed
---
yaml --- r: 169903 b: refs/heads/auto c: 144f4b8 h: refs/heads/master i: 169901: cc39953 169899: 96bc880 169895: fbb688b 169887: cbc2406 v: v3
1 parent 425c968 commit 2ea8d5f

File tree

831 files changed

+13552
-12891
lines changed

Some content is hidden

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

831 files changed

+13552
-12891
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: c7dd3c4d69aee1c4ad8cc220c194b176bba2ab62
13+
refs/heads/auto: 144f4b88ac338add740009626b91f278030f660b
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/CONTRIBUTING.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,5 @@ example, if it's 2014, and you change a Rust file that was created in
4747
// Copyright 2010-2014 The Rust Project Developers.
4848
```
4949

50-
# Coordination and communication
51-
52-
Get feedback from other developers on
53-
[discuss.rust-lang.org][discuss], and
54-
[#rust-internals][pound-rust-internals].
55-
56-
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57-
[discuss]: http://discuss.rust-lang.org
58-
5950
For more details, please refer to
6051
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

branches/auto/man/rustc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Specify the name of the crate being built
3434
\fB\-\-emit\fR [asm|llvm-bc|llvm-ir|obj|link|dep-info]
3535
Configure the output that rustc will produce
3636
.TP
37-
\fB\-\-print\fR [crate-name|file-names|sysroot]
37+
\fB\-\-print\fR [crate-name|output-file-names|sysroot]
3838
Comma separated list of compiler information to print on stdout
3939
.TP
4040
\fB\-g\fR

branches/auto/mk/crates.mk

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
################################################################################
5151

5252
TARGET_CRATES := libc std flate arena term \
53-
serialize getopts collections test rand \
53+
serialize getopts collections test time rand \
5454
log regex graphviz core rbml alloc \
5555
unicode
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5757
rustc_trans rustc_back rustc_llvm
58-
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
58+
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc regex_macros fmt_macros
5959
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6060
TOOLS := compiletest rustdoc rustc
6161

@@ -75,11 +75,11 @@ DEPS_rustc_typeck := rustc syntax
7575
DEPS_rustc_borrowck := rustc log graphviz syntax
7676
DEPS_rustc_resolve := rustc log syntax
7777
DEPS_rustc := syntax flate arena serialize getopts rbml \
78-
log graphviz rustc_llvm rustc_back
78+
time log graphviz rustc_llvm rustc_back
7979
DEPS_rustc_llvm := native:rustllvm libc std
8080
DEPS_rustc_back := std syntax rustc_llvm flate log libc
8181
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
82-
test
82+
test time
8383
DEPS_flate := std native:miniz
8484
DEPS_arena := std
8585
DEPS_graphviz := std
@@ -90,10 +90,12 @@ DEPS_term := std log
9090
DEPS_getopts := std
9191
DEPS_collections := core alloc unicode
9292
DEPS_num := std
93-
DEPS_test := std getopts serialize rbml term regex native:rust_test_helpers
93+
DEPS_test := std getopts serialize rbml term time regex native:rust_test_helpers
94+
DEPS_time := std serialize
9495
DEPS_rand := core
9596
DEPS_log := std regex
9697
DEPS_regex := std
98+
DEPS_regex_macros = rustc syntax std regex
9799
DEPS_fmt_macros = std
98100

99101
TOOL_DEPS_compiletest := test getopts
@@ -122,8 +124,10 @@ DOC_CRATES := $(filter-out rustc, \
122124
$(filter-out rustc_driver, \
123125
$(filter-out log, \
124126
$(filter-out regex, \
127+
$(filter-out regex_macros, \
125128
$(filter-out getopts, \
126-
$(filter-out syntax, $(CRATES)))))))))))
129+
$(filter-out time, \
130+
$(filter-out syntax, $(CRATES)))))))))))))
127131
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
128132
rustc_typeck rustc_driver syntax
129133

branches/auto/mk/grammar.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $(BG)RustLexer.class: $(BG) $(SG)RustLexer.g4
3737
check-build-lexer-verifier: $(BG)verify
3838

3939
ifeq ($(NO_REBUILD),)
40-
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.rustc
40+
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
4141
else
4242
VERIFY_DEPS :=
4343
endif

branches/auto/mk/install.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ endif
2828
# Remove tmp files because it's a decent amount of disk space
2929
$(Q)rm -R tmp/dist
3030

31-
prepare_install: dist-tar-bins | tmp/empty_dir
31+
ifeq ($(CFG_DISABLE_DOCS),)
32+
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz dist/$(DOC_PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
33+
else
34+
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
35+
endif
3236

3337
uninstall:
3438
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
@@ -44,7 +48,7 @@ endif
4448
# Remove tmp files because it's a decent amount of disk space
4549
$(Q)rm -R tmp/dist
4650

47-
prepare_uninstall: dist-tar-bins | tmp/empty_dir
51+
prepare_uninstall: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
4852

4953
.PHONY: install prepare_install uninstall prepare_uninstall
5054

branches/auto/mk/tests.mk

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,15 @@ TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
373373
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
374374
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4))
375375

376+
# The regex crate depends on the regex_macros crate during testing, but it
377+
# notably depend on the *host* regex_macros crate, not the target version.
378+
# Additionally, this is not a dependency in stage1, only in stage2.
379+
ifeq ($(4),regex)
380+
ifneq ($(1),1)
381+
TESTDEP_$(1)_$(2)_$(3)_$(4) += $$(TLIB$(1)_T_$(3)_H_$(3))/stamp.regex_macros
382+
endif
383+
endif
384+
376385
else
377386
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
378387
endif
@@ -834,8 +843,27 @@ else
834843
CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
835844
endif
836845

846+
# (Issues #13732, #13983, #14000) The doc for the regex crate includes
847+
# uses of the `regex!` macro from the regex_macros crate. There is
848+
# normally a dependence injected that makes the target's regex depend
849+
# upon the host's regex_macros (see #13845), but that dependency
850+
# injection is currently skipped for stage1 as a special case.
851+
#
852+
# Therefore, as a further special case, this conditional skips
853+
# attempting to run the doc tests for the regex crate atop stage1,
854+
# (since there is no regex_macros crate for the stage1 rustc to load).
855+
#
856+
# (Another approach for solving this would be to inject the desired
857+
# dependence for stage1 as well, by setting things up to generate a
858+
# regex_macros crate that was compatible with the stage1 rustc and
859+
# thus re-enable our ability to run this test.)
860+
ifeq (stage$(1)-crate-$(4),stage1-crate-regex)
861+
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec:
862+
@$$(call E, skipping doc-crate-$(4) as it uses macros and cannot run at stage$(1))
863+
else
837864
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec: \
838865
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4))
866+
endif
839867

840868
ifeq ($(2),$$(CFG_BUILD))
841869
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)): $$(CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4))

branches/auto/src/compiletest/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::fmt;
1313
use std::str::FromStr;
1414
use regex::Regex;
1515

16-
#[derive(Clone, PartialEq)]
16+
#[deriving(Clone, PartialEq)]
1717
pub enum Mode {
1818
CompileFail,
1919
RunFail,
@@ -59,7 +59,7 @@ impl fmt::Show for Mode {
5959
}
6060
}
6161

62-
#[derive(Clone)]
62+
#[deriving(Clone)]
6363
pub struct Config {
6464
// The library paths required for running the compiler
6565
pub compile_lib_path: String,

branches/auto/src/compiletest/compiletest.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern crate regex;
2222
use std::os;
2323
use std::io;
2424
use std::io::fs;
25-
use std::str::FromStr;
25+
use std::str::{FromStr, from_str};
2626
use std::thunk::Thunk;
2727
use getopts::{optopt, optflag, reqopt};
2828
use common::Config;
@@ -339,9 +339,8 @@ pub fn is_test(config: &Config, testfile: &Path) -> bool {
339339
return valid;
340340
}
341341

342-
pub fn make_test<F>(config: &Config, testfile: &Path, f: F) -> test::TestDescAndFn where
343-
F: FnOnce() -> test::TestFn,
344-
{
342+
pub fn make_test(config: &Config, testfile: &Path, f: || -> test::TestFn)
343+
-> test::TestDescAndFn {
345344
test::TestDescAndFn {
346345
desc: test::TestDesc {
347346
name: make_test_name(config, testfile),

branches/auto/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct ExpectedError {
3030
pub static EXPECTED_PATTERN : &'static str =
3131
r"//~(?P<follow>\|)?(?P<adjusts>\^*)\s*(?P<kind>\S*)\s*(?P<msg>.*)";
3232

33-
#[derive(PartialEq, Show)]
33+
#[deriving(PartialEq, Show)]
3434
enum WhichLine { ThisLine, FollowPrevious(uint), AdjustBackward(uint) }
3535

3636
// Load any test directives embedded in the file

branches/auto/src/compiletest/header.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,7 @@ pub fn is_test_ignored(config: &Config, testfile: &Path) -> bool {
220220
!val
221221
}
222222

223-
fn iter_header<F>(testfile: &Path, mut it: F) -> bool where
224-
F: FnMut(&str) -> bool,
225-
{
223+
fn iter_header(testfile: &Path, it: |&str| -> bool) -> bool {
226224
use std::io::{BufferedReader, File};
227225

228226
let mut rdr = BufferedReader::new(File::open(testfile).unwrap());

branches/auto/src/compiletest/runtest.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,14 +1233,12 @@ enum TargetLocation {
12331233
ThisDirectory(Path),
12341234
}
12351235

1236-
fn make_compile_args<F>(config: &Config,
1237-
props: &TestProps,
1238-
extras: Vec<String> ,
1239-
xform: F,
1240-
testfile: &Path)
1241-
-> ProcArgs where
1242-
F: FnOnce(&Config, &Path) -> TargetLocation,
1243-
{
1236+
fn make_compile_args(config: &Config,
1237+
props: &TestProps,
1238+
extras: Vec<String> ,
1239+
xform: |&Config, &Path| -> TargetLocation,
1240+
testfile: &Path)
1241+
-> ProcArgs {
12441242
let xform_file = xform(config, testfile);
12451243
let target = if props.force_host {
12461244
config.host.as_slice()

branches/auto/src/doc/guide-testing.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,7 @@ computation entirely. This could be done for the example above by adjusting the
537537
`b.iter` call to
538538

539539
```rust
540-
# struct X;
541-
# impl X { fn iter<T, F>(&self, _: F) where F: FnMut() -> T {} } let b = X;
540+
# struct X; impl X { fn iter<T>(&self, _: || -> T) {} } let b = X;
542541
b.iter(|| {
543542
// note lack of `;` (could also use an explicit `return`).
544543
range(0u, 1000).fold(0, |old, new| old ^ new)
@@ -553,8 +552,7 @@ argument as used.
553552
extern crate test;
554553

555554
# fn main() {
556-
# struct X;
557-
# impl X { fn iter<T, F>(&self, _: F) where F: FnMut() -> T {} } let b = X;
555+
# struct X; impl X { fn iter<T>(&self, _: || -> T) {} } let b = X;
558556
b.iter(|| {
559557
test::black_box(range(0u, 1000).fold(0, |old, new| old ^ new));
560558
});

0 commit comments

Comments
 (0)