Skip to content

Commit ffdfc35

Browse files
committed
---
yaml --- r: 178431 b: refs/heads/try c: 62b24c3 h: refs/heads/master i: 178429: 447a4ed 178427: b2b2b0e 178423: 687a8c0 178415: bf41233 178399: 904ee76 178367: c3ab0db 178303: fe6f0a3 178175: c39759e v: v3
1 parent 5659933 commit ffdfc35

File tree

639 files changed

+8971
-6451
lines changed

Some content is hidden

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

639 files changed

+8971
-6451
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: 336c8d2e9c6b276b162bdb3edd43706372e6eddd
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 474b324eda10440d6568ef872a7307d38e7de95b
5-
refs/heads/try: 82b0b0fcc70593ff13176795f1bc82c86c7c618f
5+
refs/heads/try: 62b24c3dd5a54a59a7912be78505ee79f3466d84
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Olivier Saut <[email protected]>
516516
Olle Jonsson <[email protected]>
517517
Or Brostovski <[email protected]>
518518
Oren Hazi <[email protected]>
519-
Orphée Lafond-Lummis <o@orftz.com>
519+
Orpheus Lummis <o@orpheuslummis.com>
520520
521521
Pablo Brasero <[email protected]>
522522
Palmer Cox <[email protected]>

branches/try/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ example, if it's 2014, and you change a Rust file that was created in
5050
# Coordination and communication
5151

5252
Get feedback from other developers on
53-
[discuss.rust-lang.org][discuss], and
53+
[internals.rust-lang.org][internals], and
5454
[#rust-internals][pound-rust-internals].
5555

5656
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57-
[discuss]: http://discuss.rust-lang.org
57+
[internals]: http://internals.rust-lang.org
5858

5959
For more details, please refer to
6060
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

branches/try/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ documentation.
3030

3131
To build from the [tarball] do:
3232

33-
$ curl -O https://static.rust-lang.org/dist/rust-nightly.tar.gz
34-
$ tar -xzf rust-nightly.tar.gz
35-
$ cd rust-nightly
33+
$ curl -O https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
34+
$ tar -xzf rustc-nightly-src.tar.gz
35+
$ cd rustc-nightly
3636

3737
Or to build from the [repo] do:
3838

@@ -80,7 +80,7 @@ $ pacman -S base-devel
8080
$ make && make install
8181

8282
[repo]: https://github.com/rust-lang/rust
83-
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
83+
[tarball]: https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
8484
[trpl]: http://doc.rust-lang.org/book/index.html
8585

8686
## Notes
@@ -112,11 +112,11 @@ The Rust community congregates in a few places:
112112

113113
* [StackOverflow] - Get help here.
114114
* [/r/rust] - General discussion.
115-
* [discuss.rust-lang.org] - For development of the Rust language itself.
115+
* [internals.rust-lang.org] - For development of the Rust language itself.
116116

117117
[StackOverflow]: http://stackoverflow.com/questions/tagged/rust
118118
[/r/rust]: http://reddit.com/r/rust
119-
[discuss.rust-lang.org]: http://discuss.rust-lang.org/
119+
[internals.rust-lang.org]: http://internals.rust-lang.org/
120120

121121
## License
122122

branches/try/mk/tests.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ tidy:
301301
| grep '^$(S)src/rust-installer' -v \
302302
| xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py
303303
$(Q) $(CFG_PYTHON) $(S)src/etc/errorck.py $(S)src/
304+
$(Q) $(CFG_PYTHON) $(S)src/etc/featureck.py $(S)src/
304305

305306

306307
endif

branches/try/src/compiletest/common.rs

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

1515
#[cfg(stage0)] // NOTE: remove impl after snapshot
16-
#[derive(Clone, PartialEq, Show)]
16+
#[derive(Clone, Copy, PartialEq, Show)]
1717
pub enum Mode {
1818
CompileFail,
1919
RunFail,
@@ -26,7 +26,7 @@ pub enum Mode {
2626
}
2727

2828
#[cfg(not(stage0))] // NOTE: remove cfg after snapshot
29-
#[derive(Clone, PartialEq, Debug)]
29+
#[derive(Clone, Copy, PartialEq, Debug)]
3030
pub enum Mode {
3131
CompileFail,
3232
RunFail,
@@ -38,9 +38,6 @@ pub enum Mode {
3838
Codegen
3939
}
4040

41-
42-
impl Copy for Mode {}
43-
4441
impl FromStr for Mode {
4542
fn from_str(s: &str) -> Option<Mode> {
4643
match s {

branches/try/src/compiletest/compiletest.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@
1313
#![feature(slicing_syntax, unboxed_closures)]
1414
#![feature(box_syntax)]
1515
#![feature(int_uint)]
16-
#![allow(unstable)]
16+
#![feature(test)]
17+
#![feature(rustc_private)]
18+
#![feature(std_misc)]
19+
#![feature(path)]
20+
#![feature(io)]
21+
#![feature(core)]
22+
#![feature(collections)]
23+
#![feature(os)]
24+
#![feature(unicode)]
1725

1826
#![deny(warnings)]
1927

@@ -24,8 +32,8 @@ extern crate getopts;
2432
extern crate log;
2533

2634
use std::os;
27-
use std::io;
28-
use std::io::fs;
35+
use std::old_io;
36+
use std::old_io::fs;
2937
use std::str::FromStr;
3038
use std::thunk::Thunk;
3139
use getopts::{optopt, optflag, reqopt};
@@ -237,7 +245,7 @@ pub fn run_tests(config: &Config) {
237245
// sadly osx needs some file descriptor limits raised for running tests in
238246
// parallel (especially when we have lots and lots of child processes).
239247
// For context, see #8904
240-
io::test::raise_fd_limit();
248+
old_io::test::raise_fd_limit();
241249
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
242250
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
243251
os::setenv("__COMPAT_LAYER", "RunAsInvoker");

branches/try/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010
use self::WhichLine::*;
1111

12-
use std::io::{BufferedReader, File};
12+
use std::old_io::{BufferedReader, File};
1313

1414
pub struct ExpectedError {
1515
pub line: uint,

branches/try/src/compiletest/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ pub fn is_test_ignored(config: &Config, testfile: &Path) -> bool {
223223
fn iter_header<F>(testfile: &Path, mut it: F) -> bool where
224224
F: FnMut(&str) -> bool,
225225
{
226-
use std::io::{BufferedReader, File};
226+
use std::old_io::{BufferedReader, File};
227227

228228
let mut rdr = BufferedReader::new(File::open(testfile).unwrap());
229229
for ln in rdr.lines() {

branches/try/src/compiletest/procsrv.rs

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

11-
use std::io::process::{ProcessExit, Command, Process, ProcessOutput};
11+
use std::old_io::process::{ProcessExit, Command, Process, ProcessOutput};
1212
use std::dynamic_lib::DynamicLibrary;
1313

1414
fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
@@ -47,7 +47,7 @@ pub fn run(lib_path: &str,
4747
match cmd.spawn() {
4848
Ok(mut process) => {
4949
for input in input.iter() {
50-
process.stdin.as_mut().unwrap().write(input.as_bytes()).unwrap();
50+
process.stdin.as_mut().unwrap().write_all(input.as_bytes()).unwrap();
5151
}
5252
let ProcessOutput { status, output, error } =
5353
process.wait_with_output().unwrap();
@@ -79,7 +79,7 @@ pub fn run_background(lib_path: &str,
7979
match cmd.spawn() {
8080
Ok(mut process) => {
8181
for input in input.iter() {
82-
process.stdin.as_mut().unwrap().write(input.as_bytes()).unwrap();
82+
process.stdin.as_mut().unwrap().write_all(input.as_bytes()).unwrap();
8383
}
8484

8585
Some(process)

branches/try/src/compiletest/runtest.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ use util;
2323

2424
#[cfg(target_os = "windows")]
2525
use std::ascii::AsciiExt;
26-
use std::io::File;
27-
use std::io::fs::PathExtensions;
28-
use std::io::fs;
29-
use std::io::net::tcp;
30-
use std::io::process::ProcessExit;
31-
use std::io::process;
32-
use std::io::timer;
33-
use std::io;
26+
use std::old_io::File;
27+
use std::old_io::fs::PathExtensions;
28+
use std::old_io::fs;
29+
use std::old_io::net::tcp;
30+
use std::old_io::process::ProcessExit;
31+
use std::old_io::process;
32+
use std::old_io::timer;
33+
use std::old_io;
3434
use std::os;
3535
use std::iter::repeat;
3636
use std::str;
@@ -619,7 +619,7 @@ fn find_rust_src_root(config: &Config) -> Option<Path> {
619619
}
620620

621621
fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path) {
622-
use std::io::process::{Command, ProcessOutput};
622+
use std::old_io::process::{Command, ProcessOutput};
623623

624624
if config.lldb_python_dir.is_none() {
625625
fatal("Can't run LLDB test because LLDB's python path is not set.");
@@ -764,7 +764,7 @@ struct DebuggerCommands {
764764

765765
fn parse_debugger_commands(file_path: &Path, debugger_prefix: &str)
766766
-> DebuggerCommands {
767-
use std::io::{BufferedReader, File};
767+
use std::old_io::{BufferedReader, File};
768768

769769
let command_directive = format!("{}-command", debugger_prefix);
770770
let check_directive = format!("{}-check", debugger_prefix);
@@ -1224,7 +1224,7 @@ fn compose_and_run_compiler(
12241224

12251225
fn ensure_dir(path: &Path) {
12261226
if path.is_dir() { return; }
1227-
fs::mkdir(path, io::USER_RWX).unwrap();
1227+
fs::mkdir(path, old_io::USER_RWX).unwrap();
12281228
}
12291229

12301230
fn compose_and_run(config: &Config, testfile: &Path,
@@ -1401,7 +1401,7 @@ fn dump_output(config: &Config, testfile: &Path, out: &str, err: &str) {
14011401
fn dump_output_file(config: &Config, testfile: &Path,
14021402
out: &str, extension: &str) {
14031403
let outfile = make_out_name(config, testfile, extension);
1404-
File::create(&outfile).write(out.as_bytes()).unwrap();
1404+
File::create(&outfile).write_all(out.as_bytes()).unwrap();
14051405
}
14061406

14071407
fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> Path {

branches/try/src/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ problem might reveal someone who has asked it before!
4141
There is an active [subreddit](http://reddit.com/r/rust) with lots of
4242
discussion about Rust.
4343

44-
There is also a [developer forum](http://discuss.rust-lang.org/), where the
44+
There is also a [developer forum](http://internals.rust-lang.org/), where the
4545
development of Rust itself is discussed.
4646

4747
# Specification

branches/try/src/doc/reference.md

Lines changed: 3 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,8 +1680,8 @@ specific type.
16801680
Implementations are defined with the keyword `impl`.
16811681

16821682
```
1683+
# #[derive(Copy)]
16831684
# struct Point {x: f64, y: f64};
1684-
# impl Copy for Point {}
16851685
# type Surface = i32;
16861686
# struct BoundingBox {x: f64, y: f64, width: f64, height: f64};
16871687
# trait Shape { fn draw(&self, Surface); fn bounding_box(&self) -> BoundingBox; }
@@ -2219,7 +2219,7 @@ For any lint check `C`:
22192219

22202220
The lint checks supported by the compiler can be found via `rustc -W help`,
22212221
along with their default settings. [Compiler
2222-
plugins](book/plugin.html#lint-plugins) can provide additional lint checks.
2222+
plugins](book/plugins.html#lint-plugins) can provide additional lint checks.
22232223

22242224
```{.ignore}
22252225
mod m1 {
@@ -2359,77 +2359,6 @@ Supported traits for `derive` are:
23592359
* `Show`, to format a value using the `{}` formatter.
23602360
* `Zero`, to create a zero instance of a numeric data type.
23612361

2362-
### Stability
2363-
2364-
One can indicate the stability of an API using the following attributes:
2365-
2366-
* `deprecated`: This item should no longer be used, e.g. it has been
2367-
replaced. No guarantee of backwards-compatibility.
2368-
* `experimental`: This item was only recently introduced or is
2369-
otherwise in a state of flux. It may change significantly, or even
2370-
be removed. No guarantee of backwards-compatibility.
2371-
* `unstable`: This item is still under development, but requires more
2372-
testing to be considered stable. No guarantee of backwards-compatibility.
2373-
* `stable`: This item is considered stable, and will not change
2374-
significantly. Guarantee of backwards-compatibility.
2375-
* `frozen`: This item is very stable, and is unlikely to
2376-
change. Guarantee of backwards-compatibility.
2377-
* `locked`: This item will never change unless a serious bug is
2378-
found. Guarantee of backwards-compatibility.
2379-
2380-
These levels are directly inspired by
2381-
[Node.js' "stability index"](http://nodejs.org/api/documentation.html).
2382-
2383-
Stability levels are inherited, so an item's stability attribute is the default
2384-
stability for everything nested underneath it.
2385-
2386-
There are lints for disallowing items marked with certain levels: `deprecated`,
2387-
`experimental` and `unstable`. For now, only `deprecated` warns by default, but
2388-
this will change once the standard library has been stabilized. Stability
2389-
levels are meant to be promises at the crate level, so these lints only apply
2390-
when referencing items from an _external_ crate, not to items defined within
2391-
the current crate. Items with no stability level are considered to be unstable
2392-
for the purposes of the lint. One can give an optional string that will be
2393-
displayed when the lint flags the use of an item.
2394-
2395-
For example, if we define one crate called `stability_levels`:
2396-
2397-
```{.ignore}
2398-
#[deprecated="replaced by `best`"]
2399-
pub fn bad() {
2400-
// delete everything
2401-
}
2402-
2403-
pub fn better() {
2404-
// delete fewer things
2405-
}
2406-
2407-
#[stable]
2408-
pub fn best() {
2409-
// delete nothing
2410-
}
2411-
```
2412-
2413-
then the lints will work as follows for a client crate:
2414-
2415-
```{.ignore}
2416-
#![warn(unstable)]
2417-
extern crate stability_levels;
2418-
use stability_levels::{bad, better, best};
2419-
2420-
fn main() {
2421-
bad(); // "warning: use of deprecated item: replaced by `best`"
2422-
2423-
better(); // "warning: use of unmarked item"
2424-
2425-
best(); // no warning
2426-
}
2427-
```
2428-
2429-
> **Note:** Currently these are only checked when applied to individual
2430-
> functions, structs, methods and enum variants, *not* to entire modules,
2431-
> traits, impls or enums themselves.
2432-
24332362
### Compiler Features
24342363

24352364
Certain aspects of Rust may be implemented in the compiler, but they're not
@@ -4234,4 +4163,4 @@ that have since been removed):
42344163
pattern syntax
42354164

42364165
[ffi]: book/ffi.html
4237-
[plugin]: book/plugin.html
4166+
[plugin]: book/plugins.html

0 commit comments

Comments
 (0)