Skip to content

Commit 4682017

Browse files
committed
---
yaml --- r: 128985 b: refs/heads/try c: c47dfbb h: refs/heads/master i: 128983: 65731b8 v: v3
1 parent 952fd17 commit 4682017

File tree

434 files changed

+4403
-10407
lines changed

Some content is hidden

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

434 files changed

+4403
-10407
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: 07d86b46a949a94223da714e35b343243e4ecce4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a86d9ad15e339ab343a12513f9c90556f677b9ca
5-
refs/heads/try: 5305f9b89419b2b31e00fc69bf9cc90469cbbc41
5+
refs/heads/try: c47dfbb16a155053d114e005d702cf76c84d45eb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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/try/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/try/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/try/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/try/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/try/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/try/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/try/src/doc/guide-unsafe.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)