Skip to content

Commit b2dfa58

Browse files
committed
---
yaml --- r: 209599 b: refs/heads/try c: 54abe4c h: refs/heads/master i: 209597: e6bc6ad 209595: 67add0f 209591: 214396c 209583: f742959 209567: 799ff68 209535: 9313f74 v: v3
1 parent 6725942 commit b2dfa58

File tree

489 files changed

+28345
-6212
lines changed

Some content is hidden

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

489 files changed

+28345
-6212
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: a81ce5f991148b3c701c6b4276cdcafe366cd8f4
5+
refs/heads/try: 54abe4ce915d00ffc07d9077aebeedd052be29fa
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#
7777
# * `CFG_ENABLE_VALGRIND=1` - Run tests under valgrind
7878
# * `VALGRIND_COMPILE=1` - Run the compiler itself under valgrind
79-
# (requires `CFG_ENABLE_VALGRIND`)
79+
# (may require `CFG_ENABLE_VALGRIND`)
8080
#
8181
# * `NO_REBUILD=1` - Don't rebootstrap when testing std
8282
# (and possibly other crates)

branches/try/mk/crates.mk

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,18 @@
5252
TARGET_CRATES := libc std flate arena term \
5353
serialize getopts collections test rand \
5454
log graphviz core rbml alloc \
55-
rustc_unicode rustc_bitflags
55+
unicode rustc_bitflags
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57-
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
58-
rustc_data_structures
57+
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint
5958
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
6059
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6160
TOOLS := compiletest rustdoc rustc rustbook
6261

6362
DEPS_core :=
6463
DEPS_libc := core
65-
DEPS_rustc_unicode := core
64+
DEPS_unicode := core
6665
DEPS_alloc := core libc native:jemalloc
67-
DEPS_std := core libc rand alloc collections rustc_unicode \
66+
DEPS_std := core libc rand alloc collections unicode \
6867
native:rust_builtin native:backtrace native:rustrt_native \
6968
rustc_bitflags
7069
DEPS_graphviz := std
@@ -81,10 +80,9 @@ DEPS_rustc_resolve := rustc log syntax
8180
DEPS_rustc_privacy := rustc log syntax
8281
DEPS_rustc_lint := rustc log syntax
8382
DEPS_rustc := syntax flate arena serialize getopts rbml \
84-
log graphviz rustc_llvm rustc_back rustc_data_structures
83+
log graphviz rustc_llvm rustc_back
8584
DEPS_rustc_llvm := native:rustllvm libc std
8685
DEPS_rustc_back := std syntax rustc_llvm flate log libc
87-
DEPS_rustc_data_structures := std log serialize
8886
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
8987
test rustc_lint
9088
DEPS_rustc_bitflags := core
@@ -96,7 +94,7 @@ DEPS_serialize := std log
9694
DEPS_rbml := std log serialize
9795
DEPS_term := std log
9896
DEPS_getopts := std
99-
DEPS_collections := core alloc rustc_unicode
97+
DEPS_collections := core alloc unicode
10098
DEPS_num := std
10199
DEPS_test := std getopts serialize rbml term native:rust_test_helpers
102100
DEPS_rand := core
@@ -117,11 +115,11 @@ ONLY_RLIB_libc := 1
117115
ONLY_RLIB_alloc := 1
118116
ONLY_RLIB_rand := 1
119117
ONLY_RLIB_collections := 1
120-
ONLY_RLIB_rustc_unicode := 1
118+
ONLY_RLIB_unicode := 1
121119
ONLY_RLIB_rustc_bitflags := 1
122120

123121
# Documented-by-default crates
124-
DOC_CRATES := std alloc collections core libc rustc_unicode
122+
DOC_CRATES := std alloc collections core libc unicode
125123

126124
################################################################################
127125
# You should not need to edit below this line

branches/try/mk/platform.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ endif
4646
# see https://blog.mozilla.org/jseward/2012/06/05/valgrind-now-supports-jemalloc-builds-directly/
4747
ifdef CFG_VALGRIND
4848
CFG_VALGRIND += --error-exitcode=100 \
49-
--fair-sched=try \
50-
--quiet \
5149
--soname-synonyms=somalloc=NONE \
50+
--quiet \
5251
--suppressions=$(CFG_SRC_DIR)src/etc/x86.supp \
5352
$(OS_SUPP)
5453
ifdef CFG_ENABLE_HELGRIND

branches/try/mk/tests.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
# The names of crates that must be tested
1717

18-
# libcore/librustc_unicode tests are in a separate crate
18+
# libcore/libunicode tests are in a separate crate
1919
DEPS_coretest :=
2020
$(eval $(call RUST_CRATE,coretest))
2121

2222
DEPS_collectionstest :=
2323
$(eval $(call RUST_CRATE,collectionstest))
2424

25-
TEST_TARGET_CRATES = $(filter-out core rustc_unicode,$(TARGET_CRATES)) \
25+
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) \
2626
collectionstest coretest
2727
TEST_DOC_CRATES = $(DOC_CRATES)
2828
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \

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() {

0 commit comments

Comments
 (0)