about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2014-09-03Use a visitor to look for non-FFI-safe typesKeegan McAllister-40/+74
Fixes #16250.
2014-09-03Fix some non-FFI-safe types in externsKeegan McAllister-1/+3
2014-09-03auto merge of #16953 : nick29581/rust/dst-bug-7, r=pcwaltonbors-6/+41
Closes #16947 r?
2014-09-03auto merge of #16932 : crabtw/rust/mips, r=alexcrichtonbors-0/+6
Add missing liblibc constants
2014-09-03auto merge of #16811 : nick29581/rust/dst-bug-2, r=nikomatsakisbors-5/+29
closes #16800 r? @nikomatsakis - I'm not 100% sure this is the right approach, it is kind of ad-hoc. The trouble is we don't have any intrinsic notion of which types are sized and which are not, we only have the Sized bound, so I have nothing to validate the Sized bound against.
2014-09-03auto merge of #16634 : apoelstra/rust/to-option-fix, r=aturonbors-15/+70
As outlined in https://aturon.github.io/style/naming/conversions.html `to_` functions names should only be used for expensive operations. Thus `to_option` is better named `as_option`. Also, putting type names into method names is considered bad style; what the user is really trying to get is a reference. This `as_ref` is even better. Also, we are missing a mutable version of this method. Finally, there is a bug in the signature of `to_option` which has been around since lifetime elision: originally the returned reference had 'static lifetime, but since the elision changes this become the lifetime of the raw pointer (which does not make sense, since the pointer lifetime and referent lifetime are unrelated). We fix the bug to return a reference with a fresh lifetime which will be inferred from the calling context. [breaking-change]
2014-09-03auto merge of #16956 : nick29581/rust/unsized-test-1, r=alexcrichtonbors-2/+3
I landed this disabled, but it now passes since @pcwalton implemented RFC 11 r?
2014-09-03auto merge of #16940 : treeman/rust/fail-non-utf8, r=pnkfelixbors-1/+29
Closes #16877.
2014-09-03auto merge of #16934 : nick29581/rust/dst-bug-6, r=pcwaltonbors-5/+19
Closes #16911 r?
2014-09-03Enable a test for correct treatment of Sized?Nick Cameron-2/+3
2014-09-03Fix ICE when casting `&[T]` to `*const [T]`Nick Cameron-6/+41
Closes #16947
2014-09-03auto merge of #16917 : nick29581/rust/cross-trait, r=pcwaltonbors-25/+54
Closes #15349 r? @pcwalton (or anyone else)
2014-09-03auto merge of #16892 : andrew-d/rust/andrew-fix-test-reexports, r=sfacklerbors-13/+67
Fixes #16597 I'm not 100% sure this is the correct way to handle this - but I wasn't able to find a better way without doing way more refactoring of the code that I was comfortable with. Comments and criticism are appreciated :smile:
2014-09-02auto merge of #16850 : vks/rust/hash-num, r=alexcrichtonbors-8/+24
Updates #15294.
2014-09-02auto merge of #16944 : alexcrichton/rust/ignore-gdb-pretty, r=brsonbors-0/+2
These tests are blocking a linux nightly and a new snapshot, so ignore them for now. Their tracking issue is #16919.
2014-09-03Remove cross-borrowing for traits.Nick Cameron-19/+40
Closes #15349 [breaking-change] Trait objects are no longer implicitly coerced from Box<T> to &T. You must make an explicit coercion using `&*`.
2014-09-03Schedule cleanup for &* on fat owned pointersNick Cameron-6/+14
For example `let _x: &Trait = &*(box Foo as Box<Trait>);`. There was a bug where no cleanup would be scheduled by the deref. No test because cleanup-auto-borrow-obj.rs is a test for this once we remove trait cross-borrowing (done on another branch).
2014-09-02auto merge of #16916 : alexcrichton/rust/tcp-accept-stress-again-oh-my, r=brsonbors-10/+19
The tcp-accept-stress, despite the previous modifications, is still deadlocking on the osx buildbots. When building/testing/running repeatedly locally, it was discovered that the test would often fail with TcpStream::connect returning the error `address not available`. This test opens up quite a large number of sockets, and it looks like by default osx isn't the speediest at recycling those sockets for further use. The test has been modified (and verified) to not deadlock in this error case, and the test is not just officially ignored on OSX (with no FIXME). I believe that we'll get good coverage of the relevant code on the linux builders, so this isn't so much of a loss. At the same time I turned down the stress parameters to hopefully lighten the socket load on other platforms.
2014-09-02test: Ignore failing gdb pretty testsAlex Crichton-0/+2
These tests are blocking a linux nightly and a new snapshot, so ignore them for now. Their tracking issue is #16919.
2014-09-02Prevent failure when using fail! with invalid utf8.Jonas Hietala-1/+29
Closes #16877.
2014-09-02auto merge of #16925 : jbcrail/rust/doc-spelling-errors, r=alexcrichtonbors-7/+7
I fixed spelling mistakes in the documentation.
2014-09-02auto merge of #16805 : nick29581/rust/dst-raw, r=nikomatsakisbors-76/+413
r? @pnkfelix or @nikomatsakis
2014-09-02Reviewer changesNick Cameron-65/+108
2014-09-02auto merge of #16924 : steveklabnik/rust/manual_pointer_fix, r=pcwaltonbors-20/+8
This was brought up in IRC: https://botbot.me/mozilla/rust/2014-08-30/?msg=20733803&page=26
2014-09-02Fix ICE with static DST coercionNick Cameron-5/+19
Closes #16911
2014-09-02Fix MIPS targetJyun-Yan You-0/+6
Add missing liblibc constants
2014-09-01ignore-pretty the testAndrew Dunham-0/+1
2014-09-01doc: Fix spelling errors.Joseph Crail-7/+7
2014-09-02DST raw pointers - *-pointers are fat pointersNick Cameron-69/+363
2014-09-01auto merge of #16897 : japaric/rust/mut-slice-collection, r=alexcrichtonbors-0/+9
2014-09-01auto merge of #16867 : wickerwaka/rust/ice-16750, r=alexcrichtonbors-12/+49
Not sure if this is addressing the root cause or just patching up a symptom. Also not sure if I should be adding a diagnostic code for this. Fixes #16750 Fixes #15812
2014-09-01Fix pointer types in the manual.Steve Klabnik-20/+8
2014-09-01auto merge of #16891 : eddyb/rust/patlit-from-expr-macros, r=kballardbors-0/+20
Enables any macros using `MacExpr` to be treated as patterns when they produce a literal in the form `ExprLit` (e.g. `stringify!` or `line!`). Fixes #16876.
2014-09-01auto merge of #16886 : Tobba/rust/defailbloat-string, r=alexcrichtonbors-3/+9
by not performing formatting at the failure site This cuts about 673382 bytes from libcore.rlib
2014-09-01auto merge of #16871 : retep998/rust/win64-fix, r=alexcrichtonbors-1/+1
It was in a x86_64 block so the buildbots didn't notice it. Fixes #16905
2014-09-01auto merge of #16802 : nick29581/rust/dst-bug-1, r=luqmanabors-0/+20
Closes #16783 r? @nikomatsakis
2014-09-01auto merge of #16844 : mrmonday/rust/liblibc-custom-socket, r=alexcrichtonbors-7/+152
These are the additions to liblibc required for raw/custom socket support. I've broken this into a separate pull request due to the upcoming I/O overhaul (was originally part of pull #15741). cc @alexcrichton.
2014-08-31test: Tweak tcp-accept-stress one last timeAlex Crichton-10/+19
The tcp-accept-stress, despite the previous modifications, is still deadlocking on the osx buildbots. When building/testing/running repeatedly locally, it was discovered that the test would often fail with TcpStream::connect returning the error `address not available`. This test opens up quite a large number of sockets, and it looks like by default osx isn't the speediest at recycling those sockets for further use. The test has been modified (and verified) to not deadlock in this error case, and the test is not just officially ignored on OSX (with no FIXME). I believe that we'll get good coverage of the relevant code on the linux builders, so this isn't so much of a loss. At the same time I turned down the stress parameters to hopefully lighten the socket load on other platforms.
2014-09-01Second approach - using type contentsNick Cameron-28/+11
2014-08-31auto merge of #16809 : nick29581/rust/dst-bug-3, r=alexcrichtonbors-13/+27
This corrects a rebasing error. Also adds a test so it won't happen again. r?
2014-08-31Rename `RawPtr::to_option()` to `RawPtr::as_ref()`Andrew Poelstra-15/+70
As outlined in https://aturon.github.io/style/naming/conversions.html `to_` functions names should only be used for expensive operations. Thus `to_option` is better named `as_option`. Also, putting type names into method names is considered bad style; what the user is really trying to get is a reference. This `as_ref` is even better. Also, we are missing a mutable version of this method. So add a new trait `RawMutPtr` with a corresponding `as_mut` methode. Finally, there is a bug in the signature of `to_option` which has been around since lifetime elision: originally the returned reference had 'static lifetime, but since the elision changes this become the lifetime of the raw pointer (which does not make sense, since the pointer lifetime and referent lifetime are unrelated). Fix the bug to return a reference with a fresh lifetime (which will be inferred from the calling context). [breaking-change]
2014-08-31auto merge of #16894 : alexcrichton/rust/issue-16872, r=huonwbors-5/+1
It was previously asserted that each thread received at least one connection, but this is not guaranteed to always be the case due to scheduling. This test also deadlocked on failure due to a lingering reference to the sending half of the channel, so that reference is now also eagerly dropped so the test can fail properly if something bad happens. Closes #16872
2014-08-31auto merge of #16788 : Manishearth/rust/raw-ptr-syntax-ty, r=huonwbors-1/+16
@huonw , r? :) #16781
2014-08-31auto merge of #16895 : alexcrichton/rust/rollup, r=alexcrichtonbors-228/+385
Let's try this again!
2014-08-31&mut [T] now implements Collection. Fixes #16896Jorge Aparicio-0/+9
2014-08-30rollup merge of #16881 : cmr/guide-typoAlex Crichton-1/+1
2014-08-30Address review comments, add testsAndrew Dunham-2/+35
2014-08-30rollup merge of #16852 : steveklabnik/desugar_destructureAlex Crichton-1/+1
2014-08-30rollup merge of #16849 : nhowell/patch-1Alex Crichton-5/+5
2014-08-30rollup merge of #16846 : treeman/debug-docAlex Crichton-141/+236