]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agoauto merge of #8616 : kballard/rust/url-parse-errors, r=catamorphism
bors [Thu, 22 Aug 2013 07:01:32 +0000 (00:01 -0700)]
auto merge of #8616 : kballard/rust/url-parse-errors, r=catamorphism

Fixes issue #8612.

10 years agoauto merge of #8590 : blake2-ppc/rust/std-str, r=alexcrichton
bors [Thu, 22 Aug 2013 04:51:30 +0000 (21:51 -0700)]
auto merge of #8590 : blake2-ppc/rust/std-str, r=alexcrichton

Implement CharIterator as a separate struct, so that it can be .clone()'d. Fix `.char_range_at_reverse` so that it performs better, closer to the forwards version. This makes the reverse iterators and users like `.rfind()` perform better.

    Before
    test str::bench::char_iterator ... bench: 146 ns/iter (+/- 0)
    test str::bench::char_iterator_ascii ... bench: 397 ns/iter (+/- 49)
    test str::bench::char_iterator_rev ... bench: 576 ns/iter (+/- 8)
    test str::bench::char_offset_iterator ... bench: 128 ns/iter (+/- 2)
    test str::bench::char_offset_iterator_rev ... bench: 425 ns/iter (+/- 59)

    After
    test str::bench::char_iterator ... bench: 130 ns/iter (+/- 1)
    test str::bench::char_iterator_ascii ... bench: 307 ns/iter (+/- 5)
    test str::bench::char_iterator_rev ... bench: 185 ns/iter (+/- 8)
    test str::bench::char_offset_iterator ... bench: 131 ns/iter (+/- 13)
    test str::bench::char_offset_iterator_rev ... bench: 183 ns/iter (+/- 2)

To be able to use a string slice to represent the CharIterator, a function `slice_unchecked` is added, that does the same as `slice_bytes` but without any boundary checks.

It would be possible to implement CharIterator with pointer arithmetic to make it *much more efficient*, but since vec iterator is still improving, it's too early to attempt to re-implement it in other places. Hopefully CharIterator can be implemented on top of vec iterator without any unsafe code later.

Additional changes fix the documentation about null termination.

10 years agoauto merge of #8570 : catamorphism/rust/2013-08-16-rollup, r=catamorphism
bors [Thu, 22 Aug 2013 03:21:32 +0000 (20:21 -0700)]
auto merge of #8570 : catamorphism/rust/2013-08-16-rollup, r=catamorphism

Nothing arguable here, as far as I can tell.

10 years agoauto merge of #8562 : bblum/rust/superkinds, r=nikomatsakis
bors [Thu, 22 Aug 2013 01:51:42 +0000 (18:51 -0700)]
auto merge of #8562 : bblum/rust/superkinds, r=nikomatsakis

For #7083.

The metadata issue with the old version is now fixed. Ready for review.

This is also not the full solution to #7083, because this is not supported yet:
```
trait Foo : Send { }

impl <T: Send> Foo for T { }

fn foo<T: Foo>(val: T, chan: std::comm::Chan<T>) {
    chan.send(val);
}
```

cc @nikomatsakis

10 years agorustpkg: Add test for #7348. Closes #7348
Tim Chevalier [Thu, 22 Aug 2013 01:04:08 +0000 (18:04 -0700)]
rustpkg: Add test for #7348. Closes #7348

10 years agooops v2, apparently writing std::comm::stream() doesn't work on check-fast; fix this
Ben Blum [Thu, 22 Aug 2013 00:33:56 +0000 (20:33 -0400)]
oops v2, apparently writing std::comm::stream() doesn't work on check-fast; fix this

10 years agorustpkg: Re-enable some more tests
Tim Chevalier [Wed, 21 Aug 2013 22:46:27 +0000 (15:46 -0700)]
rustpkg: Re-enable some more tests

10 years agoauto merge of #8595 : vadimcn/rust/print_link_args, r=alexcrichton
bors [Thu, 22 Aug 2013 00:21:33 +0000 (17:21 -0700)]
auto merge of #8595 : vadimcn/rust/print_link_args, r=alexcrichton

This resolves issue #8569

10 years agorustpkg: Add test for #7338. Closes #7338
Tim Chevalier [Thu, 22 Aug 2013 00:12:32 +0000 (17:12 -0700)]
rustpkg: Add test for #7338. Closes #7338

10 years agorustc: More helpful error message when using a struct type like a function
Tim Chevalier [Wed, 14 Aug 2013 00:54:14 +0000 (17:54 -0700)]
rustc: More helpful error message when using a struct type like a function

Closes #6702

10 years agotestsuite: Un-xfail test for #5917
Tim Chevalier [Mon, 19 Aug 2013 21:20:50 +0000 (14:20 -0700)]
testsuite: Un-xfail test for #5917

10 years agotestsuite: Test for #4447
Tim Chevalier [Mon, 19 Aug 2013 20:45:48 +0000 (13:45 -0700)]
testsuite: Test for #4447

Closes #4447

10 years agorustc: Remove FIXME (see #4949)
Tim Chevalier [Mon, 19 Aug 2013 20:03:10 +0000 (13:03 -0700)]
rustc: Remove FIXME (see #4949)

10 years agotestsuite: Test for #6132
Tim Chevalier [Mon, 19 Aug 2013 20:43:57 +0000 (13:43 -0700)]
testsuite: Test for #6132

Closes #6132

10 years agorustc: More helpful error message when using a struct type like a function
Tim Chevalier [Wed, 14 Aug 2013 00:54:14 +0000 (17:54 -0700)]
rustc: More helpful error message when using a struct type like a function

Closes #6702

10 years agoTestsuite: Test for #7013. Closes #7013
Tim Chevalier [Sat, 17 Aug 2013 04:22:06 +0000 (21:22 -0700)]
Testsuite: Test for #7013. Closes #7013

10 years agoextra: change XXX to FIXME and elaborate on comments
Tim Chevalier [Fri, 12 Jul 2013 20:53:12 +0000 (13:53 -0700)]
extra: change XXX to FIXME and elaborate on comments

10 years agostd/extra: changing XXX to FIXME; cleanup
Tim Chevalier [Fri, 12 Jul 2013 21:43:57 +0000 (14:43 -0700)]
std/extra: changing XXX to FIXME; cleanup

* Get rid of by-value-self workarounds; it works now
* Remove type annotations, they're not needed anymore

10 years agotestsuite: Tests for #6458. Closes #6458
Tim Chevalier [Mon, 12 Aug 2013 20:47:02 +0000 (13:47 -0700)]
testsuite: Tests for #6458. Closes #6458

10 years agoauto merge of #8594 : bytewiseand/rust/static-fn-ptr, r=pcwalton
bors [Wed, 21 Aug 2013 22:51:34 +0000 (15:51 -0700)]
auto merge of #8594 : bytewiseand/rust/static-fn-ptr, r=pcwalton

Fixes #8588

10 years agostd::str: Add test for CharIterator .clone()
blake2-ppc [Wed, 21 Aug 2013 22:35:16 +0000 (00:35 +0200)]
std::str: Add test for CharIterator .clone()

10 years agooops, xfail-fast the cross-crate superkind tests
Ben Blum [Wed, 21 Aug 2013 19:52:31 +0000 (15:52 -0400)]
oops, xfail-fast the cross-crate superkind tests

10 years agoauto merge of #8546 : jld/rust/discrim-symbol-rm, r=pcwalton
bors [Wed, 21 Aug 2013 19:51:40 +0000 (12:51 -0700)]
auto merge of #8546 : jld/rust/discrim-symbol-rm, r=pcwalton

Given that bootstrapping and running the testsuite works without
exporting discriminant values as global constants, I conclude that
they're unused and can be removed.

10 years agoTrimmed whitespace
Vadim Chugunov [Wed, 21 Aug 2013 18:54:30 +0000 (11:54 -0700)]
Trimmed whitespace

10 years agoauto merge of #8445 : Florob/rust/unicode, r=graydon
bors [Wed, 21 Aug 2013 18:01:44 +0000 (11:01 -0700)]
auto merge of #8445 : Florob/rust/unicode, r=graydon

This adds support for performing Unicode Normalization Forms D and KD on strings.
To enable this the decomposition and canonical combining class properties are added to std::unicode.
On my system this increases libstd's size by ~250KiB.

10 years agoChanged `fn main` to `pub fn main`
Andreas Martens [Wed, 21 Aug 2013 16:32:04 +0000 (18:32 +0200)]
Changed `fn main` to `pub fn main`

10 years agoauto merge of #8610 : kballard/rust/mod_floor, r=alexcrichton
bors [Wed, 21 Aug 2013 16:31:43 +0000 (09:31 -0700)]
auto merge of #8610 : kballard/rust/mod_floor, r=alexcrichton

`mod_floor()` was incorrectly defined for uint types as `a / b` instead of `a % b`.

10 years agoSplit cross-crate test into own test and xfail-fast it
Andreas Martens [Wed, 21 Aug 2013 15:29:47 +0000 (17:29 +0200)]
Split cross-crate test into own test and xfail-fast it

10 years agoauto merge of #8604 : kballard/rust/iter-size-hint, r=graydon
bors [Wed, 21 Aug 2013 15:01:44 +0000 (08:01 -0700)]
auto merge of #8604 : kballard/rust/iter-size-hint, r=graydon

Implement `size_hint()` on the new std::vec Iterators.

Add or update `size_hint()` on std::iterator Iterators where appropriate.

r? @thestinger

10 years agoauto merge of #8602 : sanxiyn/rust/sysconf, r=graydon
bors [Wed, 21 Aug 2013 13:31:44 +0000 (06:31 -0700)]
auto merge of #8602 : sanxiyn/rust/sysconf, r=graydon

Linux and Android share the kernel, but not the C library, so sysconf constants are different. For example, _SC_PAGESIZE is 30 on Linux, but 39 on Android.

This patch
* splits sysconf constants to sysconf module
* merges non-MIPS and MIPS sysconf constants (they are same)
* adds Android sysconf constants

This patch also lets mmap tests to pass on Android.

10 years agoauto merge of #8600 : sfackler/rust/http, r=brson
bors [Wed, 21 Aug 2013 12:01:43 +0000 (05:01 -0700)]
auto merge of #8600 : sfackler/rust/http, r=brson

It's an empty stub and as one of the comments notes, doesn't belong in
libstd.

10 years agoAdd support for performing NFD and NFKD on strings
Florian Zeitz [Sun, 11 Aug 2013 01:36:38 +0000 (03:36 +0200)]
Add support for performing NFD and NFKD on strings

10 years agoAdd canonical combining class to std::unicode
Florian Zeitz [Sat, 10 Aug 2013 23:57:59 +0000 (01:57 +0200)]
Add canonical combining class to std::unicode

10 years agoAdd Unicode decomposition mappings to std::unicode
Florian Zeitz [Wed, 7 Aug 2013 18:48:10 +0000 (20:48 +0200)]
Add Unicode decomposition mappings to std::unicode

10 years agoauto merge of #8585 : jankobler/rust/extract-grammar-01, r=catamorphism
bors [Wed, 21 Aug 2013 09:22:25 +0000 (02:22 -0700)]
auto merge of #8585 : jankobler/rust/extract-grammar-01, r=catamorphism

This fixes some errors which extract_grammar.py reports, when called with

python2.7 src/etc/extract_grammar.py <doc/rust.md

10 years agoauto merge of #8582 : thestinger/rust/container, r=thestinger
bors [Wed, 21 Aug 2013 08:01:47 +0000 (01:01 -0700)]
auto merge of #8582 : thestinger/rust/container, r=thestinger

5f3a637 r=huonw
934a5eb r=thestinger
0f6e90a r=cmr

10 years agoauto merge of #8580 : bytewiseand/rust/tuple-struct-ctor-ptr, r=alexcrichton
bors [Wed, 21 Aug 2013 06:11:50 +0000 (23:11 -0700)]
auto merge of #8580 : bytewiseand/rust/tuple-struct-ctor-ptr, r=alexcrichton

Fixes #5315

10 years agoauto merge of #8573 : mrordinaire/rust/struct-new-as-field-name, r=alexcrichton
bors [Wed, 21 Aug 2013 04:41:50 +0000 (21:41 -0700)]
auto merge of #8573 : mrordinaire/rust/struct-new-as-field-name, r=alexcrichton

fix for #8088, along with a test.

10 years agoFix typo in test/bench/noise.rs. Closes #8574.
nsf [Sat, 17 Aug 2013 13:16:37 +0000 (19:16 +0600)]
Fix typo in test/bench/noise.rs. Closes #8574.

10 years agoDeleted fun_treemap
Steven Fackler [Sat, 17 Aug 2013 05:46:32 +0000 (01:46 -0400)]
Deleted fun_treemap

@thestinger and I talked about this in IRC. There are a couple of use
cases for a persistent map, but they aren't common enough to justify
inclusion in libextra and vary enough that they would require multiple
implementations anyways.

In any case, fun_treemap in its current state is basically useless.

10 years agoenable tests for the container tutorial
Daniel Micay [Mon, 19 Aug 2013 22:15:01 +0000 (18:15 -0400)]
enable tests for the container tutorial

10 years agoiterator: add a method for reversing a container
Daniel Micay [Mon, 19 Aug 2013 21:52:20 +0000 (17:52 -0400)]
iterator: add a method for reversing a container

this works on any container with a mutable double-ended iterator

10 years agooption: derive Clone/DeepClone for the iterator
Daniel Micay [Mon, 19 Aug 2013 19:36:43 +0000 (15:36 -0400)]
option: derive Clone/DeepClone for the iterator

10 years agovec: add `shrink_to_fit`
Daniel Micay [Mon, 19 Aug 2013 18:17:10 +0000 (14:17 -0400)]
vec: add `shrink_to_fit`

Closes #4960

10 years agorm obsolete float to_str_radix free functions
Daniel Micay [Sun, 18 Aug 2013 16:23:48 +0000 (12:23 -0400)]
rm obsolete float to_str_radix free functions

10 years agorm obsolete integer to_str{,_radix} free functions
Daniel Micay [Sun, 18 Aug 2013 02:47:54 +0000 (22:47 -0400)]
rm obsolete integer to_str{,_radix} free functions

10 years agoiterator: add a `range_inclusive` function
Daniel Micay [Sat, 17 Aug 2013 22:41:53 +0000 (18:41 -0400)]
iterator: add a `range_inclusive` function

Closes #6242

10 years agocontainer: inline contains_key default method
Daniel Micay [Fri, 16 Aug 2013 22:13:47 +0000 (18:13 -0400)]
container: inline contains_key default method

10 years agoauto merge of #8656 : toddaaro/rust/idle-opt+cleaning, r=brson
bors [Wed, 21 Aug 2013 01:51:55 +0000 (18:51 -0700)]
auto merge of #8656 : toddaaro/rust/idle-opt+cleaning, r=brson

Fixed a memory leak caused by the singleton idle callback failing to close correctly. The problem was that the close function requires running inside a callback in the event loop, but we were trying to close the idle watcher after the loop returned from run. The fix was to just call run again to process this callback. There is an additional tweak to move the initialization logic fully into bootstrap, so tasks that do not ever call run do not have problems destructing.

10 years agoauto merge of #8631 : anasazi/rust/homing-io, r=brson
bors [Wed, 21 Aug 2013 00:12:09 +0000 (17:12 -0700)]
auto merge of #8631 : anasazi/rust/homing-io, r=brson

libuv handles are tied to the event loop that created them. In order to perform IO, the handle must be on the thread with its home event loop. Thus, when as task wants to do IO it must first go to the IO handle's home event loop and pin itself to the corresponding scheduler while the IO action is in flight. Once the IO action completes, the task is unpinned and either returns to its home scheduler if it is a pinned task, or otherwise stays on the current scheduler.

Making new blocking IO implementations (i.e. files) thread safe is rather simple. Add a home field to the IO handle's struct in uvio and implement the HomingIO trait. Wrap every IO call in the HomingIO.home_for_io method, which will take care of the scheduling.

I'm not sure if this remains thread safe in the presence of asynchronous IO at the libuv level. If we decide to do that, then this set up should be revisited.

10 years agoFixed a memory leak caused by the singleton idle callback failing to close correctly...
toddaaro [Tue, 20 Aug 2013 22:33:20 +0000 (15:33 -0700)]
Fixed a memory leak caused by the singleton idle callback failing to close correctly. The problem was that the close function requires running inside a callback in the event loop, but we were trying to close the idle watcher after the loop returned from run. The fix was to just call run again to process this callback. There is an additional tweak to move the initialization logic fully into bootstrap, so tasks that do not ever call run do not have problems destructing.

10 years agoauto merge of #8563 : graydon/rust/2013-08-16-condition-tutorial, r=catamorphism
bors [Tue, 20 Aug 2013 22:01:55 +0000 (15:01 -0700)]
auto merge of #8563 : graydon/rust/2013-08-16-condition-tutorial, r=catamorphism

First cut of a tutorial on conditions.

cc: #6701

10 years agoauto merge of #8519 : msullivan/rust/objects, r=catamorphism
bors [Tue, 20 Aug 2013 20:32:00 +0000 (13:32 -0700)]
auto merge of #8519 : msullivan/rust/objects, r=catamorphism

r?

10 years agoAdd tests for self type using builtin kinds. (#7083)
Ben Blum [Tue, 20 Aug 2013 19:46:48 +0000 (15:46 -0400)]
Add tests for self type using builtin kinds. (#7083)

10 years agoAllow the Self type to benefit from builtin-kinds-as-supertraits (#7083).
Ben Blum [Tue, 20 Aug 2013 19:44:19 +0000 (15:44 -0400)]
Allow the Self type to benefit from builtin-kinds-as-supertraits (#7083).

10 years agoauto merge of #8328 : alexcrichton/rust/llvm-head, r=brson
bors [Tue, 20 Aug 2013 18:31:59 +0000 (11:31 -0700)]
auto merge of #8328 : alexcrichton/rust/llvm-head, r=brson

The first commit message is pretty good, but whomever reviews this should probably also at least glance at the changes I made in LLVM. I basically reorganized our pending patch queue to be a bit more organized and clearer in what needs to go where. After this, our queue would be:

* Add the `no-split-stack` attribute
* Add the `fixedstacksegment` attribute
* Add split-stacks for arm android
* Add split-stacks for arm linux
* Add split stacks for mips

Then there's a patch which I added to get rust to build at all on LLVM-head, and I'm not quite sure why it's there, but nothing seems to be crashing for now! (famous last words).

Otherwise, I just updated code to reflect the changes I made in LLVM with the only major change being the advent of the new `no_split_stack` attribute. This is work towards #1226, but someone more familiar with the code should probably actually assign the attribute to the appropriate functions.

Also as a bonus, I've verified that this closes #5774

10 years agoFixup style of test cases for #7083
Ben Blum [Mon, 19 Aug 2013 21:15:25 +0000 (17:15 -0400)]
Fixup style of test cases for #7083

10 years agoAdd tests for super-builtin-kind capabilities (#7083)
Ben Blum [Mon, 19 Aug 2013 20:54:58 +0000 (16:54 -0400)]
Add tests for super-builtin-kind capabilities (#7083)

10 years agoAdd more capabilities to typarams bounded by traits with super-builtin-kinds. Close...
Ben Blum [Mon, 19 Aug 2013 20:50:23 +0000 (16:50 -0400)]
Add more capabilities to typarams bounded by traits with super-builtin-kinds. Close #7083.

10 years agoAdd tests for #7083.
Ben Blum [Fri, 16 Aug 2013 22:21:02 +0000 (18:21 -0400)]
Add tests for #7083.

10 years agoAllow traits to use builtin kinds as supertraits for #7083.
Ben Blum [Fri, 16 Aug 2013 20:57:42 +0000 (16:57 -0400)]
Allow traits to use builtin kinds as supertraits for #7083.

10 years agoPrevent Send, Freeze, and Sized from being manually implemented. Close #8517.
Ben Blum [Wed, 14 Aug 2013 22:13:16 +0000 (18:13 -0400)]
Prevent Send, Freeze, and Sized from being manually implemented. Close #8517.

10 years agoauto merge of #8566 : toddaaro/rust/idle-opt+cleaning, r=catamorphism,brson
bors [Tue, 20 Aug 2013 16:42:00 +0000 (09:42 -0700)]
auto merge of #8566 : toddaaro/rust/idle-opt+cleaning, r=catamorphism,brson

Instead of a furious storm of idle callbacks we just have one. This is a major performance gain - around 40% on my machine for the ping pong bench.

Also in this PR is a cleanup commit for the scheduler code. Was previously up as a separate PR, but bors load + imminent merge hell led me to roll them together. Was #8549.

10 years agoFix LLVM compilation issues and use the new attrs
Alex Crichton [Tue, 6 Aug 2013 04:21:37 +0000 (21:21 -0700)]
Fix LLVM compilation issues and use the new attrs

This implements #[no_split_stack] and also changes #[fast_ffi] to using the new
"fixedstacksegment" string attribute instead of integer attribute.

10 years agoauto merge of #8463 : brson/rust/borrowck, r=nmatsakis,nikomatsakis
bors [Tue, 20 Aug 2013 13:41:58 +0000 (06:41 -0700)]
auto merge of #8463 : brson/rust/borrowck, r=nmatsakis,nikomatsakis

r? @nikomatsakis

10 years agoauto merge of #8638 : pnkfelix/rust/fsk-visitor-vpar-defaults-step5, r=huonw
bors [Tue, 20 Aug 2013 10:52:01 +0000 (03:52 -0700)]
auto merge of #8638 : pnkfelix/rust/fsk-visitor-vpar-defaults-step5, r=huonw

"non-mechanical" : there was lots more hacking than the other more-mechanical ports Felix did.

r? @huonw.  (Or @nikomatsakis ; I just want someone to sanity-check this.  Its not a thing of beauty.)

Followup to #8623.  (See #8527, which was step 1 of 5, for the full outline.  Part of #7081.)

Notes on the change follow.

There's also a strange pattern that I hacked in to accommodate the
Outer/Inner traversal structure of the existing code (which was
previously encoding this by untying the Y-combinator style knot of the
vtable, and then retying it but superimposing new methods that "stop
at items").  I hope either I or someone else can come back in the
future and replace this ugliness with something more natural.

Added boilerplate macro; all the OuterLint definitions are the same
(but must be abstracted over implementing struct, thus the macro).

Revised lint.rs use declarations to make ast references explicit.
Also removed unused imports.

10 years agoadd line break post dbaupp review.
Felix S. Klock II [Tue, 20 Aug 2013 10:25:34 +0000 (12:25 +0200)]
add line break post dbaupp review.

10 years agoremove trailing whitespace to placate make tidy.
Felix S. Klock II [Tue, 20 Aug 2013 09:09:47 +0000 (11:09 +0200)]
remove trailing whitespace to placate make tidy.

10 years agoPort lint.rs from oldvisit to <V:Visit> trait API. Less mechanical port.
Felix S. Klock II [Wed, 14 Aug 2013 08:24:42 +0000 (10:24 +0200)]
Port lint.rs from oldvisit to <V:Visit> trait API.  Less mechanical port.

That is, there was lots more hacking than the other more-mechanical
ports Felix did.

There's also a strange pattern that I hacked in to accommodate the
Outer/Inner traversal structure of the existing code (which was
previously encoding this by untying the Y-combinator style knot of the
vtable, and then retying it but superimposing new methods that "stop
at items").  I hope either I or someone else can come back in the
future and replace this ugliness with something more natural.

Added boilerplate macro; all the OuterLint definitions are the same
(but must be abstracted over implementing struct, thus the macro).

Revised lint.rs use declarations to make ast references explicit.
Also removed unused imports.

10 years agoUpgrade llvm to current HEAD
Alex Crichton [Tue, 6 Aug 2013 04:19:48 +0000 (21:19 -0700)]
Upgrade llvm to current HEAD

* This has one workaround patch (everything's testing just fine...)
* I reworked the fixedstacksegment attribute to be specified with a string
  rather than using a keyword and an integer and modifying the parser
* I added a "no-split-stack" attribute along the same lines as the
  "fixedstacksegment" attribute for #1226

10 years agoauto merge of #8548 : catamorphism/rust/unignore-rustpkg-tests, r=catamorphism
bors [Tue, 20 Aug 2013 06:41:55 +0000 (23:41 -0700)]
auto merge of #8548 : catamorphism/rust/unignore-rustpkg-tests, r=catamorphism

r? @brson This necessitated some cleanup to how we parse library filenames
when searching for libraries, since rustpkg may now create filenames
that contain '-' characters. Also cleaned up how rustpkg passes the
sysroot to a custom build script.

10 years agostd: Restore dynamic borrow tracking
Brian Anderson [Mon, 12 Aug 2013 01:54:23 +0000 (18:54 -0700)]
std: Restore dynamic borrow tracking

10 years agoauto merge of #8584 : thestinger/rust/jemalloc, r=graydon
bors [Tue, 20 Aug 2013 03:21:58 +0000 (20:21 -0700)]
auto merge of #8584 : thestinger/rust/jemalloc, r=graydon

This reverts commit 371a316ec93a977f9dcd305b5f532cd394fa6885.

Closes #7217

10 years agoRename functional-struct-update.rs to avoid tripping Windows installer detector.
Vadim Chugunov [Mon, 19 Aug 2013 22:28:13 +0000 (15:28 -0700)]
Rename functional-struct-update.rs to avoid tripping Windows installer detector.
(The "update" keyword in the test name makes Windows want to run it with elevated privileges, which fails of course)

10 years agojemalloc: use $(AR), not `ar`
Daniel Micay [Tue, 20 Aug 2013 00:52:28 +0000 (20:52 -0400)]
jemalloc: use $(AR), not `ar`

10 years agoregenerate configure
Graydon Hoare [Tue, 20 Aug 2013 00:43:47 +0000 (17:43 -0700)]
regenerate configure

10 years agoauto merge of #8500 : graydon/rust/2013-08-13-self-rollup, r=thestinger
bors [Tue, 20 Aug 2013 00:42:35 +0000 (17:42 -0700)]
auto merge of #8500 : graydon/rust/2013-08-13-self-rollup, r=thestinger

close #8424 r=brson
close #8173 r=brson
close #8209 r=strcat

10 years agodoc: add condition tutorial
Graydon Hoare [Fri, 16 Aug 2013 23:03:24 +0000 (16:03 -0700)]
doc: add condition tutorial

10 years agoMake IO thread-safe.
Eric Reed [Fri, 9 Aug 2013 01:58:18 +0000 (18:58 -0700)]
Make IO thread-safe.

Each IO handle has a home event loop, which created it.
When a task wants to use an IO handle, it must first make sure it is on that home event loop.
It uses the scheduler handle in the IO handle to send itself there before starting the IO action.
Once the IO action completes, the task restores its previous home state.
If it is an AnySched task, then it will be executed on the new scheduler.
If it has a normal home, then it will return there before executing any more code after the IO action.

10 years agoHomed UDP sockets
Eric Reed [Wed, 7 Aug 2013 11:05:06 +0000 (04:05 -0700)]
Homed UDP sockets

10 years agoWorking homing UDP socket prototype.
Eric Reed [Wed, 7 Aug 2013 09:57:33 +0000 (02:57 -0700)]
Working homing UDP socket prototype.

10 years agoInstruct event loops to ignore SIGPIPE when constructed.
Eric Reed [Fri, 9 Aug 2013 00:04:19 +0000 (17:04 -0700)]
Instruct event loops to ignore SIGPIPE when constructed.

libuv does not always catch SIGPIPE.

10 years agoDo not execute the callback before cleaning up resources.
Eric Reed [Fri, 9 Aug 2013 00:10:22 +0000 (17:10 -0700)]
Do not execute the callback before cleaning up resources.

10 years agoDerive Clone for IpAddr and SocketAddr
Eric Reed [Thu, 8 Aug 2013 23:56:04 +0000 (16:56 -0700)]
Derive Clone for IpAddr and SocketAddr

10 years agort: make jemalloc header conform to android signature.
Graydon Hoare [Mon, 19 Aug 2013 23:09:46 +0000 (16:09 -0700)]
rt: make jemalloc header conform to android signature.

10 years agorustpkg: Un-ignore most of the remaining tests
Tim Chevalier [Fri, 16 Aug 2013 01:36:39 +0000 (18:36 -0700)]
rustpkg: Un-ignore most of the remaining tests

This necessitated some cleanup to how we parse library filenames
when searching for libraries, since rustpkg may now create filenames
that contain '-' characters. Also cleaned up how rustpkg passes the
sysroot to a custom build script.

10 years agocompiletest: do not run tests in sub-threads if on valgrind.
Graydon Hoare [Mon, 19 Aug 2013 22:08:47 +0000 (15:08 -0700)]
compiletest: do not run tests in sub-threads if on valgrind.

10 years agoTry to fix mac valgrind bot by disabling thread-heavy activities.
Graydon Hoare [Fri, 9 Aug 2013 23:30:44 +0000 (16:30 -0700)]
Try to fix mac valgrind bot by disabling thread-heavy activities.

10 years agoAdd tests for cross-crate condition handling. Close #5446.
Graydon Hoare [Fri, 2 Aug 2013 01:09:20 +0000 (18:09 -0700)]
Add tests for cross-crate condition handling. Close #5446.

10 years agotest: add testcase, close #4929 which was already fixed.
Graydon Hoare [Thu, 1 Aug 2013 19:00:24 +0000 (12:00 -0700)]
test: add testcase, close #4929 which was already fixed.

10 years agotest: un-xfail now working run-pass/foreign-struct.rs, close #2334.
Graydon Hoare [Thu, 1 Aug 2013 01:31:05 +0000 (18:31 -0700)]
test: un-xfail now working run-pass/foreign-struct.rs, close #2334.

10 years agoauto merge of #8623 : pnkfelix/rust/fsk-visitor-vpar-defaults-step4, r=nmatsakis
bors [Mon, 19 Aug 2013 22:02:07 +0000 (15:02 -0700)]
auto merge of #8623 : pnkfelix/rust/fsk-visitor-vpar-defaults-step4, r=nmatsakis

Follow up to #8619 (step 3 of 5).

(See #8527, which was step 1 of 5, for the full outline.)

Part of #7081.

10 years agoauto merge of #8459 : thestinger/rust/checked, r=graydon
bors [Mon, 19 Aug 2013 19:42:48 +0000 (12:42 -0700)]
auto merge of #8459 : thestinger/rust/checked, r=graydon

10 years agoclean whitespace :/
toddaaro [Mon, 19 Aug 2013 19:01:13 +0000 (12:01 -0700)]
clean whitespace :/

10 years agoRemove discriminant symbols.
Jed Davis [Thu, 15 Aug 2013 03:51:03 +0000 (20:51 -0700)]
Remove discriminant symbols.

Given that bootstrapping and running the testsuite works without
exporting discriminant values as global constants, I conclude that
they're unused and can be removed.

10 years agoMake supertrait methods callable on object types.
Michael Sullivan [Tue, 13 Aug 2013 20:22:58 +0000 (13:22 -0700)]
Make supertrait methods callable on object types.

This requires changes to method search and to codegen. We now emit a
vtable for objects that includes methods from all supertraits.
Closes #4100.

Also, actually populate the cache for vtables, and also key it by type
so that it actually works.

10 years agoRangechange the log message truncation limit.
Michael Sullivan [Tue, 13 Aug 2013 23:37:02 +0000 (16:37 -0700)]
Rangechange the log message truncation limit.

10 years agoauto merge of #8619 : pnkfelix/rust/fsk-visitor-vpar-defaults-step3, r=nmatsakis
bors [Mon, 19 Aug 2013 16:12:03 +0000 (09:12 -0700)]
auto merge of #8619 : pnkfelix/rust/fsk-visitor-vpar-defaults-step3, r=nmatsakis

Follow up to #8539 (step 2 of 5).

(See  #8527, which was step 1 of 5, for the full outline.)

Part of #7081.

10 years agostd::str: Use iterators instead of while loops for CharSplitIterator
blake2-ppc [Mon, 19 Aug 2013 13:34:48 +0000 (15:34 +0200)]
std::str: Use iterators instead of while loops for CharSplitIterator

Embed an iterator in the CharSplitIterator struct, and combine that with
the former bool `only_ascii`; so use an enum instead.

10 years agoauto merge of #8539 : pnkfelix/rust/fsk-visitor-vpar-defaults-step2, r=graydon,nikoma...
bors [Mon, 19 Aug 2013 13:52:03 +0000 (06:52 -0700)]
auto merge of #8539 : pnkfelix/rust/fsk-visitor-vpar-defaults-step2, r=graydon,nikomatsakis

r? @nikomatsakis

Follow up to #8527 (which was step 1 of 5).  See that for overall description

Part of #7081