Skip to content

Commit d5b125a

Browse files
committed
---
yaml --- r: 273105 b: refs/heads/beta c: 74b886a h: refs/heads/master i: 273103: 0ce5b6e
1 parent e541afb commit d5b125a

File tree

161 files changed

+1667
-3108
lines changed

Some content is hidden

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

161 files changed

+1667
-3108
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 534bd19d25fd2211140d12540116eafd96aacc09
26+
refs/heads/beta: 74b886ab14d48c1f043dde0102aeff365c2f991f
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/mk/dist.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ PKG_FILES := \
5454
doc \
5555
driver \
5656
etc \
57-
error_index_generator \
5857
$(foreach crate,$(CRATES),lib$(crate)) \
5958
libcollectionstest \
6059
libcoretest \
@@ -65,7 +64,7 @@ PKG_FILES := \
6564
rustc \
6665
snapshots.txt \
6766
rust-installer \
68-
rustbook \
67+
tools \
6968
test) \
7069
$(PKG_GITMODULES) \
7170
$(filter-out config.stamp, \

branches/beta/src/compiletest/compiletest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![crate_type = "bin"]
1212

1313
#![feature(box_syntax)]
14-
#![feature(dynamic_lib)]
1514
#![feature(libc)]
1615
#![feature(rustc_private)]
1716
#![feature(str_char)]

branches/beta/src/compiletest/errors.rs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::io::prelude::*;
1515
use std::path::Path;
1616

1717
pub struct ExpectedError {
18-
pub line: usize,
18+
pub line_num: usize,
1919
pub kind: String,
2020
pub msg: String,
2121
}
@@ -53,15 +53,15 @@ pub fn load_errors(testfile: &Path, cfg: Option<&str>) -> Vec<ExpectedError> {
5353

5454
rdr.lines()
5555
.enumerate()
56-
.filter_map(|(line_no, ln)| {
56+
.filter_map(|(line_num, line)| {
5757
parse_expected(last_nonfollow_error,
58-
line_no + 1,
59-
&ln.unwrap(),
58+
line_num + 1,
59+
&line.unwrap(),
6060
&tag)
6161
.map(|(which, error)| {
6262
match which {
6363
FollowPrevious(_) => {}
64-
_ => last_nonfollow_error = Some(error.line),
64+
_ => last_nonfollow_error = Some(error.line_num),
6565
}
6666
error
6767
})
@@ -91,23 +91,21 @@ fn parse_expected(last_nonfollow_error: Option<usize>,
9191
.skip_while(|c| !c.is_whitespace())
9292
.collect::<String>().trim().to_owned();
9393

94-
let (which, line) = if follow {
94+
let (which, line_num) = if follow {
9595
assert!(adjusts == 0, "use either //~| or //~^, not both.");
96-
let line = last_nonfollow_error.unwrap_or_else(|| {
97-
panic!("encountered //~| without preceding //~^ line.")
98-
});
99-
(FollowPrevious(line), line)
96+
let line_num = last_nonfollow_error.expect("encountered //~| without \
97+
preceding //~^ line.");
98+
(FollowPrevious(line_num), line_num)
10099
} else {
101100
let which =
102101
if adjusts > 0 { AdjustBackward(adjusts) } else { ThisLine };
103-
let line = line_num - adjusts;
104-
(which, line)
102+
let line_num = line_num - adjusts;
103+
(which, line_num)
105104
};
106105

107106
debug!("line={} tag={:?} which={:?} kind={:?} msg={:?}",
108107
line_num, tag, which, kind, msg);
109-
110-
Some((which, ExpectedError { line: line,
108+
Some((which, ExpectedError { line_num: line_num,
111109
kind: kind,
112110
msg: msg, }))
113111
}

branches/beta/src/compiletest/procsrv.rs

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

11-
#![allow(deprecated)]
12-
13-
use std::dynamic_lib::DynamicLibrary;
11+
use std::env;
12+
use std::ffi::OsString;
1413
use std::io::prelude::*;
1514
use std::path::PathBuf;
1615
use std::process::{ExitStatus, Command, Child, Output, Stdio};
1716

1817
fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
1918
// Need to be sure to put both the lib_path and the aux path in the dylib
2019
// search path for the child.
21-
let mut path = DynamicLibrary::search_path();
20+
let var = if cfg!(windows) {
21+
"PATH"
22+
} else if cfg!(target_os = "macos") {
23+
"DYLD_LIBRARY_PATH"
24+
} else {
25+
"LD_LIBRARY_PATH"
26+
};
27+
let mut path = env::split_paths(&env::var_os(var).unwrap_or(OsString::new()))
28+
.collect::<Vec<_>>();
2229
if let Some(p) = aux_path {
2330
path.insert(0, PathBuf::from(p))
2431
}
2532
path.insert(0, PathBuf::from(lib_path));
2633

2734
// Add the new dylib search path var
28-
let var = DynamicLibrary::envvar();
29-
let newpath = DynamicLibrary::create_path(&path);
35+
let newpath = env::join_paths(&path).unwrap();
3036
cmd.env(var, newpath);
3137
}
3238

branches/beta/src/compiletest/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ fn check_expected_errors(revision: Option<&str>,
10041004
}
10051005

10061006
let prefixes = expected_errors.iter().map(|ee| {
1007-
let expected = format!("{}:{}:", testpaths.file.display(), ee.line);
1007+
let expected = format!("{}:{}:", testpaths.file.display(), ee.line_num);
10081008
// On windows just translate all '\' path separators to '/'
10091009
expected.replace(r"\", "/")
10101010
}).collect::<Vec<String>>();
@@ -1076,7 +1076,7 @@ fn check_expected_errors(revision: Option<&str>,
10761076
if !flag {
10771077
let ee = &expected_errors[i];
10781078
error(revision, &format!("expected {} on line {} not found: {}",
1079-
ee.kind, ee.line, ee.msg));
1079+
ee.kind, ee.line_num, ee.msg));
10801080
not_found += 1;
10811081
}
10821082
}

branches/beta/src/doc/book/getting-started.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,7 @@ This will download a script, and start the installation. If it all goes well,
119119
you’ll see this appear:
120120

121121
```text
122-
Welcome to Rust.
123-
124-
This script will download the Rust compiler and its package manager, Cargo, and
125-
install them to /usr/local. You may install elsewhere by running this script
126-
with the --prefix=<path> option.
127-
128-
The installer will run under ‘sudo’ and may ask you for your password. If you do
129-
not want the script to run ‘sudo’ then pass it the --disable-sudo flag.
130-
131-
You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh,
132-
or by running this script again with the --uninstall flag.
133-
134-
Continue? (y/N)
122+
Rust is ready to roll.
135123
```
136124

137125
From here, press `y` for ‘yes’, and then follow the rest of the prompts.
@@ -513,7 +501,7 @@ Cargo checks to see if any of your project’s files have been modified, and onl
513501
rebuilds your project if they’ve changed since the last time you built it.
514502

515503
With simple projects, Cargo doesn't bring a whole lot over just using `rustc`,
516-
but it will become useful in future. This is especially true when you start
504+
but it will become useful in the future. This is especially true when you start
517505
using crates; these are synonymous with a ‘library’ or ‘package’ in other
518506
programming languages. For complex projects composed of multiple crates, it’s
519507
much easier to let Cargo coordinate the build. Using Cargo, you can run `cargo

branches/beta/src/doc/book/if.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Rust’s take on `if` is not particularly complex, but it’s much more like the
44
`if` you’ll find in a dynamically typed language than in a more traditional
55
systems language. So let’s talk about it, to make sure you grasp the nuances.
66

7-
`if` is a specific form of a more general concept, the ‘branch’. The name comes
7+
`if` is a specific form of a more general concept, the ‘branch’, whose name comes
88
from a branch in a tree: a decision point, where depending on a choice,
99
multiple paths can be taken.
1010

branches/beta/src/doc/book/strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let s = "foo\
4444
assert_eq!("foobar", s);
4545
```
4646

47-
Rust has more than only `&str`s though. A `String`, is a heap-allocated string.
47+
Rust has more than only `&str`s though. A `String` is a heap-allocated string.
4848
This string is growable, and is also guaranteed to be UTF-8. `String`s are
4949
commonly created by converting from a string slice using the `to_string`
5050
method.
@@ -89,7 +89,7 @@ Viewing a `String` as a `&str` is cheap, but converting the `&str` to a
8989

9090
## Indexing
9191

92-
Because strings are valid UTF-8, strings do not support indexing:
92+
Because strings are valid UTF-8, they do not support indexing:
9393

9494
```rust,ignore
9595
let s = "hello";

branches/beta/src/etc/platform-intrinsics/x86/avx.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,69 @@
88
"ret": "f(32-64)",
99
"args": ["0", "0"]
1010
},
11+
{
12+
"intrinsic": "256_broadcast_{0.data_type}",
13+
"width": [256],
14+
"llvm": "vbroadcastf128.{0.data_type}.256",
15+
"ret": "f(32-64)",
16+
"args": ["s8SPc"]
17+
},
18+
{
19+
"intrinsic": "256_cvtepi32_pd",
20+
"width": [256],
21+
"llvm": "cvtdq2.pd.256",
22+
"ret": "f64",
23+
"args": ["s32h"]
24+
},
25+
{
26+
"intrinsic": "256_cvtepi32_ps",
27+
"width": [256],
28+
"llvm": "cvtdq2.ps.256",
29+
"ret": "f32",
30+
"args": ["s32"]
31+
},
32+
{
33+
"intrinsic": "256_cvtpd_epi32",
34+
"width": [256],
35+
"llvm": "cvt.pd2dq.256",
36+
"ret": "s32h",
37+
"args": ["f64"]
38+
},
39+
{
40+
"intrinsic": "256_cvtpd_ps",
41+
"width": [256],
42+
"llvm": "cvt.pd2.ps.256",
43+
"ret": "f32h",
44+
"args": ["f64"]
45+
},
46+
{
47+
"intrinsic": "256_cvtps_epi32",
48+
"width": [256],
49+
"llvm": "cvt.ps2dq.256",
50+
"ret": "s32",
51+
"args": ["f32"]
52+
},
53+
{
54+
"intrinsic": "256_cvtps_pd",
55+
"width": [256],
56+
"llvm": "cvt.ps2.pd.256",
57+
"ret": "f64",
58+
"args": ["f32h"]
59+
},
60+
{
61+
"intrinsic": "256_cvttpd_epi32",
62+
"width": [256],
63+
"llvm": "cvtt.pd2dq.256",
64+
"ret": "s32h",
65+
"args": ["f64"]
66+
},
67+
{
68+
"intrinsic": "256_cvttps_epi32",
69+
"width": [256],
70+
"llvm": "cvtt.ps2dq.256",
71+
"ret": "s32",
72+
"args": ["f32"]
73+
},
1174
{
1275
"intrinsic": "256_dp_ps",
1376
"width": [256],

branches/beta/src/liballoc/boxed.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,14 +525,14 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {}
525525
/// }
526526
/// ```
527527
#[rustc_paren_sugar]
528-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "0")]
528+
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
529529
pub trait FnBox<A> {
530530
type Output;
531531

532532
fn call_box(self: Box<Self>, args: A) -> Self::Output;
533533
}
534534

535-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "0")]
535+
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
536536
impl<A, F> FnBox<A> for F where F: FnOnce<A>
537537
{
538538
type Output = F::Output;
@@ -542,7 +542,7 @@ impl<A, F> FnBox<A> for F where F: FnOnce<A>
542542
}
543543
}
544544

545-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "0")]
545+
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
546546
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
547547
type Output = R;
548548

@@ -551,7 +551,7 @@ impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
551551
}
552552
}
553553

554-
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "0")]
554+
#[unstable(feature = "fnbox", reason = "Newly introduced", issue = "28796")]
555555
impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + Send + 'a> {
556556
type Output = R;
557557

0 commit comments

Comments
 (0)