Skip to content

Commit 2639e11

Browse files
committed
---
yaml --- r: 177151 b: refs/heads/tmp c: 4af4b37 h: refs/heads/master i: 177149: 1f54021 177147: 2490b98 177143: 4eea30f 177135: 557bf1c 177119: ac0c9ed 177087: 32ada8f 177023: 4185581 176895: 07e07c0 176639: 81fa5a8 176127: dca9038 v: v3
1 parent 390cfde commit 2639e11

File tree

404 files changed

+3305
-2810
lines changed

Some content is hidden

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

404 files changed

+3305
-2810
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 59c2de16dfc06506b15907543f0ab952bf07822c
37+
refs/heads/tmp: 4af4b377a0217b063f9da673ef2d0fbd083ac24d

branches/tmp/configure

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ need_ok() {
2828

2929
need_cmd() {
3030
if command -v $1 >/dev/null 2>&1
31-
then msg "found $1"
32-
else err "need $1"
31+
then msg "found program $1"
32+
else err "need program $1"
3333
fi
3434
}
3535

@@ -340,6 +340,7 @@ need_cmd date
340340
need_cmd tr
341341
need_cmd sed
342342
need_cmd file
343+
need_cmd make
343344

344345
msg "inspecting environment"
345346

branches/tmp/mk/main.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
34-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
3535
CFG_DISABLE_UNSTABLE_FEATURES=1
3636
endif
3737
ifeq ($(CFG_RELEASE_CHANNEL),nightly)

branches/tmp/src/compiletest/common.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ pub use self::Mode::*;
1212
use std::fmt;
1313
use std::str::FromStr;
1414

15-
#[derive(Clone, PartialEq, Debug)]
15+
#[cfg(stage0)] // NOTE: remove impl after snapshot
16+
#[derive(Clone, Copy, PartialEq, Show)]
1617
pub enum Mode {
1718
CompileFail,
1819
RunFail,
@@ -24,7 +25,18 @@ pub enum Mode {
2425
Codegen
2526
}
2627

27-
impl Copy for Mode {}
28+
#[cfg(not(stage0))] // NOTE: remove cfg after snapshot
29+
#[derive(Clone, Copy, PartialEq, Debug)]
30+
pub enum Mode {
31+
CompileFail,
32+
RunFail,
33+
RunPass,
34+
RunPassValgrind,
35+
Pretty,
36+
DebugInfoGdb,
37+
DebugInfoLldb,
38+
Codegen
39+
}
2840

2941
impl FromStr for Mode {
3042
fn from_str(s: &str) -> Option<Mode> {

branches/tmp/src/compiletest/compiletest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ extern crate getopts;
2424
extern crate log;
2525

2626
use std::os;
27-
use std::io;
28-
use std::io::fs;
27+
use std::old_io;
28+
use std::old_io::fs;
2929
use std::str::FromStr;
3030
use std::thunk::Thunk;
3131
use getopts::{optopt, optflag, reqopt};
@@ -237,7 +237,7 @@ pub fn run_tests(config: &Config) {
237237
// sadly osx needs some file descriptor limits raised for running tests in
238238
// parallel (especially when we have lots and lots of child processes).
239239
// For context, see #8904
240-
io::test::raise_fd_limit();
240+
old_io::test::raise_fd_limit();
241241
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
242242
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
243243
os::setenv("__COMPAT_LAYER", "RunAsInvoker");

branches/tmp/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/tmp/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/tmp/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/tmp/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/tmp/src/doc/reference.md

Lines changed: 5 additions & 140 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 {
@@ -2291,136 +2291,7 @@ The name `str_eq` has a special meaning to the Rust compiler, and the presence
22912291
of this definition means that it will use this definition when generating calls
22922292
to the string equality function.
22932293

2294-
A complete list of the built-in language items follows:
2295-
2296-
#### Built-in Traits
2297-
2298-
* `copy`
2299-
: Types that do not move ownership when used by-value.
2300-
* `drop`
2301-
: Have destructors.
2302-
* `send`
2303-
: Able to be sent across thread boundaries.
2304-
* `sized`
2305-
: Has a size known at compile time.
2306-
* `sync`
2307-
: Able to be safely shared between threads when aliased.
2308-
2309-
#### Operators
2310-
2311-
These language items are traits:
2312-
2313-
* `add`
2314-
: Elements can be added (for example, integers and floats).
2315-
* `sub`
2316-
: Elements can be subtracted.
2317-
* `mul`
2318-
: Elements can be multiplied.
2319-
* `div`
2320-
: Elements have a division operation.
2321-
* `rem`
2322-
: Elements have a remainder operation.
2323-
* `neg`
2324-
: Elements can be negated arithmetically.
2325-
* `not`
2326-
: Elements can be negated logically.
2327-
* `bitxor`
2328-
: Elements have an exclusive-or operation.
2329-
* `bitand`
2330-
: Elements have a bitwise `and` operation.
2331-
* `bitor`
2332-
: Elements have a bitwise `or` operation.
2333-
* `shl`
2334-
: Elements have a left shift operation.
2335-
* `shr`
2336-
: Elements have a right shift operation.
2337-
* `index`
2338-
: Elements can be indexed.
2339-
* `index_mut`
2340-
: ___Needs filling in___
2341-
* `eq`
2342-
: Elements can be compared for equality.
2343-
* `ord`
2344-
: Elements have a partial ordering.
2345-
* `deref`
2346-
: `*` can be applied, yielding a reference to another type.
2347-
* `deref_mut`
2348-
: `*` can be applied, yielding a mutable reference to another type.
2349-
2350-
These are functions:
2351-
2352-
* `fn`
2353-
: ___Needs filling in___
2354-
* `fn_mut`
2355-
: ___Needs filling in___
2356-
* `fn_once`
2357-
: ___Needs filling in___
2358-
* `str_eq`
2359-
: Compare two strings (`&str`) for equality.
2360-
* `strdup_uniq`
2361-
: Return a new unique string
2362-
containing a copy of the contents of a unique string.
2363-
2364-
#### Types
2365-
2366-
* `type_id`
2367-
: The type returned by the `type_id` intrinsic.
2368-
* `unsafe`
2369-
: A type whose contents can be mutated through an immutable reference.
2370-
2371-
#### Marker types
2372-
2373-
These types help drive the compiler's analysis
2374-
2375-
* `begin_unwind`
2376-
: ___Needs filling in___
2377-
* `no_copy_bound`
2378-
: This type does not implement "copy", even if eligible.
2379-
* `eh_personality`
2380-
: ___Needs filling in___
2381-
* `exchange_free`
2382-
: Free memory that was allocated on the exchange heap.
2383-
* `exchange_malloc`
2384-
: Allocate memory on the exchange heap.
2385-
* `closure_exchange_malloc`
2386-
: ___Needs filling in___
2387-
* `panic`
2388-
: Abort the program with an error.
2389-
* `fail_bounds_check`
2390-
: Abort the program with a bounds check error.
2391-
* `free`
2392-
: Free memory that was allocated on the managed heap.
2393-
* `gc`
2394-
: ___Needs filling in___
2395-
* `exchange_heap`
2396-
: ___Needs filling in___
2397-
* `iterator`
2398-
: ___Needs filling in___
2399-
* `contravariant_lifetime`
2400-
: The lifetime parameter should be considered contravariant.
2401-
* `covariant_lifetime`
2402-
: The lifetime parameter should be considered covariant.
2403-
* `invariant_lifetime`
2404-
: The lifetime parameter should be considered invariant.
2405-
* `malloc`
2406-
: Allocate memory on the managed heap.
2407-
* `owned_box`
2408-
: ___Needs filling in___
2409-
* `stack_exhausted`
2410-
: ___Needs filling in___
2411-
* `start`
2412-
: ___Needs filling in___
2413-
* `contravariant_type`
2414-
: The type parameter should be considered contravariant.
2415-
* `covariant_type`
2416-
: The type parameter should be considered covariant.
2417-
* `invariant_type`
2418-
: The type parameter should be considered invariant.
2419-
* `ty_desc`
2420-
: ___Needs filling in___
2421-
2422-
> **Note:** This list is likely to become out of date. We should auto-generate
2423-
> it from `librustc/middle/lang_items.rs`.
2294+
A complete list of the built-in language items will be added in the future.
24242295

24252296
### Inline attributes
24262297

@@ -2618,10 +2489,6 @@ The currently implemented features of the reference compiler are:
26182489
for now until the specification of identifiers is fully
26192490
fleshed out.
26202491

2621-
* `once_fns` - Onceness guarantees a closure is only executed once. Defining a
2622-
closure as `once` is unlikely to be supported going forward. So
2623-
they are hidden behind this feature until they are to be removed.
2624-
26252492
* `plugin` - Usage of [compiler plugins][plugin] for custom lints or syntax extensions.
26262493
These depend on compiler internals and are subject to change.
26272494

@@ -2652,9 +2519,7 @@ The currently implemented features of the reference compiler are:
26522519
declare a `static` as being unique per-thread leveraging
26532520
LLVM's implementation which works in concert with the kernel
26542521
loader and dynamic linker. This is not necessarily available
2655-
on all platforms, and usage of it is discouraged (rust
2656-
focuses more on thread-local data instead of thread-local
2657-
data).
2522+
on all platforms, and usage of it is discouraged.
26582523

26592524
* `trace_macros` - Allows use of the `trace_macros` macro, which is a nasty
26602525
hack that will certainly be removed.
@@ -4369,4 +4234,4 @@ that have since been removed):
43694234
pattern syntax
43704235

43714236
[ffi]: book/ffi.html
4372-
[plugin]: book/plugin.html
4237+
[plugin]: book/plugins.html

0 commit comments

Comments
 (0)