Skip to content

Commit d677342

Browse files
committed
---
yaml --- r: 209527 b: refs/heads/try c: 53b7a06 h: refs/heads/master i: 209525: ed3fed8 209523: 68b9180 209519: 31d9b21 v: v3
1 parent a28c0cf commit d677342

File tree

463 files changed

+28794
-5203
lines changed

Some content is hidden

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

463 files changed

+28794
-5203
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: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 373463615a5841a7041ea1c937d0b00872206971
5+
refs/heads/try: 53b7a06fafd00627d721d168bc993152a0f265c8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/configure

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,13 @@ valopt_core() {
192192
then
193193
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
194194
local V="CFG_${UOP}"
195-
local V_PROVIDED="${V}_PROVIDED"
196195
eval $V="$DEFAULT"
197196
for arg in $CFG_CONFIGURE_ARGS
198197
do
199198
if echo "$arg" | grep -q -- "--$OP="
200199
then
201200
val=$(echo "$arg" | cut -f2 -d=)
202201
eval $V=$val
203-
eval $V_PROVIDED=1
204202
fi
205203
done
206204
if [ "$SAVE" = "save" ]
@@ -249,10 +247,8 @@ opt_core() {
249247
if [ $DEFAULT -eq 0 ]
250248
then
251249
FLAG="enable"
252-
DEFAULT_FLAG="disable"
253250
else
254251
FLAG="disable"
255-
DEFAULT_FLAG="enable"
256252
DOC="don't $DOC"
257253
fi
258254

@@ -265,19 +261,11 @@ opt_core() {
265261
OP=$(echo $OP | tr 'a-z-' 'A-Z_')
266262
FLAG=$(echo $FLAG | tr 'a-z' 'A-Z')
267263
local V="CFG_${FLAG}_${OP}"
268-
local V_PROVIDED="CFG_${FLAG}_${OP}_PROVIDED"
269264
eval $V=1
270-
eval $V_PROVIDED=1
271265
if [ "$SAVE" = "save" ]
272266
then
273267
putvar $V
274268
fi
275-
elif [ "$arg" = "--${DEFAULT_FLAG}-${OP}" ]
276-
then
277-
OP=$(echo $OP | tr 'a-z-' 'A-Z_')
278-
DEFAULT_FLAG=$(echo $DEFAULT_FLAG | tr 'a-z' 'A-Z')
279-
local V_PROVIDED="CFG_${DEFAULT_FLAG}_${OP}_PROVIDED"
280-
eval $V_PROVIDED=1
281269
fi
282270
done
283271
else
@@ -645,11 +633,8 @@ esac
645633
# Adjust perf and debug options for debug mode
646634
if [ -n "$CFG_ENABLE_DEBUG" ]; then
647635
msg "debug mode enabled, setting performance options"
648-
if [ -z "$CFG_ENABLE_OPTIMIZE_PROVIDED" ]; then
649-
msg "optimization not explicitly enabled, disabling optimization"
650-
CFG_DISABLE_OPTIMIZE=1
651-
CFG_DISABLE_OPTIMIZE_CXX=1
652-
fi
636+
CFG_DISABLE_OPTIMIZE=1
637+
CFG_DISABLE_OPTIMIZE_CXX=1
653638
CFG_ENABLE_LLVM_ASSERTIONS=1
654639
CFG_ENABLE_DEBUG_ASSERTIONS=1
655640
CFG_ENABLE_DEBUG_JEMALLOC=1

branches/try/src/compiletest/compiletest.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
#![feature(box_syntax)]
1414
#![feature(collections)]
15+
#![feature(old_io)]
1516
#![feature(rustc_private)]
17+
#![feature(unboxed_closures)]
1618
#![feature(std_misc)]
1719
#![feature(test)]
1820
#![feature(path_ext)]
1921
#![feature(str_char)]
20-
#![feature(libc)]
2122

2223
#![deny(warnings)]
2324

24-
extern crate libc;
2525
extern crate test;
2626
extern crate getopts;
2727

@@ -42,7 +42,6 @@ pub mod header;
4242
pub mod runtest;
4343
pub mod common;
4444
pub mod errors;
45-
mod raise_fd_limit;
4645

4746
pub fn main() {
4847
let config = parse_config(env::args().collect());
@@ -246,7 +245,11 @@ pub fn run_tests(config: &Config) {
246245
// sadly osx needs some file descriptor limits raised for running tests in
247246
// parallel (especially when we have lots and lots of child processes).
248247
// For context, see #8904
249-
unsafe { raise_fd_limit::raise_fd_limit(); }
248+
#[allow(deprecated)]
249+
fn raise_fd_limit() {
250+
std::old_io::test::raise_fd_limit();
251+
}
252+
raise_fd_limit();
250253
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
251254
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
252255
env::set_var("__COMPAT_LAYER", "RunAsInvoker");
@@ -368,7 +371,7 @@ pub fn make_metrics_test_closure(config: &Config, testfile: &Path) -> test::Test
368371
fn extract_gdb_version(full_version_line: Option<String>) -> Option<String> {
369372
match full_version_line {
370373
Some(ref full_version_line)
371-
if !full_version_line.trim().is_empty() => {
374+
if full_version_line.trim().len() > 0 => {
372375
let full_version_line = full_version_line.trim();
373376

374377
// used to be a regex "(^|[^0-9])([0-9]\.[0-9])([^0-9]|$)"
@@ -408,7 +411,7 @@ fn extract_lldb_version(full_version_line: Option<String>) -> Option<String> {
408411

409412
match full_version_line {
410413
Some(ref full_version_line)
411-
if !full_version_line.trim().is_empty() => {
414+
if full_version_line.trim().len() > 0 => {
412415
let full_version_line = full_version_line.trim();
413416

414417
for (pos, l) in full_version_line.char_indices() {
@@ -426,7 +429,7 @@ fn extract_lldb_version(full_version_line: Option<String>) -> Option<String> {
426429
let vers = full_version_line[pos + 5..].chars().take_while(|c| {
427430
c.is_digit(10)
428431
}).collect::<String>();
429-
if !vers.is_empty() { return Some(vers) }
432+
if vers.len() > 0 { return Some(vers) }
430433
}
431434
println!("Could not extract LLDB version from line '{}'",
432435
full_version_line);

branches/try/src/compiletest/raise_fd_limit.rs

Lines changed: 0 additions & 79 deletions
This file was deleted.

branches/try/src/compiletest/runtest.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use std::net::TcpStream;
2929
use std::path::{Path, PathBuf};
3030
use std::process::{Command, Output, ExitStatus};
3131
use std::str;
32+
use std::time::Duration;
3233
use test::MetricMap;
3334

3435
pub fn run(config: Config, testfile: &Path) {
@@ -451,7 +452,11 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
451452
.expect(&format!("failed to exec `{:?}`", config.adb_path));
452453
loop {
453454
//waiting 1 second for gdbserver start
454-
::std::thread::sleep_ms(1000);
455+
#[allow(deprecated)]
456+
fn sleep() {
457+
::std::old_io::timer::sleep(Duration::milliseconds(1000));
458+
}
459+
sleep();
455460
if TcpStream::connect("127.0.0.1:5039").is_ok() {
456461
break
457462
}
@@ -864,7 +869,7 @@ fn check_debugger_output(debugger_run_result: &ProcRes, check_lines: &[String])
864869
}
865870
first = false;
866871
}
867-
if !failed && rest.is_empty() {
872+
if !failed && rest.len() == 0 {
868873
i += 1;
869874
}
870875
if i == num_check_lines {
@@ -1662,7 +1667,7 @@ fn _arm_push_aux_shared_library(config: &Config, testfile: &Path) {
16621667
// codegen tests (vs. clang)
16631668

16641669
fn append_suffix_to_stem(p: &Path, suffix: &str) -> PathBuf {
1665-
if suffix.is_empty() {
1670+
if suffix.len() == 0 {
16661671
p.to_path_buf()
16671672
} else {
16681673
let mut stem = p.file_stem().unwrap().to_os_string();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Types which are [`Sync`][sync] are thread-safe when multiple shared
5656
references to them are used concurrently. Types which are not `Sync` are not
5757
thread-safe, and thus when used in a global require unsafe code to use.
5858

59-
[sync]: core/marker/trait.Sync.html
59+
[sync]: core/kinds/trait.Sync.html
6060

6161
### If mutable static items that implement `Sync` are safe, why is taking &mut SHARABLE unsafe?
6262

@@ -139,7 +139,7 @@ and explicitly calling the `clone` method. Making user-defined copy operators
139139
explicit surfaces the underlying complexity, forcing the developer to opt-in
140140
to potentially expensive operations.
141141

142-
[copy]: core/marker/trait.Copy.html
142+
[copy]: core/kinds/trait.Copy.html
143143
[clone]: core/clone/trait.Clone.html
144144

145145
## No move constructors

branches/try/src/doc/index.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ Rust, its syntax, and its concepts. Upon completing the book, you'll be an
1515
intermediate Rust developer, and will have a good grasp of the fundamental
1616
ideas behind Rust.
1717

18-
[Rust By Example][rbe] was originally a community resource, but was then
19-
donated to the Rust project. As the name implies, it teaches you Rust through a
20-
series of small examples.
21-
22-
[rbe]: http://rustbyexample.com/
23-
2418
# Community & Getting Help
2519

2620
If you need help with something, or just want to talk about Rust with others,
@@ -82,3 +76,17 @@ We have [API documentation for the entire standard
8276
library](std/index.html). There's a list of crates on the left with more
8377
specific sections, or you can use the search bar at the top to search for
8478
something if you know its name.
79+
80+
# External documentation
81+
82+
*Note: While these are great resources for learning Rust, they may track a
83+
particular version of Rust that is likely not exactly the same as that for
84+
which this documentation was generated.*
85+
86+
* [Rust by Example] - Short examples of common tasks in Rust (tracks the master
87+
branch).
88+
* [Rust for Rubyists] - The first community tutorial for Rust. Tracks the last
89+
stable release. Not just for Ruby programmers.
90+
91+
[Rust by Example]: http://rustbyexample.com/
92+
[Rust for Rubyists]: http://www.rustforrubyists.com/

branches/try/src/doc/intro.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ safe concurrent programs.
389389
Here's an example of a concurrent Rust program:
390390
391391
```{rust}
392-
# #![feature(scoped)]
393392
use std::thread;
394393
395394
fn main() {
@@ -422,7 +421,6 @@ problem.
422421
Let's see an example. This Rust code will not compile:
423422
424423
```{rust,ignore}
425-
# #![feature(scoped)]
426424
use std::thread;
427425
428426
fn main() {
@@ -469,7 +467,6 @@ that our mutation doesn't cause a data race.
469467
Here's what using a Mutex looks like:
470468
471469
```{rust}
472-
# #![feature(scoped)]
473470
use std::thread;
474471
use std::sync::Mutex;
475472
@@ -530,7 +527,6 @@ As an example, Rust's ownership system is _entirely_ at compile time. The
530527
safety check that makes this an error about moved values:
531528
532529
```{rust,ignore}
533-
# #![feature(scoped)]
534530
use std::thread;
535531
536532
fn main() {

branches/try/src/doc/reference.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,14 +2177,6 @@ The following configurations must be defined by the implementation:
21772177
* `unix`. See `target_family`.
21782178
* `windows`. See `target_family`.
21792179

2180-
You can also set another attribute based on a `cfg` variable with `cfg_attr`:
2181-
2182-
```rust,ignore
2183-
#[cfg_attr(a, b)]
2184-
```
2185-
2186-
Will be the same as `#[b]` if `a` is set by `cfg`, and nothing otherwise.
2187-
21882180
### Lint check attributes
21892181

21902182
A lint check names a potentially undesirable coding pattern, such as
@@ -2376,7 +2368,7 @@ The currently implemented features of the reference compiler are:
23762368
removed entirely for something more wholesome.
23772369

23782370
* `custom_attribute` - Allows the usage of attributes unknown to the compiler
2379-
so that new attributes can be added in a backwards compatible
2371+
so that new attributes can be added in a bacwards compatible
23802372
manner (RFC 572).
23812373

23822374
* `custom_derive` - Allows the use of `#[derive(Foo,Bar)]` as sugar for
@@ -2405,7 +2397,7 @@ The currently implemented features of the reference compiler are:
24052397
nasty hack that will certainly be removed.
24062398

24072399
* `main` - Allows use of the `#[main]` attribute, which changes the entry point
2408-
into a Rust program. This capability is subject to change.
2400+
into a Rust program. This capabiilty is subject to change.
24092401

24102402
* `macro_reexport` - Allows macros to be re-exported from one crate after being imported
24112403
from another. This feature was originally designed with the sole
@@ -2452,9 +2444,7 @@ The currently implemented features of the reference compiler are:
24522444
* `simd_ffi` - Allows use of SIMD vectors in signatures for foreign functions.
24532445
The SIMD interface is subject to change.
24542446

2455-
* `staged_api` - Allows usage of stability markers and `#![staged_api]` in a
2456-
crate. Stability markers are also attributes: `#[stable]`,
2457-
`#[unstable]`, and `#[deprecated]` are the three levels.
2447+
* `staged_api` - Allows usage of stability markers and `#![staged_api]` in a crate
24582448

24592449
* `static_assert` - The `#[static_assert]` functionality is experimental and
24602450
unstable. The attribute can be attached to a `static` of
@@ -2463,7 +2453,7 @@ The currently implemented features of the reference compiler are:
24632453
is unintuitive and suboptimal.
24642454

24652455
* `start` - Allows use of the `#[start]` attribute, which changes the entry point
2466-
into a Rust program. This capability, especially the signature for the
2456+
into a Rust program. This capabiilty, especially the signature for the
24672457
annotated function, is subject to change.
24682458

24692459
* `struct_inherit` - Allows using struct inheritance, which is barely
@@ -3798,7 +3788,7 @@ its type parameters are types:
37983788

37993789
```ignore
38003790
fn map<A: Clone, B: Clone>(f: |A| -> B, xs: &[A]) -> Vec<B> {
3801-
if xs.is_empty() {
3791+
if xs.len() == 0 {
38023792
return vec![];
38033793
}
38043794
let first: B = f(xs[0].clone());

0 commit comments

Comments
 (0)