Skip to content

Commit dcc573f

Browse files
committed
---
yaml --- r: 154495 b: refs/heads/try2 c: e918733 h: refs/heads/master i: 154493: 2be214d 154491: 87b73ff 154487: 5e90627 154479: 155d9ac 154463: e0e7a43 154431: 668df78 154367: c4463fa v: v3
1 parent ff372c5 commit dcc573f

File tree

448 files changed

+4399
-10933
lines changed

Some content is hidden

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

448 files changed

+4399
-10933
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 4dfdc697e9ec79ed9f8b79246a4042bed58c201e
8+
refs/heads/try2: e918733e5fc3bdb6f5cbfb77aa9045a26028e20e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/compiletest/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ fn parse_exec_env(line: &str) -> Option<(String, String)> {
233233
parse_name_value_directive(line, "exec-env").map(|nv| {
234234
// nv is either FOO or FOO=BAR
235235
let mut strs: Vec<String> = nv.as_slice()
236-
.splitn(1, '=')
236+
.splitn('=', 1)
237237
.map(|s| s.to_string())
238238
.collect();
239239

branches/try2/src/compiletest/runtest.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ use header::TestProps;
1616
use header;
1717
use procsrv;
1818
use util::logv;
19-
#[cfg(target_os = "windows")]
20-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
19+
#[cfg(target_os = "win32")]
2120
use util;
2221

2322
use std::io::File;
@@ -31,7 +30,6 @@ use std::os;
3130
use std::str;
3231
use std::string::String;
3332
use std::task;
34-
use std::time::Duration;
3533
use test::MetricMap;
3634

3735
pub fn run(config: Config, testfile: String) {
@@ -402,7 +400,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
402400
.expect(format!("failed to exec `{}`", config.adb_path).as_slice());
403401
loop {
404402
//waiting 1 second for gdbserver start
405-
timer::sleep(Duration::milliseconds(1000));
403+
timer::sleep(1000);
406404
let result = task::try(proc() {
407405
tcp::TcpStream::connect("127.0.0.1", 5039).unwrap();
408406
});
@@ -818,8 +816,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
818816
format!("{}:{}:", testfile.display(), ee.line)
819817
}).collect::<Vec<String> >();
820818

821-
#[cfg(target_os = "windows")]
822-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
819+
#[cfg(target_os = "win32")]
823820
fn to_lower( s : &str ) -> String {
824821
let i = s.chars();
825822
let c : Vec<char> = i.map( |c| {
@@ -832,8 +829,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
832829
String::from_chars(c.as_slice())
833830
}
834831

835-
#[cfg(target_os = "windows")]
836-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
832+
#[cfg(target_os = "win32")]
837833
fn prefix_matches( line : &str, prefix : &str ) -> bool {
838834
to_lower(line).as_slice().starts_with(to_lower(prefix).as_slice())
839835
}
@@ -1250,16 +1246,14 @@ fn make_cmdline(_libpath: &str, prog: &str, args: &[String]) -> String {
12501246
format!("{} {}", prog, args.connect(" "))
12511247
}
12521248

1253-
#[cfg(target_os = "windows")]
1254-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
1249+
#[cfg(target_os = "win32")]
12551250
fn make_cmdline(libpath: &str, prog: &str, args: &[String]) -> String {
12561251
format!("{} {} {}", lib_path_cmd_prefix(libpath), prog, args.connect(" "))
12571252
}
12581253

12591254
// Build the LD_LIBRARY_PATH variable as it would be seen on the command line
12601255
// for diagnostic purposes
1261-
#[cfg(target_os = "windows")]
1262-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
1256+
#[cfg(target_os = "win32")]
12631257
fn lib_path_cmd_prefix(path: &str) -> String {
12641258
format!("{}=\"{}\"", util::lib_path_env_var(), util::make_new_path(path))
12651259
}

branches/try2/src/compiletest/util.rs

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

1111
use common::Config;
1212

13-
#[cfg(target_os = "windows")]
14-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
13+
#[cfg(target_os = "win32")]
1514
use std::os::getenv;
1615

1716
/// Conversion table from triple OS name to Rust SYSNAME
1817
static OS_TABLE: &'static [(&'static str, &'static str)] = &[
19-
("mingw32", "windows"),
20-
("win32", "windows"),
21-
("windows", "windows"),
18+
("mingw32", "win32"),
19+
("win32", "win32"),
2220
("darwin", "macos"),
2321
("android", "android"),
2422
("linux", "linux"),
@@ -35,8 +33,7 @@ pub fn get_os(triple: &str) -> &'static str {
3533
fail!("Cannot determine OS from triple");
3634
}
3735

38-
#[cfg(target_os = "windows")]
39-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
36+
#[cfg(target_os = "win32")]
4037
pub fn make_new_path(path: &str) -> String {
4138

4239
// Windows just uses PATH as the library search path, so we have to
@@ -49,12 +46,10 @@ pub fn make_new_path(path: &str) -> String {
4946
}
5047
}
5148

52-
#[cfg(target_os = "windows")]
53-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
49+
#[cfg(target_os = "win32")]
5450
pub fn lib_path_env_var() -> &'static str { "PATH" }
5551

56-
#[cfg(target_os = "windows")]
57-
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
52+
#[cfg(target_os = "win32")]
5853
pub fn path_div() -> &'static str { ";" }
5954

6055
pub fn logv(config: &Config, s: String) {

branches/try2/src/doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ for the 'std' and 'extra' libraries.
1919
To generate HTML documentation from one source file/crate, do something like:
2020

2121
~~~~
22-
rustdoc --output html-doc/ --output-format html ../src/libstd/path.rs
22+
rustdoc --output-dir html-doc/ --output-format html ../src/libstd/path.rs
2323
~~~~
2424

2525
(This, of course, requires a working build of the `rustdoc` tool.)

branches/try2/src/doc/complement-design-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% The Rust Design FAQ
22

3-
This document describes decisions that were arrived at after lengthy discussion and
3+
This document describes decisions were arrived at after lengthy discussion and
44
experimenting with alternatives. Please do not propose reversing them unless
55
you have a new, extremely compelling argument. Note that this document
66
specifically talks about the *language* and not any library or implementation.

branches/try2/src/doc/guide-ffi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ linking to, and in the second case `bar` is the type of native library that the
350350
compiler is linking to. There are currently three known types of native
351351
libraries:
352352
353-
* Dynamic - `#[link(name = "readline")]`
354-
* Static - `#[link(name = "my_build_dependency", kind = "static")]`
355-
* Frameworks - `#[link(name = "CoreFoundation", kind = "framework")]`
353+
* Dynamic - `#[link(name = "readline")]
354+
* Static - `#[link(name = "my_build_dependency", kind = "static")]
355+
* Frameworks - `#[link(name = "CoreFoundation", kind = "framework")]
356356
357357
Note that frameworks are only available on OSX targets.
358358

branches/try2/src/doc/guide-pointers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ let z = &x;
332332
Mutable ones, however, are not:
333333

334334
```{rust,ignore}
335-
let mut x = 5i;
335+
let x = 5i;
336336
let y = &mut x;
337337
let z = &mut x; // error: cannot borrow `x` as mutable more than once at a time
338338
```

branches/try2/src/doc/guide-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ itself, yet again implying that they are not defined in the standard library.
128128
The full complement of runtime features is defined by the [`Runtime`
129129
trait](std/rt/trait.Runtime.html) and the [`Task`
130130
struct](std/rt/task/struct.Task.html). A `Task` is constant among all runtime
131-
implementations, but each runtime has its own implementation of the
131+
implementations, but each runtime implements has its own implementation of the
132132
`Runtime` trait.
133133

134134
The local `Task` stores the runtime value inside of itself, and then ownership

branches/try2/src/doc/guide-tasks.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ closure in the new task.
8989
fn print_message() { println!("I am running in a different task!"); }
9090
spawn(print_message);
9191
92-
// Alternatively, use a `proc` expression instead of a named function.
92+
// Print something profound in a different task using a `proc` expression
9393
// The `proc` expression evaluates to an (unnamed) owned closure.
9494
// That closure will call `println!(...)` when the spawned task runs.
95+
9596
spawn(proc() println!("I am also running in a different task!") );
9697
~~~~
9798

@@ -351,14 +352,14 @@ fn main() {
351352

352353
The function `pnorm` performs a simple computation on the vector (it computes the sum of its items
353354
at the power given as argument and takes the inverse power of this value). The Arc on the vector is
354-
created by the line:
355+
created by the line
355356

356357
~~~
357358
# use std::rand;
358359
# use std::sync::Arc;
359360
# fn main() {
360361
# let numbers = Vec::from_fn(1000000, |_| rand::random::<f64>());
361-
let numbers_arc = Arc::new(numbers);
362+
let numbers_arc=Arc::new(numbers);
362363
# }
363364
~~~
364365

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ per-iteration speed of.
198198

199199
For benchmarks relating to processing/generating data, one can set the
200200
`bytes` field to the number of bytes consumed/produced in each
201-
iteration; this will be used to show the throughput of the benchmark.
201+
iteration; this will used to show the throughput of the benchmark.
202202
This must be the amount used in each iteration, *not* the total
203203
amount.
204204

branches/try2/src/doc/guide-unsafe.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ explicitly with, respectively, `value as *const T` and `value as *mut T`).
137137

138138
Going the opposite direction, from `*const` to a reference `&`, is not
139139
safe. A `&T` is always valid, and so, at a minimum, the raw pointer
140-
`*const T` has to point to a valid instance of type `T`. Furthermore,
140+
`*const T` has to be a valid to a valid instance of type `T`. Furthermore,
141141
the resulting pointer must satisfy the aliasing and mutability laws of
142142
references. The compiler assumes these properties are true for any
143143
references, no matter how they are created, and so any conversion from
@@ -446,7 +446,7 @@ possible in two ways: the `#[start]` attribute, or overriding the
446446
default shim for the C `main` function with your own.
447447

448448
The function marked `#[start]` is passed the command line parameters
449-
in the same format as C:
449+
in the same format as a C:
450450

451451
```
452452
#![no_std]
@@ -537,12 +537,11 @@ extern crate core;
537537
use core::prelude::*;
538538
539539
use core::mem;
540+
use core::raw::Slice;
540541
541542
#[no_mangle]
542543
pub extern fn dot_product(a: *const u32, a_len: u32,
543544
b: *const u32, b_len: u32) -> u32 {
544-
use core::raw::Slice;
545-
546545
// Convert the provided arrays into Rust slices.
547546
// The core::raw module guarantees that the Slice
548547
// structure has the same memory layout as a &[T]
@@ -593,7 +592,7 @@ standard library itself.
593592
# Interacting with the compiler internals
594593

595594
> **Note**: this section is specific to the `rustc` compiler; these
596-
> parts of the language may never be fully specified and so details may
595+
> parts of the language may never be full specified and so details may
597596
> differ wildly between implementations (and even versions of `rustc`
598597
> itself).
599598
>

0 commit comments

Comments
 (0)