Skip to content

Commit 5260ce4

Browse files
committed
---
yaml --- r: 191323 b: refs/heads/try c: 9889aae h: refs/heads/master i: 191321: f7a90f6 191319: 35d5d25 v: v3
1 parent 33edc37 commit 5260ce4

File tree

165 files changed

+2133
-2899
lines changed

Some content is hidden

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

165 files changed

+2133
-2899
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: 809a554fca2d0ebc2ba50077016fe282a4064752
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c64d671671aea2e44ee7fc6eb00ee75fc30ed7b9
5-
refs/heads/try: 1760e8749a46d8b64f8411a08a79d90e2b5f966e
5+
refs/heads/try: 9889aae13e14c306fce8cefd669841fa40f26ee9
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: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,7 @@ case $CFG_CPUTYPE in
461461
CFG_CPUTYPE=aarch64
462462
;;
463463

464-
# At some point, when ppc64[le] support happens, this will need to do
465-
# something clever. For now it's safe to assume that we're only ever
466-
# interested in building 32 bit.
467-
powerpc | ppc | ppc64)
464+
powerpc)
468465
CFG_CPUTYPE=powerpc
469466
;;
470467

@@ -826,11 +823,11 @@ then
826823
LLVM_VERSION=$($LLVM_CONFIG --version)
827824

828825
case $LLVM_VERSION in
829-
(3.[5-6]*)
826+
(3.[2-6]*)
830827
msg "found ok version of LLVM: $LLVM_VERSION"
831828
;;
832829
(*)
833-
err "bad LLVM version: $LLVM_VERSION, need >=3.5"
830+
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
834831
;;
835832
esac
836833
fi

branches/try/mk/llvm.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ $$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
4444
touch -r $$@.start_time $$@ && rm $$@.start_time
4545

4646
ifeq ($$(CFG_ENABLE_LLVM_STATIC_STDCPP),1)
47-
LLVM_STDCPP_RUSTFLAGS_$(1) = -L "$$(dir $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
48-
-print-file-name=libstdc++.a))"
47+
LLVM_STDCPP_LOCATION_$(1) = $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
48+
-print-file-name=libstdc++.a)
4949
else
50-
LLVM_STDCPP_RUSTFLAGS_$(1) =
50+
LLVM_STDCPP_LOCATION_$(1) =
5151
endif
5252

5353

branches/try/mk/main.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
34-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
3535
CFG_DISABLE_UNSTABLE_FEATURES=1
3636
endif
3737
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
@@ -290,7 +290,6 @@ LLVM_VERSION_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --version)
290290
LLVM_BINDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --bindir)
291291
LLVM_INCDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --includedir)
292292
LLVM_LIBDIR_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --libdir)
293-
LLVM_LIBDIR_RUSTFLAGS_$(1)=-L "$$(LLVM_LIBDIR_$(1))"
294293
LLVM_LIBS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --libs $$(LLVM_COMPONENTS))
295294
LLVM_LDFLAGS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --ldflags)
296295
# On FreeBSD, it may search wrong headers (that are for pre-installed LLVM),

branches/try/mk/target.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8484
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) \
8585
$$(RUST_LIB_FLAGS_ST$(1)) \
8686
-L "$$(RT_OUTPUT_DIR_$(2))" \
87-
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
88-
$$(LLVM_STDCPP_RUSTFLAGS_$(2)) \
87+
-L "$$(LLVM_LIBDIR_$(2))" \
88+
-L "$$(dir $$(LLVM_STDCPP_LOCATION_$(2)))" \
8989
$$(RUSTFLAGS_$(4)) \
9090
--out-dir $$(@D) \
9191
-C extra-filename=-$$(CFG_FILENAME_EXTRA) \

branches/try/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ $(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): \
372372
$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(3)) \
373373
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) -o $$@ $$< --test \
374374
-L "$$(RT_OUTPUT_DIR_$(2))" \
375-
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
375+
-L "$$(LLVM_LIBDIR_$(2))" \
376376
$$(RUSTFLAGS_$(4))
377377

378378
endef

branches/try/src/compiletest/compiletest.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#![feature(std_misc)]
2121
#![feature(test)]
2222
#![feature(core)]
23+
#![feature(io)]
2324
#![feature(net)]
2425
#![feature(path_ext)]
2526

@@ -33,6 +34,7 @@ extern crate log;
3334

3435
use std::env;
3536
use std::fs;
37+
use std::old_io;
3638
use std::path::{Path, PathBuf};
3739
use std::thunk::Thunk;
3840
use getopts::{optopt, optflag, reqopt};
@@ -244,11 +246,7 @@ pub fn run_tests(config: &Config) {
244246
// sadly osx needs some file descriptor limits raised for running tests in
245247
// parallel (especially when we have lots and lots of child processes).
246248
// For context, see #8904
247-
#[allow(deprecated)]
248-
fn raise_fd_limit() {
249-
std::old_io::test::raise_fd_limit();
250-
}
251-
raise_fd_limit();
249+
old_io::test::raise_fd_limit();
252250
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
253251
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
254252
env::set_var("__COMPAT_LAYER", "RunAsInvoker");

branches/try/src/compiletest/runtest.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use std::io::BufReader;
2626
use std::io::prelude::*;
2727
use std::iter::repeat;
2828
use std::net::TcpStream;
29+
use std::old_io::timer;
2930
use std::path::{Path, PathBuf};
3031
use std::process::{Command, Output, ExitStatus};
3132
use std::str;
@@ -451,11 +452,7 @@ 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-
#[allow(deprecated)]
455-
fn sleep() {
456-
::std::old_io::timer::sleep(Duration::milliseconds(1000));
457-
}
458-
sleep();
455+
timer::sleep(Duration::milliseconds(1000));
459456
if TcpStream::connect("127.0.0.1:5039").is_ok() {
460457
break
461458
}

branches/try/src/doc/trpl/closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ is that a moving closure always takes ownership of all variables that
6868
it uses. Ordinary closures, in contrast, just create a reference into
6969
the enclosing stack frame. Moving closures are most useful with Rust's
7070
concurrency features, and so we'll just leave it at this for
71-
now. We'll talk about them more in the "Concurrency" chapter of the book.
71+
now. We'll talk about them more in the "Threads" section of the guide.
7272

7373
## Accepting closures as arguments
7474

branches/try/src/doc/trpl/concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ fn main() {
339339
});
340340
}
341341
342-
rx.recv().ok().expect("Could not receive answer");
342+
rx.recv().ok().expect("Could not recieve answer");
343343
}
344344
```
345345

branches/try/src/doc/trpl/hello-cargo.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,9 @@ Hello, world!
8585
Bam! We build our project with `cargo build`, and run it with
8686
`./target/debug/hello_world`. This hasn't bought us a whole lot over our simple use
8787
of `rustc`, but think about the future: when our project has more than one
88-
file, we would need to call `rustc` more than once and pass it a bunch of options to
88+
file, we would need to call `rustc` more than once, and pass it a bunch of options to
8989
tell it to build everything together. With Cargo, as our project grows, we can
90-
just `cargo build`, and it'll work the right way. When your project is finally
91-
ready for release, you can use `cargo build --release` to compile your crates with
92-
optimizations.
90+
just `cargo build` and it'll work the right way. When you're project is finally ready for release, you can use `cargo build --release` to compile your crates with optimizations.
9391

9492
You'll also notice that Cargo has created a new file: `Cargo.lock`.
9593

branches/try/src/doc/trpl/method-syntax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ impl CircleBuilder {
187187
}
188188
189189
fn coordinate(&mut self, coordinate: f64) -> &mut CircleBuilder {
190-
self.coordinate = coordinate;
191-
self
190+
self.coordinate = coordinate;
191+
self
192192
}
193193
194194
fn radius(&mut self, radius: f64) -> &mut CircleBuilder {
195-
self.radius = radius;
196-
self
195+
self.radius = radius;
196+
self
197197
}
198198
199199
fn finalize(&self) -> Circle {

branches/try/src/etc/gdb_rust_pretty_printing.py

Lines changed: 1 addition & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,9 @@ def rust_pretty_printer_lookup_function(val):
2727
if type_code == gdb.TYPE_CODE_STRUCT:
2828
struct_kind = classify_struct(val.type)
2929

30-
if struct_kind == STRUCT_KIND_SLICE:
31-
return RustSlicePrinter(val)
32-
3330
if struct_kind == STRUCT_KIND_STR_SLICE:
3431
return RustStringSlicePrinter(val)
3532

36-
if struct_kind == STRUCT_KIND_STD_VEC:
37-
return RustStdVecPrinter(val)
38-
39-
if struct_kind == STRUCT_KIND_STD_STRING:
40-
return RustStdStringPrinter(val)
41-
4233
if struct_kind == STRUCT_KIND_TUPLE:
4334
return RustTuplePrinter(val)
4435

@@ -181,28 +172,6 @@ def children(self):
181172
def display_hint(self):
182173
return "array"
183174

184-
class RustSlicePrinter:
185-
def __init__(self, val):
186-
self.val = val
187-
188-
def display_hint(self):
189-
return "array"
190-
191-
def to_string(self):
192-
length = int(self.val["length"])
193-
return self.val.type.tag + ("(len: %i)" % length)
194-
195-
def children(self):
196-
cs = []
197-
length = int(self.val["length"])
198-
data_ptr = self.val["data_ptr"]
199-
assert data_ptr.type.code == gdb.TYPE_CODE_PTR
200-
pointee_type = data_ptr.type.target()
201-
202-
for index in range(0, length):
203-
cs.append((str(index), (data_ptr + index).dereference()))
204-
205-
return cs
206175

207176
class RustStringSlicePrinter:
208177
def __init__(self, val):
@@ -212,35 +181,6 @@ def to_string(self):
212181
slice_byte_len = self.val["length"]
213182
return '"%s"' % self.val["data_ptr"].string(encoding="utf-8", length=slice_byte_len)
214183

215-
class RustStdVecPrinter:
216-
def __init__(self, val):
217-
self.val = val
218-
219-
def display_hint(self):
220-
return "array"
221-
222-
def to_string(self):
223-
length = int(self.val["len"])
224-
cap = int(self.val["cap"])
225-
return self.val.type.tag + ("(len: %i, cap: %i)" % (length, cap))
226-
227-
def children(self):
228-
cs = []
229-
(length, data_ptr) = extract_length_and_data_ptr_from_std_vec(self.val)
230-
pointee_type = data_ptr.type.target()
231-
232-
for index in range(0, length):
233-
cs.append((str(index), (data_ptr + index).dereference()))
234-
return cs
235-
236-
class RustStdStringPrinter:
237-
def __init__(self, val):
238-
self.val = val
239-
240-
def to_string(self):
241-
(length, data_ptr) = extract_length_and_data_ptr_from_std_vec(self.val["vec"])
242-
return '"%s"' % data_ptr.string(encoding="utf-8", length=length)
243-
244184

245185
class RustCStyleEnumPrinter:
246186
def __init__(self, val):
@@ -264,38 +204,19 @@ def to_string(self):
264204
STRUCT_KIND_TUPLE_VARIANT = 3
265205
STRUCT_KIND_STRUCT_VARIANT = 4
266206
STRUCT_KIND_CSTYLE_VARIANT = 5
267-
STRUCT_KIND_SLICE = 6
268-
STRUCT_KIND_STR_SLICE = 7
269-
STRUCT_KIND_STD_VEC = 8
270-
STRUCT_KIND_STD_STRING = 9
207+
STRUCT_KIND_STR_SLICE = 6
271208

272209

273210
def classify_struct(type):
274-
# print("\nclassify_struct: tag=%s\n" % type.tag)
275211
if type.tag == "&str":
276212
return STRUCT_KIND_STR_SLICE
277213

278-
if type.tag.startswith("&[") and type.tag.endswith("]"):
279-
return STRUCT_KIND_SLICE
280-
281214
fields = list(type.fields())
282215
field_count = len(fields)
283216

284217
if field_count == 0:
285218
return STRUCT_KIND_REGULAR_STRUCT
286219

287-
if (field_count == 3 and
288-
fields[0].name == "ptr" and
289-
fields[1].name == "len" and
290-
fields[2].name == "cap" and
291-
type.tag.startswith("Vec<")):
292-
return STRUCT_KIND_STD_VEC
293-
294-
if (field_count == 1 and
295-
fields[0].name == "vec" and
296-
type.tag == "String"):
297-
return STRUCT_KIND_STD_STRING
298-
299220
if fields[0].name == "RUST$ENUM$DISR":
300221
if field_count == 1:
301222
return STRUCT_KIND_CSTYLE_VARIANT
@@ -333,11 +254,3 @@ def get_field_at_index(val, index):
333254
return field
334255
i += 1
335256
return None
336-
337-
def extract_length_and_data_ptr_from_std_vec(vec_val):
338-
length = int(vec_val["len"])
339-
vec_ptr_val = vec_val["ptr"]
340-
unique_ptr_val = vec_ptr_val[first_field(vec_ptr_val)]
341-
data_ptr = unique_ptr_val[first_field(unique_ptr_val)]
342-
assert data_ptr.type.code == gdb.TYPE_CODE_PTR
343-
return (length, data_ptr)

0 commit comments

Comments
 (0)