Skip to content

Commit 772e40f

Browse files
committed
---
yaml --- r: 158671 b: refs/heads/auto c: bec2ee7 h: refs/heads/master i: 158669: d3f884b 158667: fe8f090 158663: 12ecaf4 158655: 59805a6 v: v3
1 parent d248fb1 commit 772e40f

File tree

293 files changed

+3767
-6698
lines changed

Some content is hidden

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

293 files changed

+3767
-6698
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 0b48001c28329392b26961eaf1c3ed293a352d6f
13+
refs/heads/auto: bec2ee77f78b4bb8a503101091272a634a273a1c
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/configure

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,19 @@ putvar() {
7676
printf "%-20s := %s\n" $1 "$T" >>config.tmp
7777
}
7878

79+
putpathvar() {
80+
local T
81+
eval T=\$$1
82+
eval TLEN=\${#$1}
83+
if [ $TLEN -gt 35 ]
84+
then
85+
printf "configure: %-20s := %.35s ...\n" $1 "$T"
86+
else
87+
printf "configure: %-20s := %s %s\n" $1 "$T" "$2"
88+
fi
89+
printf "%-20s := %q\n" $1 "$T" >>config.tmp
90+
}
91+
7992
probe() {
8093
local V=$1
8194
shift
@@ -101,7 +114,7 @@ probe() {
101114
fi
102115
done
103116
eval $V=\$T
104-
putvar $V "$VER"
117+
putpathvar $V "$VER"
105118
}
106119

107120
probe_need() {
@@ -1330,8 +1343,7 @@ do
13301343
done
13311344

13321345
# Munge any paths that appear in config.mk back to posix-y
1333-
perl -i.bak -p -e 's@ ([a-zA-Z]):[/\\]@ /\1/@go;' \
1334-
-e 's@\\@/@go;' config.tmp
1346+
perl -i.bak -p -e 's@ ([a-zA-Z]):[/\\]@ /\1/@go;' config.tmp
13351347
rm -f config.tmp.bak
13361348

13371349
msg

branches/auto/mk/crates.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
TARGET_CRATES := libc std green native flate arena term \
5353
serialize sync getopts collections test time rand \
54-
log regex graphviz core rbml alloc rustrt \
54+
log regex graphviz core rbml rlibc alloc rustrt \
5555
unicode
5656
HOST_CRATES := syntax rustc rustdoc regex_macros fmt_macros \
5757
rustc_llvm rustc_back
@@ -60,6 +60,7 @@ TOOLS := compiletest rustdoc rustc
6060

6161
DEPS_core :=
6262
DEPS_libc := core
63+
DEPS_rlibc := core
6364
DEPS_unicode := core
6465
DEPS_alloc := core libc native:jemalloc
6566
DEPS_rustrt := alloc core libc collections native:rustrt_native
@@ -103,6 +104,7 @@ TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
103104

104105
ONLY_RLIB_core := 1
105106
ONLY_RLIB_libc := 1
107+
ONLY_RLIB_rlibc := 1
106108
ONLY_RLIB_alloc := 1
107109
ONLY_RLIB_rand := 1
108110
ONLY_RLIB_collections := 1

branches/auto/mk/main.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ endif
155155
RUSTFLAGS_STAGE0 += -C prefer-dynamic
156156
RUSTFLAGS_STAGE1 += -C prefer-dynamic
157157
RUST_LIB_FLAGS_ST2 += -C prefer-dynamic
158-
RUST_LIB_FLAGS_ST3 += -C prefer-dynamic
159158

160159
# Landing pads require a lot of codegen. We can get through bootstrapping faster
161160
# by not emitting them.

branches/auto/mk/tests.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,7 @@ CTEST_DEPS_cfail_$(1)-T-$(2)-H-$(3) = $$(CFAIL_TESTS)
677677
CTEST_DEPS_bench_$(1)-T-$(2)-H-$(3) = $$(BENCH_TESTS)
678678
CTEST_DEPS_perf_$(1)-T-$(2)-H-$(3) = $$(PERF_TESTS)
679679
CTEST_DEPS_debuginfo-gdb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_GDB_TESTS)
680-
CTEST_DEPS_debuginfo-lldb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_LLDB_TESTS) \
681-
$(S)src/etc/lldb_batchmode.py \
682-
$(S)src/etc/lldb_rust_formatters.py
680+
CTEST_DEPS_debuginfo-lldb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_LLDB_TESTS)
683681
CTEST_DEPS_codegen_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_TESTS)
684682

685683
endef

branches/auto/src/doc/guide.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ enum StringResult {
11491149
}
11501150
```
11511151
Where a `StringResult` is either an `StringOK`, with the result of a computation, or an
1152-
`ErrorReason` with a `String` explaining what caused the computation to fail. These kinds of
1152+
`ErrorReason` with a `String` explaining what caused the computation to fail. This kind of
11531153
`enum`s are actually very useful and are even part of the standard library.
11541154

11551155
As you can see `enum`s with values are quite a powerful tool for data representation,
@@ -1901,8 +1901,8 @@ result is a link to
19011901
click on that result, we'll be taken to its documentation page.
19021902

19031903
This page shows us a few things: the type signature of the function, some
1904-
explanatory text, and then an example. Let's try to modify our code to add in the
1905-
`random` function and see what happens:
1904+
explanatory text, and then an example. Let's modify our code to add in the
1905+
`random` function:
19061906

19071907
```{rust,ignore}
19081908
use std::io;
@@ -4601,24 +4601,20 @@ returns `true` or `false`. The new iterator `filter()` produces
46014601
only the elements that that closure returns `true` for:
46024602

46034603
```{rust}
4604-
for i in range(1i, 100i).filter(|&x| x % 2 == 0) {
4604+
for i in range(1i, 100i).filter(|x| x % 2 == 0) {
46054605
println!("{}", i);
46064606
}
46074607
```
46084608

46094609
This will print all of the even numbers between one and a hundred.
4610-
(Note that because `filter` doesn't consume the elements that are
4611-
being iterated over, it is passed a reference to each element, and
4612-
thus the filter predicate uses the `&x` pattern to extract the integer
4613-
itself.)
46144610

46154611
You can chain all three things together: start with an iterator, adapt it
46164612
a few times, and then consume the result. Check it out:
46174613

46184614
```{rust}
46194615
range(1i, 1000i)
4620-
.filter(|&x| x % 2 == 0)
4621-
.filter(|&x| x % 3 == 0)
4616+
.filter(|x| x % 2 == 0)
4617+
.filter(|x| x % 3 == 0)
46224618
.take(5)
46234619
.collect::<Vec<int>>();
46244620
```

branches/auto/src/doc/reference.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,10 +1961,8 @@ On an `extern` block, the following attributes are interpreted:
19611961
name and type. This is feature gated and the exact behavior is
19621962
implementation-defined (due to variety of linker invocation syntax).
19631963
- `link` - indicate that a native library should be linked to for the
1964-
declarations in this block to be linked correctly. `link` supports an optional `kind`
1965-
key with three possible values: `dylib`, `static`, and `framework`. See [external blocks](#external-blocks) for more about external blocks. Two
1966-
examples: `#[link(name = "readline")]` and
1967-
`#[link(name = "CoreFoundation", kind = "framework")]`.
1964+
declarations in this block to be linked correctly. See [external
1965+
blocks](#external-blocks)
19681966

19691967
On declarations inside an `extern` block, the following attributes are
19701968
interpreted:

branches/auto/src/etc/lldb_batchmode.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
import os
2929
import sys
3030
import threading
31-
import thread
3231
import re
3332
import atexit
34-
import time
3533

3634
# Set this to True for additional output
3735
DEBUG_OUTPUT = False
@@ -132,22 +130,6 @@ def listen():
132130
target.GetBroadcaster().AddListener(listener, lldb.SBTarget.eBroadcastBitBreakpointChanged)
133131

134132

135-
def start_watchdog():
136-
"Starts a watchdog thread that will terminate the process after a certain period of time"
137-
watchdog_start_time = time.clock()
138-
watchdog_max_time = watchdog_start_time + 30
139-
140-
def watchdog():
141-
while time.clock() < watchdog_max_time:
142-
time.sleep(1)
143-
print("TIMEOUT: lldb_batchmode.py has been running for too long. Aborting!")
144-
thread.interrupt_main()
145-
146-
# Start the listener and let it run as a daemon
147-
watchdog_thread = threading.Thread(target = watchdog)
148-
watchdog_thread.daemon = True
149-
watchdog_thread.start()
150-
151133
####################################################################################################
152134
# ~main
153135
####################################################################################################
@@ -165,9 +147,6 @@ def watchdog():
165147
print("Target executable is '%s'." % target_path)
166148
print("Current working directory is '%s'" % os.getcwd())
167149

168-
# Start the timeout watchdog
169-
start_watchdog()
170-
171150
# Create a new debugger instance
172151
debugger = lldb.SBDebugger.Create()
173152

@@ -196,10 +175,6 @@ def watchdog():
196175

197176
for line in script_file:
198177
command = line.strip()
199-
if command == "run" or command == "r" or re.match("^process\s+launch.*", command):
200-
# Before starting to run the program, let the thread sleep a bit, so all
201-
# breakpoint added events can be processed
202-
time.sleep(0.5)
203178
if command != '':
204179
execute_command(command_interpreter, command)
205180

branches/auto/src/etc/unicode.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly
3636
37-
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
37+
#![allow(missing_docs, non_uppercase_statics, non_snake_case)]
3838
'''
3939

4040
# Mapping taken from Table 12 from:
@@ -293,7 +293,7 @@ def emit_bsearch_range_table(f):
293293
f.write("""
294294
fn bsearch_range_table(c: char, r: &'static [(char,char)]) -> bool {
295295
use core::cmp::{Equal, Less, Greater};
296-
use core::slice::SlicePrelude;
296+
use core::slice::ImmutableSlice;
297297
r.binary_search(|&(lo,hi)| {
298298
if lo <= c && c <= hi { Equal }
299299
else if hi < c { Less }
@@ -351,7 +351,7 @@ def emit_conversions_module(f, lowerupper, upperlower):
351351
f.write("pub mod conversions {")
352352
f.write("""
353353
use core::cmp::{Equal, Less, Greater};
354-
use core::slice::SlicePrelude;
354+
use core::slice::ImmutableSlice;
355355
use core::tuple::Tuple2;
356356
use core::option::{Option, Some, None};
357357
use core::slice;
@@ -390,7 +390,7 @@ def emit_conversions_module(f, lowerupper, upperlower):
390390

391391
def emit_grapheme_module(f, grapheme_table, grapheme_cats):
392392
f.write("""pub mod grapheme {
393-
use core::slice::SlicePrelude;
393+
use core::slice::ImmutableSlice;
394394
use core::slice;
395395
396396
#[allow(non_camel_case_types)]
@@ -430,7 +430,7 @@ def emit_grapheme_module(f, grapheme_table, grapheme_cats):
430430
def emit_charwidth_module(f, width_table):
431431
f.write("pub mod charwidth {\n")
432432
f.write(" use core::option::{Option, Some, None};\n")
433-
f.write(" use core::slice::SlicePrelude;\n")
433+
f.write(" use core::slice::ImmutableSlice;\n")
434434
f.write(" use core::slice;\n")
435435
f.write("""
436436
fn bsearch_range_value_table(c: char, is_cjk: bool, r: &'static [(char, char, u8, u8)]) -> u8 {
@@ -530,7 +530,7 @@ def comp_pfun(char):
530530
f.write("""
531531
fn bsearch_range_value_table(c: char, r: &'static [(char, char, u8)]) -> u8 {
532532
use core::cmp::{Equal, Less, Greater};
533-
use core::slice::SlicePrelude;
533+
use core::slice::ImmutableSlice;
534534
use core::slice;
535535
match r.binary_search(|&(lo, hi, _)| {
536536
if lo <= c && c <= hi { Equal }

branches/auto/src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl<T: Send + Sync + Clone> Arc<T> {
166166
// additional reference of either kind.
167167
if self.inner().strong.load(atomic::SeqCst) != 1 ||
168168
self.inner().weak.load(atomic::SeqCst) != 1 {
169-
*self = Arc::new((**self).clone())
169+
*self = Arc::new(self.deref().clone())
170170
}
171171
// This unsafety is ok because we're guaranteed that the pointer
172172
// returned is the *only* pointer that will ever be returned to T. Our

branches/auto/src/liballoc/boxed.rs

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ impl<T: Default> Default for Box<T> {
4848
fn default() -> Box<T> { box Default::default() }
4949
}
5050

51-
impl<T> Default for Box<[T]> {
52-
fn default() -> Box<[T]> { box [] }
53-
}
54-
5551
#[unstable]
5652
impl<T: Clone> Clone for Box<T> {
5753
/// Returns a copy of the owned box.
@@ -65,16 +61,12 @@ impl<T: Clone> Clone for Box<T> {
6561
}
6662
}
6763

68-
// NOTE(stage0): remove impl after a snapshot
69-
#[cfg(stage0)]
7064
impl<T:PartialEq> PartialEq for Box<T> {
7165
#[inline]
7266
fn eq(&self, other: &Box<T>) -> bool { *(*self) == *(*other) }
7367
#[inline]
7468
fn ne(&self, other: &Box<T>) -> bool { *(*self) != *(*other) }
7569
}
76-
// NOTE(stage0): remove impl after a snapshot
77-
#[cfg(stage0)]
7870
impl<T:PartialOrd> PartialOrd for Box<T> {
7971
#[inline]
8072
fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> {
@@ -89,50 +81,14 @@ impl<T:PartialOrd> PartialOrd for Box<T> {
8981
#[inline]
9082
fn gt(&self, other: &Box<T>) -> bool { *(*self) > *(*other) }
9183
}
92-
// NOTE(stage0): remove impl after a snapshot
93-
#[cfg(stage0)]
9484
impl<T: Ord> Ord for Box<T> {
9585
#[inline]
9686
fn cmp(&self, other: &Box<T>) -> Ordering {
9787
(**self).cmp(&**other)
9888
}
9989
}
100-
// NOTE(stage0): remove impl after a snapshot
101-
#[cfg(stage0)]
10290
impl<T: Eq> Eq for Box<T> {}
10391

104-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
105-
impl<Sized? T: PartialEq> PartialEq for Box<T> {
106-
#[inline]
107-
fn eq(&self, other: &Box<T>) -> bool { PartialEq::eq(&**self, &**other) }
108-
#[inline]
109-
fn ne(&self, other: &Box<T>) -> bool { PartialEq::ne(&**self, &**other) }
110-
}
111-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
112-
impl<Sized? T: PartialOrd> PartialOrd for Box<T> {
113-
#[inline]
114-
fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> {
115-
PartialOrd::partial_cmp(&**self, &**other)
116-
}
117-
#[inline]
118-
fn lt(&self, other: &Box<T>) -> bool { PartialOrd::lt(&**self, &**other) }
119-
#[inline]
120-
fn le(&self, other: &Box<T>) -> bool { PartialOrd::le(&**self, &**other) }
121-
#[inline]
122-
fn ge(&self, other: &Box<T>) -> bool { PartialOrd::ge(&**self, &**other) }
123-
#[inline]
124-
fn gt(&self, other: &Box<T>) -> bool { PartialOrd::gt(&**self, &**other) }
125-
}
126-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
127-
impl<Sized? T: Ord> Ord for Box<T> {
128-
#[inline]
129-
fn cmp(&self, other: &Box<T>) -> Ordering {
130-
Ord::cmp(&**self, &**other)
131-
}
132-
}
133-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
134-
impl<Sized? T: Eq> Eq for Box<T> {}
135-
13692
/// Extension methods for an owning `Any` trait object.
13793
#[unstable = "post-DST and coherence changes, this will not be a trait but \
13894
rather a direct `impl` on `Box<Any>`"]

branches/auto/src/libarena/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl Drop for Arena {
132132

133133
#[inline]
134134
fn round_up(base: uint, align: uint) -> uint {
135-
(base.checked_add(&(align - 1))).unwrap() & !(align - 1)
135+
(base.checked_add(&(align - 1))).unwrap() & !(&(align - 1))
136136
}
137137

138138
// Walk down a chunk, running the destructors for any objects stored

0 commit comments

Comments
 (0)