Commit Graph

43154 Commits

Author SHA1 Message Date
Manish Goregaokar ce3bc8d884 Rollup merge of #25949 - mbrubeck:ndebug, r=alexcrichton
As of rust-lang/rust#22980 only `cfg(debug_assertions)` is used in the
standard library and rustc code.
2015-06-02 11:14:09 +05:30
Manish Goregaokar 98612dad9b Rollup merge of #25941 - puzza007:trpl-infinite-iterator-chain-take, r=steveklabnik 2015-06-02 11:14:08 +05:30
Manish Goregaokar a85150b58a Rollup merge of #25936 - tshepang:patch-2, r=alexcrichton 2015-06-02 11:14:08 +05:30
Manish Goregaokar 46ebed55a6 Rollup merge of #25933 - bluss:rustdoc-fn-css, r=alexcrichton
rustdoc: Tweak css of function where clauses

Method where clauses are put indented on a new line, do the same tweak
to free functions, which makes it cleaner and easier to read.
2015-06-02 11:14:08 +05:30
Manish Goregaokar 04abc05094 Rollup merge of #25932 - bluss:doc-book-1, r=alexcrichton
trpl: Fix typo in Raw Pointers chapter
2015-06-02 11:14:08 +05:30
Manish Goregaokar 9c77784668 Rollup merge of #25920 - tshepang:option-map-example, r=Gankro 2015-06-02 11:14:08 +05:30
Manish Goregaokar 4f5a7440db Rollup merge of #25821 - jooert:remove_build_date, r=brson
Closes #25812.
2015-06-02 11:14:07 +05:30
Manish Goregaokar 7da2228861 Rollup merge of #25751 - steveklabnik:translations, r=brson
/cc @kgv, @rust-kr, @KaiserY, @mkpankov
2015-06-02 11:14:07 +05:30
bors f813f97797 Auto merge of #25654 - petrochenkov:encenv, r=alexcrichton
Fixes https://github.com/rust-lang/rust/issues/25268 and a couple of similar test errors

r? @alexcrichton
2015-06-02 02:08:17 +00:00
bors 613e57b448 Auto merge of #25246 - mzabaluev:io-invalid-data, r=alexcrichton
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.

Fixes rust-lang/rfcs#906
2015-06-01 23:12:52 +00:00
Matt Brubeck 7d95c22244 Stop passing the old ndebug/debug cfg directives
As of rust-lang/rust#22980 only `cfg(debug_assertions)` is used in the
standard library and rustc code.
2015-06-01 14:01:13 -07:00
Steve Klabnik 321c2f4f8c Add community translations. 2015-06-01 15:57:44 -04:00
bors a49ae5bd43 Auto merge of #25858 - alexcrichton:disable-os-tls, r=brson
This commit adds a ./configure option called `--disable-elf-tls` which disables
ELF based TLS (that which is communicated to LLVM) on platforms which already
support it. OSX 10.6 does not support this form of TLS, and some users of Rust
need to target 10.6 and are unable to do so due to the usage of TLS. The
standard library will continue to use ELF based TLS on OSX by default (as the
officially supported platform is 10.7+), but this adds an option to compile the
standard library in a way that is compatible with 10.6.

Closes #25342
2015-06-01 19:51:57 +00:00
Tshepang Lekhonkhobe 8221715b95 doc: improve Option::map example 2015-06-01 20:49:33 +02:00
petrochenkov a40bca29a8 Fix platform detection 2015-06-01 20:50:35 +03:00
bors 3e561f05c0 Auto merge of #25825 - GuillaumeGomez:check_co, r=Manishearth
Part of #24407.
2015-06-01 10:59:37 +00:00
Paul Oliver 5fefae684a trpl: Use infinite iterator in chain example with take 2015-06-01 12:44:50 +02:00
Guillaume Gomez dbfc8c5a07 Update diagnostics.rs 2015-06-01 12:33:41 +02:00
Guillaume Gomez 42c5c982c4 Remove full path 2015-06-01 10:46:28 +02:00
bors baf508ba20 Auto merge of #25924 - FuGangqiang:master, r=Gankro 2015-06-01 04:57:00 +00:00
bors 971731849d Auto merge of #25923 - tshepang:patch-1, r=Gankro 2015-06-01 02:18:49 +00:00
bors 9cb7b3ffb6 Auto merge of #25922 - tshepang:better-map-or-doc, r=Gankro
`def` is also ambiguous
2015-06-01 00:45:44 +00:00
bors 16d037866d Auto merge of #25907 - tshepang:patch-8, r=Gankro 2015-05-31 23:13:26 +00:00
Tshepang Lekhonkhobe 3af8e14cd1 doc: make String::as_bytes example more simple 2015-06-01 00:26:11 +02:00
bors 02e4c4b8c8 Auto merge of #25911 - olombard:borrowing-link, r=alexcrichton
r? @steveklabnik
2015-05-31 21:40:47 +00:00
Ulrik Sverdrup 0ac24d6bff rustdoc: Tweak css of function where clauses
Method where clauses are put indented on a new line, do the same tweak
to free functions, which makes it cleaner and easier to read.
2015-05-31 22:46:19 +02:00
Ulrik Sverdrup 6cb061721c trpl: Fix typo in Raw Pointers chapter 2015-05-31 22:35:59 +02:00
bors 845cee4e20 Auto merge of #25908 - bluss:arc-mark-unsafe, r=sfackler
Mark Arc function get_mut and method make_unique unsafe

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.
2015-05-31 20:07:49 +00:00
bors 60926b8c59 Auto merge of #25927 - stevegury:patch-1, r=steveklabnik
`(1..100).map(|x| x + 1)` is actually mapping [1,100) to [2,101)
2015-05-31 17:39:26 +00:00
Guillaume Gomez 9eb416b8a4 Add E0011 explanation 2015-05-31 19:34:03 +02:00
Steve Gury bef936111d Update iterators.md
Fix the actual off by one
2015-05-31 10:24:30 -07:00
Steve Gury 4425422bdd Fix off by one in the iterator documentation
`(1..100).map(|x| x + 1)` is actually mapping [1,100) to [2,101)
2015-05-31 07:32:21 -07:00
FuGangqiang bdef7faaba trpl:add missing comma 2015-05-31 18:16:58 +08:00
bors 243e85f393 Auto merge of #25921 - eddyb:inline-calculate-offsets, r=Aatch
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-31 09:53:49 +00:00
Tshepang Lekhonkhobe 89ee223c9c doc: fix displayed message 2015-05-31 10:49:22 +02:00
Tshepang Lekhonkhobe eb3566f239 doc: improve map_or and map_or_else 2015-05-31 10:16:49 +02:00
Eduard Burtescu 4a4315bf4b Inline hash_table::calculate_offsets, used by iterators.
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-31 11:03:46 +03:00
bors 93991f7555 Auto merge of #25914 - andars:master, r=sanxiyn
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-31 07:29:25 +00:00
Andrew Foote d4389c52ab remove duplicate "don't" 2015-05-30 18:13:51 -07:00
olombard 61207046de TRPL: Fix a broken link to 'borrowing' 2015-05-30 23:43:23 +02:00
bors 78c4d53871 Auto merge of #25882 - steveklabnik:gh25554, r=alexcrichton
Fixes #25554
2015-05-30 21:10:07 +00:00
Ulrik Sverdrup 32211e1d27 Mark Arc function get_mut and method make_unique unsafe
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-30 22:15:40 +02:00
Tshepang Lekhonkhobe aabff227d2 doc: be more clear/explicit that we got String type 2015-05-30 21:21:56 +02:00
bors ee1ba33c4c Auto merge of #25904 - benaryorg:master, r=steveklabnik
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-30 17:09:53 +00:00
petrochenkov 8c86f8ff8c Warn if the test suite is run on Windows in console with non-UTF-8 code page 2015-05-30 19:22:12 +03:00
benaryorg 2029799d17
fix documentation in libserialize
the object was serialized with an 'i' but the comment stated the print command
would output 'j'
2015-05-30 17:41:09 +02:00
Mikhail Zabaluev 0ad019f4e8 std::io: bump the stability tag on ErrorKind::InvalidData to 1.2.0 2015-05-30 15:09:13 +03:00
bors 474c6e0ae4 Auto merge of #25818 - sfackler:socket-timeouts, r=alexcrichton
Closes #25619 

r? @alexcrichton
2015-05-30 04:20:20 +00:00
Steven Fackler b5c6c7ed40 Loosen timeout restrictions 2015-05-29 19:09:29 -07:00
bors a0f028da07 Auto merge of #25817 - XMPPwocky:once_cleanedup, r=alexcrichton
Closes #24443.
2015-05-30 01:12:35 +00:00