summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2015-05-31Inline hash_table::calculate_offsets, used by iterators.Eduard Burtescu-0/+1
The `HashMap` and `HashSet` iterators use `RawTable::first_bucket_raw` which is generic and will get inlined cross-crate. However, `first_bucket_raw` calls `calculate_offsets` and the call doesn't get inlined, despite being a simple function. This missing `#[inline]` results in `hash_table::calculate_offsets` showing up at the top of a callgrind profile with 3 million calls (for the testcase in #25916).
2015-05-31Auto merge of #25914 - andars:master, r=sanxiynbors-1/+1
Previous: ``` --disable-llvm-version-check don't don't check if the LLVM version is supported, build anyway ``` New: ``` --disable-llvm-version-check don't check if the LLVM version is supported, build anyway ```
2015-05-30remove duplicate "don't"Andrew Foote-1/+1
2015-05-30TRPL: Fix a broken link to 'borrowing'olombard-1/+1
2015-05-30Auto merge of #25882 - steveklabnik:gh25554, r=alexcrichtonbors-2/+6
Fixes #25554
2015-05-30Fixes consistency in before/after examplefrankamp-1/+1
The doc indicates that you can replace 'before' with 'after' showing the use of try!. The two examples should be equivalent, but they are not. In the File::create we were inducing a panic before in case of error, not propagating. It is important for newbies (like myself) to understand that try! propagates failures, while unwrap can induce a panic. The other alternative is to make the 'before' File::create also manually handle Err like the other calls. Either way it would be consistent.
2015-05-30Mark Arc function get_mut and method make_unique unsafeUlrik Sverdrup-35/+56
This is a temporary mitigation for issue #24880 which points out that these functions are racy in a particular situation where weak pointers exist. To mitigate this, mark the functions unsafe until this can be fixed or another decision is made. This is a breaking change to unstable API, because the new version requires an `unsafe` block. Review carefully if weak pointers may race for any uses of this API and consider abandoning it. [breaking-change]
2015-05-30doc: be more clear/explicit that we got String typeTshepang Lekhonkhobe-1/+1
2015-05-30debuginfo: Create common debugger pretty printer module.Michael Woerister-421/+737
GDB and LLDB pretty printers have some common functionality and also access some common information, such as the layout of standard library types. So far, this information has been duplicated in the two pretty printing python modules. This commit introduces a common module used by both debuggers.
2015-05-30Auto merge of #25904 - benaryorg:master, r=steveklabnikbors-1/+1
perhaps the smallest and least useful fix in the whole history of rust I will not blame you if you do not want to merge it
2015-05-30Warn if the test suite is run on Windows in console with non-UTF-8 code pagepetrochenkov-5/+13
2015-05-30fix documentation in libserializebenaryorg-1/+1
the object was serialized with an 'i' but the comment stated the print command would output 'j'
2015-05-30Extend rust reference with a section about type coercionsLorenz-0/+120
2015-05-30Extend rust reference with a section about subtypingLorenz-0/+20
2015-05-30std::io: bump the stability tag on ErrorKind::InvalidData to 1.2.0Mikhail Zabaluev-1/+1
2015-05-30Proposal to explain the copy trait more clearly Mathieu David-0/+43
As mentioned in #25893 the copy trait is not very well explained for beginners. There is no clear mention that all primitive types implement the copy trait and there are not a lot of examples. With this change I try to make it more visible and understandable for new users. I myself have struggled with this, see [my question on stackoverflow](http://stackoverflow.com/questions/30540419/why-are-booleans-copyable-even-though-the-documentation-doesnt-indicate-that). And I want to make it more transparent for others. I filed issue #25893 but I thought that I could give it a shot myself to relieve some of the work from the devs :) If it is not well written or there are some changes to be made before it can be merged, let me know. Cheers, Mathieu
2015-05-30Deprecate UnsafeCell::valuepetrochenkov-1/+8
2015-05-30Auto merge of #25818 - sfackler:socket-timeouts, r=alexcrichtonbors-9/+325
Closes #25619 r? @alexcrichton
2015-05-29Loosen timeout restrictionsSteven Fackler-20/+12
2015-05-30Auto merge of #25817 - XMPPwocky:once_cleanedup, r=alexcrichtonbors-0/+109
Closes #24443.
2015-05-29Auto merge of #25888 - steveklabnik:rollup, r=steveklabnikbors-36/+190
- Successful merges: #25788, #25861, #25864, #25865, #25866, #25873, #25876, #25883, #25886 - Failed merges:
2015-05-29Rollup merge of #25886 - nhowell:patch-1, r=steveklabnikSteve Klabnik-1/+1
r? @steveklabnik
2015-05-29Rollup merge of #25883 - steveklabnik:gh25417, r=alexcrichtonSteve Klabnik-2/+23
Fixes #25417
2015-05-29Rollup merge of #25876 - tshepang:patch-3, r=steveklabnikSteve Klabnik-4/+2
2015-05-29Rollup merge of #25873 - nham:update_E0015, r=AatchSteve Klabnik-14/+106
The E0397 explanation, as I've written it, isn't really an explanation, but I'm not sure what to put here. I will happily take suggestions. Partially addresses https://github.com/rust-lang/rust/issues/25851
2015-05-29Rollup merge of #25866 - jooert:update_guidelines, r=steveklabnikSteve Klabnik-6/+7
So that rust-guidelines can be deleted and src/doc/style can prosper as the official home of the rust guidelines. :smiley:
2015-05-29Rollup merge of #25865 - azerupi:patch-2, r=alexcrichtonSteve Klabnik-1/+1
"workd" corrected to "world"
2015-05-29Rollup merge of #25864 - azerupi:patch-1, r=alexcrichtonSteve Klabnik-1/+1
There was no opening parenthesis for this closing parenthesis...
2015-05-29Rollup merge of #25861 - tringenbach:master, r=steveklabnikSteve Klabnik-6/+48
This adds an example from mem::swap, and provides some suggested uses of this function. This is my attempt to summarize the answers to a question I asked on reddit http://www.reddit.com/r/rust/comments/37jcul/what_is_forget_for/ and add the answers to the documentation so that no one else has to google or ask the question again.
2015-05-29Rollup merge of #25788 - maxjacobson:add-missing-space-to-glossary, ↵Steve Klabnik-1/+1
r=steveklabnik r? @steveklabnik
2015-05-29Auto merge of #25494 - alexcrichton:stdio-from-raw, r=aturonbors-59/+243
This commit implements a number of standard traits for the standard library's process I/O handles. The `FromRaw{Fd,Handle}` traits are now implemented for the `Stdio` type and the `AsRaw{Fd,Handle}` traits are now implemented for the `Child{Stdout,Stdin,Stderr}` types. The stability markers for these implementations mention that they are stable for 1.1 as I will nominate this commit for cherry-picking to beta.
2015-05-29std::io: New ErrorKind value InvalidDataMikhail Zabaluev-2/+9
This takes the cases from InvalidInput where a data format error was encountered. This is different from the documented semantics of InvalidInput, which more likely indicate a programming error.
2015-05-29Implement RFC 771: std::iter::onceNathaniel Theis-0/+109
2015-05-29Improve mem::forget documentationTim Ringenbach-6/+48
This adds an example from mem::swap, and provides some suggested uses of this function. Change wording on comment on forget line to be more specific as to why we need to call forget. This breaks the examples up into three pieces. The last piece isn't compiling for some reason.
2015-05-29trpl: eight sections, not sevenNick Howell-1/+1
2015-05-29Auto merge of #25880 - nikomatsakis:const-fn-feature-gate-calls, r=alexcrichtonbors-7/+232
The previous feature gate assumed we would not define any (stable) const fns. But then @eddyb went and cleaned up the code. So this now extends the feature-gate to prohibit calls; but calls inside of macros are considered ok. r? @alexcrichton
2015-05-29Add syntax for multiple lifetimesSteve Klabnik-2/+23
Fixes #25417
2015-05-29Make note about $ more prominent.Steve Klabnik-2/+6
Fixes #25554
2015-05-29New tests for cross-crate usages of const fn and so forthNiko Matsakis-0/+131
2015-05-29Fix windows recvfrom definitionSteven Fackler-2/+1
2015-05-29Skip timeout upper bound check on windowsSteven Fackler-4/+12
2015-05-29Auto merge of #25857 - killercup:patch-14, r=steveklabnikbors-1/+1
Thanks to @cers who reported this in killercup/trpl-ebook#14! r? @steveklabnik
2015-05-29add const_fn featuresNiko Matsakis-1/+38
2015-05-29add a test for const fn methods, as suggested by @pnkfelixNiko Matsakis-0/+25
2015-05-29permit const-fn in macro expansionsNiko Matsakis-1/+10
2015-05-29Add feature-gate to calling const fnNiko Matsakis-7/+30
2015-05-29Auto merge of #25760 - Ms2ger:tagged_docs, r=Manishearthbors-272/+168
2015-05-29Auto merge of #25854 - liigo:patch-1, r=alexcrichtonbors-2/+2
2015-05-29Auto merge of #25838 - mbrubeck:doc-edit, r=steveklabnikbors-1/+5
Fixes #25622. r? @steveklabnik
2015-05-29remove the last mention of IoResultTshepang Lekhonkhobe-4/+2