Commit Graph

32955 Commits

Author SHA1 Message Date
bors
b5ba2f5517 auto merge of #17820 : pnkfelix/rust/fsk-improve-binary_search-doc2, r=alexcrichton
Add example to doc for `slice::ImmutableSlice::binary_search`.

Fix #17817.
2014-10-06 20:27:14 +00:00
bors
77a4f37246 auto merge of #17692 : brson/rust/copywut, r=alexcrichton 2014-10-06 18:37:10 +00:00
Brian Anderson
b534bb4a99 Update COPYRIGHT to better reflect the current repo 2014-10-06 10:55:39 -07:00
bors
3a38797f49 auto merge of #17798 : tomjakubowski/rust/rustdoc-fix-bounds, r=alexcrichton
This PR adds support in rustdoc for properly naming lifetimes in bounds, instead of just showing `'static` for everything. It also adds support for unboxed function sugar bounds, which were also previously rendered as `'static`.
2014-10-06 16:47:13 +00:00
bors
3edcdbb0c0 auto merge of #17796 : tomjakubowski/rust/rustdoc-ice-17736, r=alexcrichton
Previously, external code might call `markdown::render()` without having
called `markdown::reset_headers()`, meaning the TLS key
`used_header_map` was unset.  Now `markdown::render()` ensures that
`used_header_map` is set by calling `reset_headers` if necessary.

Fix #17736
2014-10-06 14:57:19 +00:00
Felix S. Klock II
d1e0f7259e Add example to doc for slice::ImmutableSlice::binary_search.
Fix #17817.
2014-10-06 15:59:22 +02:00
Tom Jakubowski
7a6eaea720 rustdoc: Include lifetimes in re-exported bounds
Fix #17818
2014-10-06 06:11:21 -07:00
bors
0d94fdaeb8 auto merge of #17814 : vhbit/rust/ios-build-fix, r=huonw 2014-10-06 13:07:19 +00:00
bors
7ce1a17cad auto merge of #17812 : thestinger/rust/jemalloc, r=alexcrichton
This includes optimizations to the thread cache and support for
shrinking and expanding huge (>4M) allocations in-place.
2014-10-06 11:17:16 +00:00
Tom Jakubowski
3bd4475278 rustdoc: Remove dummy UnknownBound variant 2014-10-06 02:30:22 -07:00
bors
7c8fc95aca auto merge of #17803 : bkoropoff/rust/issue-17021, r=alexcrichton
This closes issue #17021.
2014-10-06 09:27:19 +00:00
Tom Jakubowski
7be20574e0 rustdoc: Support unboxed fn sugar in bounds 2014-10-06 02:23:55 -07:00
Tom Jakubowski
2f955c73d6 rustdoc: Correctly name lifetimes in bounds
Fix #16518
2014-10-06 02:23:53 -07:00
Tom Jakubowski
942bed7aa6 rustdoc: make calls of markdown::render safer
Previously, external code might call `markdown::render()` without having
called `markdown::reset_headers()`, meaning the TLS key
`used_header_map` was unset.  Now `markdown::render()` ensures that
`used_header_map` is set by calling `reset_headers` if necessary.

Fix #17736
2014-10-06 01:51:58 -07:00
bors
0e2f0acf22 auto merge of #17781 : P1start/rust/bitflags-lints, r=alexcrichton
Closes #17773.
2014-10-06 07:37:19 +00:00
Valerii Hiora
893a114db5 Fixed iOS build (statics name lint) 2014-10-06 09:25:01 +03:00
P1start
8e58771965 Remove the #[allow(non_uppercase_statics)] attr from bitflags! 2014-10-06 16:43:34 +13:00
P1start
e3ca987f74 Rename the file permission statics in std::io to be uppercase
For example, this renames `GroupRWX` to `GROUP_RWX`, and deprecates the old
name. Code using these statics should be updated accordingly.
2014-10-06 16:43:34 +13:00
bors
f50b56c62b auto merge of #17414 : jakub-/rust/issue-17405, r=alexcrichton
Fixes #17405.
Fixes #17518.
Fixes #17800.
2014-10-06 02:52:22 +00:00
Daniel Micay
2421881d38 update jemalloc
This includes optimizations to the thread cache and support for
shrinking and expanding huge (>4M) allocations in-place.
2014-10-05 22:17:25 -04:00
bors
6d15f28986 auto merge of #17809 : thestinger/rust/windows, r=eddyb 2014-10-06 00:27:16 +00:00
Daniel Micay
6bb648fadc work around yet another MinGW-w64 ASLR bug 2014-10-05 19:02:36 -04:00
bors
9978dc87aa auto merge of #17794 : SimonSapin/rust/patch-8, r=alexcrichton 2014-10-05 21:07:10 +00:00
Jakub Wieczorek
b9896cbf6e Fix handling of struct variants in a couple of places
Fixes #17405.
Fixes #17518.
Fixes #17800.
2014-10-05 22:32:47 +02:00
Brian Koropoff
1694bf64ba Build regression test for issue #17021 with -g
This causes it to hit the previously ICEing debuginfo codepath
2014-10-05 12:19:58 -07:00
Brian Koropoff
24d7669099 Handle emitting debug info for unboxed closures
This fixes an ICE.  Closes issue #17021
2014-10-05 12:19:22 -07:00
bors
f56c1c91f3 auto merge of #17762 : bkoropoff/rust/issue-17734, r=alexcrichton
Closes issue #17734

r? @nick29581
2014-10-05 19:17:07 +00:00
Brian Koropoff
714c8d8659 Add regression test for issue #17734 2014-10-05 10:09:24 -07:00
bors
027d6b4d53 auto merge of #17799 : ebfe/rust/cfg_warn, r=alexcrichton
Probably fallen through the cracks in #17630.
2014-10-05 17:02:11 +00:00
Michael Gehring
67d83f3bfc Fix cfg syntax warnings in libnative 2014-10-05 18:44:14 +02:00
Simon Sapin
80401da12e String::truncate doc: also fails if not a char boundary 2014-10-05 12:15:59 +01:00
bors
c586490715 auto merge of #17785 : P1start/rust/diagnostics, r=alexcrichton
Closes #17765.
Closes #15524.
Closes #14772.
2014-10-05 10:57:04 +00:00
bors
dfbe9eb3b2 auto merge of #17777 : lambda/rust/fix-docs-short-hash, r=alexcrichton
The escaped newline in the middle of the variable reference breaks the
short hash substitution, leaving the link text exmpty; rewrap so that
each replacement is on its own line.
2014-10-05 09:07:06 +00:00
bors
5660db2508 auto merge of #16970 : kmcallister/rust/llvm-unreachable, r=thestinger
I'm not sure how to add an automated test for this.
2014-10-05 07:17:09 +00:00
bors
3b8c528d08 auto merge of #17776 : luqmana/rust/ul, r=alexcrichton
Update our LLVM snapshot to master (as of ~ Wed Oct 1 18:49:58 2014 +0000). 

Since my patches have landed upstream this fixes #13429 and #7298.
2014-10-05 04:57:11 +00:00
bors
026206695a auto merge of #17774 : lambda/rust/docs-mention-hoedown, r=steveklabnik
Rust 0.11.0 switched from sundown to the actively maintained hoedown; update the rustdoc documention to mention this.
2014-10-05 03:12:10 +00:00
Keegan McAllister
675aa7692d Add tests for intrinsics::unreachable 2014-10-04 20:09:09 -07:00
Keegan McAllister
401aeaf6d3 Add intrinsics::unreachable 2014-10-04 20:09:09 -07:00
bors
5ca68d4ac1 auto merge of #17772 : bkoropoff/rust/issue-17767, r=alexcrichton
Closes issue #17767
2014-10-05 01:27:10 +00:00
P1start
cc31d9cabc Give a more descriptive error when marking non-test items as #[test]
Closes #14772.
2014-10-05 14:16:32 +13:00
P1start
a29df44f51 Tweak ‘discriminant value already exists’ error message
Closes #15524.
2014-10-05 14:16:32 +13:00
bors
dc987adfc1 auto merge of #17766 : pminten/rust/atomic-int-in-examples, r=alexcrichton
The examples for fetch_or, fetch_and and fetch_xor for
std::sync::atomic::AtomicInt used AtomicUint instead of AtomicInt.
2014-10-04 23:42:07 +00:00
P1start
88baca7486 Rename vector patterns to array patterns
Closes #17765.
2014-10-05 12:08:37 +13:00
bors
07aeac8ac8 auto merge of #17761 : bkoropoff/rust/issue-17758, r=alexcrichton
This fixes an ICE and closes issue #17758
2014-10-04 21:57:08 +00:00
bors
a2e7c4da9b auto merge of #17738 : hoeppnertill/rust/master, r=alexcrichton
There is an issue with lev_distance, where
```
fn main() {
    println!("{}", "\x80".lev_distance("\x80"))
}
```
prints `2`.

This is due to using the byte length instead of the char length.
2014-10-04 19:32:07 +00:00
Brian Campbell
df4051e0b1 docs: Fix short hash link to github
The escaped newline in the middle of the variable reference breaks the
short hash substitution, leaving the link text exmpty; rewrap so that
each replacement is on its own line.
2014-10-04 14:41:37 -04:00
bors
e434aa1cf7 auto merge of #17760 : bkoropoff/rust/issue-17737, r=eddyb
This is a quick fix.  In the long term, the `TyVisitor` interface should be expanded to better represent closure types.

Closes issue #17737
2014-10-04 17:47:06 +00:00
Brian Campbell
fe8f43030a docs: Reference hoedown instead of sundown 2014-10-04 13:42:23 -04:00
Luqman Aden
4b22178d32 Update LLVM. 2014-10-04 13:28:57 -04:00
Brian Koropoff
e364584071 Fix infinite recursion in Writer impl for &mut Writer
Closes issue #17767
2014-10-04 10:24:10 -07:00