Skip to content

Commit ed6280a

Browse files
committed
---
yaml --- r: 188149 b: refs/heads/try c: 0cea2b7 h: refs/heads/master i: 188147: c23708e v: v3
1 parent 62b0496 commit ed6280a

File tree

550 files changed

+9623
-15720
lines changed

Some content is hidden

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

550 files changed

+9623
-15720
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: 38e97b99a6b133cb4c621c68e75b28abc6c617c1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: 1cc8b6ec664f30b43f75551e95299d943c8a4e6a
5+
refs/heads/try: 0cea2b7c3c32ea5028227f85431f8af7636ef558
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/README.md

Lines changed: 33 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,28 @@ Read ["Installing Rust"] from [The Book].
1515
## Building from Source
1616

1717
1. Make sure you have installed the dependencies:
18-
19-
* `g++` 4.7 or `clang++` 3.x
20-
* `python` 2.6 or later (but not 3.x)
21-
* GNU `make` 3.81 or later
22-
* `curl`
23-
* `git`
18+
* `g++` 4.7 or `clang++` 3.x
19+
* `python` 2.6 or later (but not 3.x)
20+
* GNU `make` 3.81 or later
21+
* `curl`
22+
* `git`
2423

2524
2. Clone the [source] with `git`:
2625

27-
```sh
28-
$ git clone https://github.com/rust-lang/rust.git
29-
$ cd rust
30-
```
26+
$ git clone https://github.com/rust-lang/rust.git
27+
$ cd rust
3128

3229
[source]: https://github.com/rust-lang/rust
3330

3431
3. Build and install:
3532

36-
```sh
37-
$ ./configure
38-
$ make && make install
39-
```
33+
$ ./configure
34+
$ make && make install
4035

41-
> ***Note:*** You may need to use `sudo make install` if you do not
42-
> normally have permission to modify the destination directory. The
43-
> install locations can be adjusted by passing a `--prefix` argument
44-
> to `configure`. Various other options are also supported – pass
45-
> `--help` for more information on them.
36+
> ***Note:*** You may need to use `sudo make install` if you do not normally have
37+
> permission to modify the destination directory. The install locations can
38+
> be adjusted by passing a `--prefix` argument to `configure`. Various other
39+
> options are also supported, pass `--help` for more information on them.
4640
4741
When complete, `make install` will place several programs into
4842
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
@@ -53,30 +47,27 @@ Read ["Installing Rust"] from [The Book].
5347

5448
### Building on Windows
5549

56-
[MSYS2](http://msys2.github.io/) can be used to easily build Rust on Windows:
50+
To easily build on windows we can use [MSYS2](http://msys2.github.io/):
5751

5852
1. Grab the latest MSYS2 installer and go through the installer.
53+
2. Now from the MSYS2 terminal we want to install the mingw64 toolchain and the other
54+
tools we need.
5955

60-
2. From the MSYS2 terminal, install the `mingw64` toolchain and other required
61-
tools.
62-
63-
```sh
64-
# Choose one based on platform:
65-
$ pacman -S mingw-w64-i686-toolchain
66-
$ pacman -S mingw-w64-x86_64-toolchain
67-
68-
$ pacman -S base-devel
69-
```
56+
```bash
57+
# choose one based on platform
58+
$ pacman -S mingw-w64-i686-toolchain
59+
$ pacman -S mingw-w64-x86_64-toolchain
7060

71-
3. Run `mingw32_shell.bat` or `mingw64_shell.bat` from wherever you installed
72-
MYSY2 (i.e. `C:\msys`), depending on whether you want 32-bit or 64-bit Rust.
61+
$ pacman -S base-devel
62+
```
7363

74-
4. Navigate to Rust's source code, configure and build it:
64+
3. With that now start `mingw32_shell.bat` or `mingw64_shell.bat`
65+
from where you installed MSYS2 (i.e. `C:\msys`). Which one you
66+
choose depends on if you want 32 or 64 bit Rust.
67+
4. From there just navigate to where you have Rust's source code, configure and build it:
7568

76-
```sh
77-
$ ./configure
78-
$ make && make install
79-
```
69+
$ ./configure
70+
$ make && make install
8071

8172
## Notes
8273

@@ -101,15 +92,15 @@ There is more advice about hacking on Rust in [CONTRIBUTING.md].
10192

10293
[CONTRIBUTING.md]: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md
10394

104-
## Getting Help
95+
## Getting help
10596

10697
The Rust community congregates in a few places:
10798

108-
* [Stack Overflow] - Direct questions about using the language.
109-
* [users.rust-lang.org] - General discussion and broader questions.
99+
* [StackOverflow] - Direct questions about using the language here.
100+
* [users.rust-lang.org] - General discussion, broader questions.
110101
* [/r/rust] - News and general discussion.
111102

112-
[Stack Overflow]: http://stackoverflow.com/questions/tagged/rust
103+
[StackOverflow]: http://stackoverflow.com/questions/tagged/rust
113104
[/r/rust]: http://reddit.com/r/rust
114105
[users.rust-lang.org]: http://users.rust-lang.org/
115106

@@ -120,7 +111,7 @@ To contribute to Rust, please see [CONTRIBUTING.md](CONTRIBUTING.md).
120111
Rust has an [IRC] culture and most real-time collaboration happens in a
121112
variety of channels on Mozilla's IRC network, irc.mozilla.org. The
122113
most popular channel is [#rust], a venue for general discussion about
123-
Rust, and a good place to ask for help.
114+
Rust, and a good place to ask for help,
124115

125116
[IRC]: https://en.wikipedia.org/wiki/Internet_Relay_Chat
126117
[#rust]: irc://irc.mozilla.org/rust

branches/try/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ then
875875
| cut -d ' ' -f 2)
876876

877877
case $CFG_CLANG_VERSION in
878-
(3.2* | 3.3* | 3.4* | 3.5* | 3.6*)
878+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* | 3.5* | 3.6*)
879879
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
880880
if [ -z "$CC" ]
881881
then

branches/try/mk/crates.mk

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ TARGET_CRATES := libc std flate arena term \
5454
log graphviz core rbml alloc \
5555
unicode rustc_bitflags
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57-
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint
57+
rustc_trans rustc_back rustc_llvm rustc_privacy
5858
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
5959
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6060
TOOLS := compiletest rustdoc rustc rustbook
@@ -70,21 +70,20 @@ DEPS_graphviz := std
7070
DEPS_syntax := std term serialize log fmt_macros arena libc
7171
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
7272
rustc_typeck rustc_resolve log syntax serialize rustc_llvm \
73-
rustc_trans rustc_privacy rustc_lint
73+
rustc_trans rustc_privacy
7474

7575
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
7676
log syntax serialize rustc_llvm
7777
DEPS_rustc_typeck := rustc syntax
7878
DEPS_rustc_borrowck := rustc log graphviz syntax
7979
DEPS_rustc_resolve := rustc log syntax
8080
DEPS_rustc_privacy := rustc log syntax
81-
DEPS_rustc_lint := rustc log syntax
8281
DEPS_rustc := syntax flate arena serialize getopts rbml \
8382
log graphviz rustc_llvm rustc_back
8483
DEPS_rustc_llvm := native:rustllvm libc std
8584
DEPS_rustc_back := std syntax rustc_llvm flate log libc
8685
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
87-
test rustc_lint
86+
test
8887
DEPS_rustc_bitflags := core
8988
DEPS_flate := std native:miniz
9089
DEPS_arena := std
@@ -129,13 +128,11 @@ DOC_CRATES := $(filter-out rustc, \
129128
$(filter-out rustc_resolve, \
130129
$(filter-out rustc_driver, \
131130
$(filter-out rustc_privacy, \
132-
$(filter-out rustc_lint, \
133131
$(filter-out log, \
134132
$(filter-out getopts, \
135-
$(filter-out syntax, $(CRATES))))))))))))
133+
$(filter-out syntax, $(CRATES)))))))))))
136134
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
137-
rustc_typeck rustc_driver syntax rustc_privacy \
138-
rustc_lint
135+
rustc_typeck rustc_driver syntax rustc_privacy
139136

140137
# This macro creates some simple definitions for each crate being built, just
141138
# some munging of all of the parameters above.

branches/try/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(eval $(call RUST_CRATE,coretest))
2121

2222
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) coretest
2323
TEST_DOC_CRATES = $(DOC_CRATES)
24-
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans rustc_lint,\
24+
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans,\
2525
$(HOST_CRATES))
2626
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
2727

branches/try/src/compiletest/compiletest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#![feature(std_misc)]
2121
#![feature(test)]
2222
#![feature(unicode)]
23+
#![feature(env)]
2324
#![feature(core)]
2425

2526
#![deny(warnings)]
@@ -267,7 +268,7 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
267268
logfile: config.logfile.clone(),
268269
run_tests: true,
269270
run_benchmarks: true,
270-
nocapture: env::var("RUST_TEST_NOCAPTURE").is_ok(),
271+
nocapture: false,
271272
color: test::AutoColor,
272273
}
273274
}

branches/try/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn load_errors(testfile: &Path) -> Vec<ExpectedError> {
5858
fn parse_expected(last_nonfollow_error: Option<uint>,
5959
line_num: uint,
6060
line: &str) -> Option<(WhichLine, ExpectedError)> {
61-
let start = match line.find("//~") { Some(i) => i, None => return None };
61+
let start = match line.find_str("//~") { Some(i) => i, None => return None };
6262
let (follow, adjusts) = if line.char_at(start + 3) == '|' {
6363
(true, 0)
6464
} else {

branches/try/src/compiletest/header.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::env;
12-
1311
use common::Config;
1412
use common;
1513
use util;
@@ -127,16 +125,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
127125
true
128126
});
129127

130-
for key in vec!["RUST_TEST_NOCAPTURE", "RUST_TEST_TASKS"] {
131-
match env::var(key) {
132-
Ok(val) =>
133-
if exec_env.iter().find(|&&(ref x, _)| *x == key.to_string()).is_none() {
134-
exec_env.push((key.to_string(), val))
135-
},
136-
Err(..) => {}
137-
}
138-
}
139-
140128
TestProps {
141129
error_patterns: error_patterns,
142130
compile_flags: compile_flags,
@@ -342,7 +330,7 @@ fn parse_name_directive(line: &str, directive: &str) -> bool {
342330
pub fn parse_name_value_directive(line: &str, directive: &str)
343331
-> Option<String> {
344332
let keycolon = format!("{}:", directive);
345-
match line.find(&keycolon) {
333+
match line.find_str(&keycolon) {
346334
Some(colon) => {
347335
let value = line[(colon + keycolon.len()) .. line.len()].to_string();
348336
debug!("{}: {}", directive, value);

branches/try/src/compiletest/runtest.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn run_cfail_test(config: &Config, props: &TestProps, testfile: &Path) {
8989
let proc_res = compile_test(config, props, testfile);
9090

9191
if proc_res.status.success() {
92-
fatal_proc_rec(&format!("{} test compiled successfully!", config.mode)[..],
92+
fatal_proc_rec(&format!("{} test compiled successfully!", config.mode)[],
9393
&proc_res);
9494
}
9595

@@ -398,7 +398,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
398398
for line in breakpoint_lines.iter() {
399399
script_str.push_str(&format!("break {:?}:{}\n",
400400
testfile.filename_display(),
401-
*line)[..]);
401+
*line)[]);
402402
}
403403
script_str.push_str(&cmds);
404404
script_str.push_str("quit\n");
@@ -553,17 +553,17 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
553553
script_str.push_str("set print pretty off\n");
554554

555555
// Add the pretty printer directory to GDB's source-file search path
556-
script_str.push_str(&format!("directory {}\n", rust_pp_module_abs_path)[..]);
556+
script_str.push_str(&format!("directory {}\n", rust_pp_module_abs_path)[]);
557557

558558
// Load the target executable
559559
script_str.push_str(&format!("file {}\n",
560-
exe_file.as_str().unwrap().replace("\\", "\\\\"))[..]);
560+
exe_file.as_str().unwrap().replace("\\", "\\\\"))[]);
561561

562562
// Add line breakpoints
563563
for line in &breakpoint_lines {
564564
script_str.push_str(&format!("break '{}':{}\n",
565565
testfile.filename_display(),
566-
*line)[..]);
566+
*line)[]);
567567
}
568568

569569
script_str.push_str(&cmds);
@@ -689,7 +689,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
689689
.unwrap()
690690
.to_string();
691691

692-
script_str.push_str(&format!("command script import {}\n", &rust_pp_module_abs_path[..])[..]);
692+
script_str.push_str(&format!("command script import {}\n", &rust_pp_module_abs_path[..])[]);
693693
script_str.push_str("type summary add --no-value ");
694694
script_str.push_str("--python-function lldb_rust_formatters.print_val ");
695695
script_str.push_str("-x \".*\" --category Rust\n");
@@ -847,7 +847,7 @@ fn check_debugger_output(debugger_run_result: &ProcRes, check_lines: &[String])
847847
check_lines.iter().map(|s| {
848848
s
849849
.trim()
850-
.split("[...]")
850+
.split_str("[...]")
851851
.map(|x| x.to_string())
852852
.collect()
853853
}).collect();
@@ -866,7 +866,7 @@ fn check_debugger_output(debugger_run_result: &ProcRes, check_lines: &[String])
866866
None
867867
}
868868
} else {
869-
rest.find(frag)
869+
rest.find_str(frag)
870870
};
871871
match found {
872872
None => {

branches/try/src/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ There are questions that are asked quite often, and so we've made FAQs for them:
6868
* [Language Design FAQ](complement-design-faq.html)
6969
* [Language FAQ](complement-lang-faq.html)
7070
* [Project FAQ](complement-project-faq.html)
71-
* [How to submit a bug report](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports)
71+
* [How to submit a bug report](complement-bugreport.html)
7272

7373
# The standard library
7474

0 commit comments

Comments
 (0)