Skip to content

Commit 486bdb9

Browse files
committed
---
yaml --- r: 277406 b: refs/heads/try c: 2f1dfe6 h: refs/heads/master
1 parent 0801509 commit 486bdb9

File tree

343 files changed

+7915
-9570
lines changed

Some content is hidden

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

343 files changed

+7915
-9570
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: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: cda7c1cf2463443aee4a2f51a5141bc7ce4a4f97
4+
refs/heads/try: 2f1dfe615d479f19fa1b989e014eb8d4d516a23a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/configure

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@ opt llvm-version-check 1 "check if the LLVM version is supported, build anyway"
609609
opt rustbuild 0 "use the rust and cargo based build system"
610610
opt orbit 0 "get MIR where it belongs - everywhere; most importantly, in orbit"
611611
opt codegen-tests 1 "run the src/test/codegen tests"
612-
opt option-checking 1 "complain about unrecognized options in this configure script"
613612

614613
# Optimization and debugging options. These may be overridden by the release channel, etc.
615614
opt_nosave optimize 1 "build optimized rust code"
@@ -675,11 +674,8 @@ then
675674
fi
676675

677676
# Validate Options
678-
if [ -z "$CFG_DISABLE_OPTION_CHECKING" ]
679-
then
680-
step_msg "validating $CFG_SELF args"
681-
validate_opt
682-
fi
677+
step_msg "validating $CFG_SELF args"
678+
validate_opt
683679

684680
# Validate the release channel, and configure options
685681
case "$CFG_RELEASE_CHANNEL" in
@@ -823,19 +819,6 @@ then
823819
fi
824820
fi
825821

826-
# LLDB tests on OSX require /usr/bin/python, not something like Homebrew's
827-
# /usr/local/bin/python. We're loading a compiled module for LLDB tests which is
828-
# only compatible with the system.
829-
case $CFG_BUILD in
830-
*-apple-darwin)
831-
CFG_LLDB_PYTHON=/usr/bin/python
832-
;;
833-
*)
834-
CFG_LLDB_PYTHON=$CFG_PYTHON
835-
;;
836-
esac
837-
putvar CFG_LLDB_PYTHON
838-
839822
step_msg "looking for target specific programs"
840823

841824
probe CFG_ADB adb

branches/try/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
128128
test rustc_lint rustc_const_eval
129129

130130

131-
TOOL_DEPS_compiletest := test getopts log serialize
131+
TOOL_DEPS_compiletest := test getopts log
132132
TOOL_DEPS_rustdoc := rustdoc
133133
TOOL_DEPS_rustc := rustc_driver
134134
TOOL_DEPS_rustbook := std rustdoc

branches/try/mk/tests.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,10 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
619619
--stage-id stage$(1)-$(2) \
620620
--target $(2) \
621621
--host $(3) \
622-
--docck-python $$(CFG_PYTHON) \
623-
--lldb-python $$(CFG_LLDB_PYTHON) \
622+
--python $$(CFG_PYTHON) \
624623
--gdb-version="$(CFG_GDB_VERSION)" \
625624
--lldb-version="$(CFG_LLDB_VERSION)" \
626-
--android-cross-path=$(CFG_ARM_LINUX_ANDROIDEABI_NDK) \
625+
--android-cross-path=$(CFG_ANDROID_CROSS_PATH) \
627626
--adb-path=$(CFG_ADB) \
628627
--adb-test-dir=$(CFG_ADB_TEST_DIR) \
629628
--host-rustcflags "$(RUSTC_FLAGS_$(3)) $$(CTEST_RUSTC_FLAGS) -L $$(RT_OUTPUT_DIR_$(3))" \

branches/try/src/bootstrap/build/check.rs

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

1111
use std::fs;
12-
use std::path::{PathBuf, Path};
13-
use std::process::Command;
12+
use std::path::PathBuf;
1413

1514
use build::{Build, Compiler};
1615

@@ -82,19 +81,8 @@ pub fn compiletest(build: &Build,
8281

8382
// FIXME: needs android support
8483
cmd.arg("--android-cross-path").arg("");
85-
8684
// FIXME: CFG_PYTHON should probably be detected more robustly elsewhere
87-
let python_default = "python";
88-
cmd.arg("--docck-python").arg(python_default);
89-
90-
if build.config.build.ends_with("apple-darwin") {
91-
// Force /usr/bin/python on OSX for LLDB tests because we're loading the
92-
// LLDB plugin's compiled module which only works with the system python
93-
// (namely not Homebrew-installed python)
94-
cmd.arg("--lldb-python").arg("/usr/bin/python");
95-
} else {
96-
cmd.arg("--lldb-python").arg(python_default);
97-
}
85+
cmd.arg("--python").arg("python");
9886

9987
if let Some(ref vers) = build.gdb_version {
10088
cmd.arg("--gdb-version").arg(vers);
@@ -114,42 +102,3 @@ pub fn compiletest(build: &Build,
114102

115103
build.run(&mut cmd);
116104
}
117-
118-
pub fn docs(build: &Build, compiler: &Compiler) {
119-
let mut stack = vec![build.src.join("src/doc")];
120-
121-
while let Some(p) = stack.pop() {
122-
if p.is_dir() {
123-
stack.extend(t!(p.read_dir()).map(|p| t!(p).path()));
124-
continue
125-
}
126-
127-
if p.extension().and_then(|s| s.to_str()) != Some("md") {
128-
continue
129-
}
130-
131-
println!("doc tests for: {}", p.display());
132-
markdown_test(build, compiler, &p);
133-
}
134-
}
135-
136-
pub fn error_index(build: &Build, compiler: &Compiler) {
137-
println!("Testing error-index stage{}", compiler.stage);
138-
139-
let output = testdir(build, compiler.host).join("error-index.md");
140-
build.run(build.tool_cmd(compiler, "error_index_generator")
141-
.arg("markdown")
142-
.arg(&output)
143-
.env("CFG_BUILD", &build.config.build));
144-
145-
markdown_test(build, compiler, &output);
146-
}
147-
148-
fn markdown_test(build: &Build, compiler: &Compiler, markdown: &Path) {
149-
let mut cmd = Command::new(build.rustdoc(compiler));
150-
build.add_rustc_lib_path(compiler, &mut cmd);
151-
cmd.arg("--test");
152-
cmd.arg(markdown);
153-
cmd.arg("--test-args").arg(build.flags.args.join(" "));
154-
build.run(&mut cmd);
155-
}

branches/try/src/bootstrap/build/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,6 @@ impl Build {
308308
check::compiletest(self, &compiler, target.target,
309309
"compile-fail", "compile-fail-fulldeps")
310310
}
311-
CheckDocs { compiler } => {
312-
check::docs(self, &compiler);
313-
}
314-
CheckErrorIndex { compiler } => {
315-
check::error_index(self, &compiler);
316-
}
317311

318312
DistDocs { stage } => dist::docs(self, stage, target.target),
319313
DistMingw { _dummy } => dist::mingw(self, target.target),

branches/try/src/bootstrap/build/step.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ macro_rules! targets {
9696
(check_rpass_valgrind, CheckRPassValgrind { compiler: Compiler<'a> }),
9797
(check_rpass_full, CheckRPassFull { compiler: Compiler<'a> }),
9898
(check_cfail_full, CheckCFailFull { compiler: Compiler<'a> }),
99-
(check_docs, CheckDocs { compiler: Compiler<'a> }),
100-
(check_error_index, CheckErrorIndex { compiler: Compiler<'a> }),
10199

102100
// Distribution targets, creating tarballs
103101
(dist, Dist { stage: u32 }),
@@ -343,10 +341,7 @@ impl<'a> Step<'a> {
343341
self.check_rpass_valgrind(compiler),
344342
self.check_rpass_full(compiler),
345343
self.check_cfail_full(compiler),
346-
self.check_error_index(compiler),
347-
self.check_docs(compiler),
348344
self.check_linkcheck(stage),
349-
self.check_tidy(stage),
350345
self.dist(stage),
351346
]
352347
}
@@ -388,12 +383,6 @@ impl<'a> Step<'a> {
388383
vec![self.librustc(compiler),
389384
self.tool_compiletest(compiler.stage)]
390385
}
391-
Source::CheckDocs { compiler } => {
392-
vec![self.libstd(compiler)]
393-
}
394-
Source::CheckErrorIndex { compiler } => {
395-
vec![self.libstd(compiler), self.tool_error_index(compiler.stage)]
396-
}
397386

398387
Source::ToolLinkchecker { stage } |
399388
Source::ToolTidy { stage } => {

branches/try/src/doc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ libraries.
99

1010
To generate HTML documentation from one source file/crate, do something like:
1111

12-
~~~~text
12+
~~~~
1313
rustdoc --output html-doc/ --output-format html ../src/libstd/path.rs
1414
~~~~
1515

@@ -20,7 +20,7 @@ rustdoc --output html-doc/ --output-format html ../src/libstd/path.rs
2020
To generate an HTML version of a doc from Markdown manually, you can do
2121
something like:
2222

23-
~~~~text
23+
~~~~
2424
rustdoc reference.md
2525
~~~~
2626

branches/try/src/doc/book/const-and-static.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ the result of a function call or anything similarly complex or at runtime.
7979

8080
Almost always, if you can choose between the two, choose `const`. It’s pretty
8181
rare that you actually want a memory location associated with your constant,
82-
and using a `const` allows for optimizations like constant propagation not only
82+
and using a const allows for optimizations like constant propagation not only
8383
in your crate but downstream crates.

branches/try/src/doc/nomicon/subtyping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ inferred variance, so `Fn(T)` is invariant in `T`).
5353
Some important variances:
5454

5555
* `&'a T` is variant over `'a` and `T` (as is `*const T` by metaphor)
56-
* `&'a mut T` is variant over `'a` but invariant over `T`
56+
* `&'a mut T` is variant with over `'a` but invariant over `T`
5757
* `Fn(T) -> U` is invariant over `T`, but variant over `U`
5858
* `Box`, `Vec`, and all other collections are variant over the types of
5959
their contents

branches/try/src/doc/style/errors/ergonomics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pattern.
99

1010
Prefer
1111

12-
```rust,ignore
12+
```rust
1313
use std::io::{File, Open, Write, IoError};
1414

1515
struct Info {
@@ -31,7 +31,7 @@ fn write_info(info: &Info) -> Result<(), IoError> {
3131

3232
over
3333

34-
```rust,ignore
34+
```rust
3535
use std::io::{File, Open, Write, IoError};
3636

3737
struct Info {

branches/try/src/doc/style/features/functions-and-methods/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
Prefer
66

7-
```rust,ignore
7+
```rust
88
impl Foo {
99
pub fn frob(&self, w: widget) { ... }
1010
}
1111
```
1212

1313
over
1414

15-
```rust,ignore
15+
```rust
1616
pub fn frob(foo: &Foo, w: widget) { ... }
1717
```
1818

branches/try/src/doc/style/features/functions-and-methods/input.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
Prefer
88

9-
```rust,ignore
9+
```rust
1010
fn foo(b: Bar) {
1111
// use b as owned, directly
1212
}
1313
```
1414

1515
over
1616

17-
```rust,ignore
17+
```rust
1818
fn foo(b: &Bar) {
1919
let b = b.clone();
2020
// use b as owned after cloning
@@ -33,13 +33,13 @@ needed, not as a way of signaling that copies should be cheap to make.
3333

3434
Prefer
3535

36-
```rust,ignore
36+
```rust
3737
fn foo(b: Bar) -> Bar { ... }
3838
```
3939

4040
over
4141

42-
```rust,ignore
42+
```rust
4343
fn foo(b: Box<Bar>) -> Box<Bar> { ... }
4444
```
4545

@@ -56,13 +56,13 @@ it becomes.
5656

5757
Prefer
5858

59-
```rust,ignore
59+
```rust
6060
fn foo<T: Iterator<i32>>(c: T) { ... }
6161
```
6262

6363
over any of
6464

65-
```rust,ignore
65+
```rust
6666
fn foo(c: &[i32]) { ... }
6767
fn foo(c: &Vec<i32>) { ... }
6868
fn foo(c: &SomeOtherCollection<i32>) { ... }
@@ -83,14 +83,14 @@ concrete nor overly abstract. See the discussion on
8383

8484
Prefer either of
8585

86-
```rust,ignore
86+
```rust
8787
fn foo(b: &Bar) { ... }
8888
fn foo(b: &mut Bar) { ... }
8989
```
9090

9191
over
9292

93-
```rust,ignore
93+
```rust
9494
fn foo(b: Bar) { ... }
9595
```
9696

@@ -101,13 +101,13 @@ ownership is actually needed.
101101

102102
Prefer
103103

104-
```rust,ignore
104+
```rust
105105
fn foo() -> (Bar, Bar)
106106
```
107107

108108
over
109109

110-
```rust,ignore
110+
```rust
111111
fn foo(output: &mut Bar) -> Bar
112112
```
113113

@@ -120,7 +120,7 @@ multiple values, it should do so via one of these types.
120120
The primary exception: sometimes a function is meant to modify data
121121
that the caller already owns, for example to re-use a buffer:
122122

123-
```rust,ignore
123+
```rust
124124
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize>
125125
```
126126

@@ -146,7 +146,7 @@ Choose an argument type that rules out bad inputs.
146146
147147
For example, prefer
148148
149-
```rust,ignore
149+
```rust
150150
enum FooMode {
151151
Mode1,
152152
Mode2,
@@ -157,7 +157,7 @@ fn foo(mode: FooMode) { ... }
157157
158158
over
159159
160-
```rust,ignore
160+
```rust
161161
fn foo(mode2: bool, mode3: bool) {
162162
assert!(!mode2 || !mode3);
163163
...

0 commit comments

Comments
 (0)