Commit Graph

46592 Commits

Author SHA1 Message Date
bors
0a96756178 Auto merge of #28565 - apasel422:issue-28561, r=Manishearth
Closes #28561.

r? @Manishearth
2015-09-21 14:45:49 +00:00
Andrew Paseltiner
22f86d09e9 Add tests for macro-based impls
Closes #28561.
2015-09-21 10:42:18 -04:00
bors
c06f464d01 Auto merge of #28563 - baskerville:trpl-typo, r=bluss 2015-09-21 12:24:52 +00:00
Bastien Dejean
5b41488f3a TRPL: Fix typo 2015-09-21 12:37:58 +02:00
bors
6217b002ba Auto merge of #28560 - Manishearth:fix-fnptr-impls, r=nrc
(12 was chosen to be consistent with what we do for tuples)

Fixes #28559
2015-09-21 10:37:08 +00:00
Manish Goregaokar
5f66c701b1 Make function pointers implement traits for up to 12 parameters
(12 was chosen to be consistent with what we do for tuples)

Fixes #28559
2015-09-21 14:21:30 +05:30
bors
f859507de8 Auto merge of #28548 - steveklabnik:gh28545, r=alexcrichton
so say so in the FAQ

Fixes #28545
2015-09-21 06:07:03 +00:00
bors
a33e48771e Auto merge of #28555 - GuillaumeGomez:error_codes, r=Manishearth 2015-09-21 04:24:06 +00:00
bors
d2faba28c0 Auto merge of #28552 - apasel422:issue-28527, r=Manishearth
Closes #28527.

r? @Manishearth
2015-09-21 02:40:40 +00:00
bors
0418a43fa3 Auto merge of #28541 - baskerville:trpl-two-typos, r=steveklabnik
r? @steveklabnik
2015-09-21 00:58:03 +00:00
bors
b7f49ca0fa Auto merge of #28539 - rkruppe:shuffle-num-internals, r=alexcrichton
Move private bignum module to core::num, because it is not only used in flt2dec.
Extract private 80-bit soft-float into new core::num module for the same reason.
2015-09-20 23:14:58 +00:00
bors
79d259e618 Auto merge of #28534 - marcusklaas:fix-mod-inner-span, r=alexcrichton
Fixes https://github.com/rust-lang/rust/issues/28520.

r? @alexcrichton or @nrc?
2015-09-20 21:31:24 +00:00
Andrew Paseltiner
85b8b447fa Replace ast::Mac_ enum with struct
Closes #28527.
2015-09-20 17:15:04 -04:00
Steve Klabnik
8355d3a60f We are production ready
so say so in the FAQ

Fixes #28545
2015-09-20 15:53:47 -04:00
bors
2c06bb96ea Auto merge of #28429 - wesleywiser:split_up_lints, r=alexcrichton
This breaks out some of the lints defined in `librustc_lint/builtin.rs` into two new modules: `unused` for the `UNUSED_*` lints and `bad_style` for the various style related lints as suggested in #22206. `builtin.rs` could probably get broken up more but this is a start.
2015-09-20 19:48:12 +00:00
bors
6602b2f1c7 Auto merge of #28501 - semarie:stdcpp-path, r=alexcrichton
By default, the linker in use under OpenBSD is the linker of base, which
don't include /usr/local/lib where libstdc++ of gcc-4.9 lives. We need
to add this directory to linker-path-search (using -L).

Search the path of libstdc++.a, which is a known name (libstdc++.so has
SO_VERSION) in the same directory.

r? @alexcrichton 

this commit needs #28495 to be commited first. It should be the last piece for building rustc under OpenBSD from scratch.
2015-09-20 18:04:52 +00:00
Bastien Dejean
856f97a15e TRPL: Fix two typos 2015-09-20 19:13:43 +02:00
Sébastien Marie
049d76bdd2 Pass libstdc++.so path to linker under OpenBSD
By default, the linker in use under OpenBSD is the linker of base, which
don't include /usr/local/lib where libstdc++ of gcc-4.9 lives. We need
to add this directory to linker-path-search (using -L).

Search the path of libstdc++.a, which is a known name (libstdc++.so has
SO_VERSION) in the same directory.
2015-09-20 19:06:37 +02:00
Robin Kruppe
cd67ec306f Reorganize core::num internals
Move private bignum module to core::num, because it is not only used in flt2dec.
Extract private 80-bit soft-float into new core::num module for the same reason.
2015-09-20 18:39:08 +02:00
bors
f5a64a678f Auto merge of #28499 - semmaz:doc-anchor-fix, r=steveklabnik
This changes how rustic generate `id` and `href` attributes for section header anchor. Now they are more github-like.

Also fixes breakage in docs caused by this and broken links in "Error Handling" section of book.

r? @steveklabnik
cc @alexcrichton
2015-09-20 16:21:43 +00:00
bors
aed5c3a1c8 Auto merge of #28532 - Eljay:misc-fixes, r=bluss
As the title says, just cleaning up some old stuff.
2015-09-20 13:39:57 +00:00
Marcus Klaas
51f4a241bf Fix the overly long inner spans of inline mods 2015-09-20 14:06:58 +02:00
Lee Jeffery
140e2d3a09 Miscellaneous cleanup for old issues. 2015-09-20 11:37:08 +01:00
Simon Mazur
09c1ce18a2 rustdoc: added tests for header rendering & minor fixes 2015-09-20 13:24:47 +03:00
Simon Mazur
d6f0a21e20 rustdoc: remove redundant test 2015-09-20 13:24:47 +03:00
Simon Mazur
d539f451c4 rustdoc: some code style improvements 2015-09-20 13:24:47 +03:00
Simon Mazur
970b86b1bb doc: Fix broken links 2015-09-20 13:24:47 +03:00
Simon Mazur
b8cfa59be0 rustdoc: Changed section headers anchor rendering 2015-09-20 13:12:27 +03:00
Guillaume Gomez
6e1c675ff0 Add error codes for librustc_typeck 2015-09-20 12:02:56 +02:00
bors
25aaeb40b1 Auto merge of #28529 - Manishearth:rollup, r=Manishearth
- Successful merges: #28463, #28507, #28522, #28525, #28526
- Failed merges:
2015-09-20 07:32:46 +00:00
Manish Goregaokar
d7ec69a652 Rollup merge of #28526 - Manishearth:expand-clone, r=eddyb
This reduces some clones of `Vec`s. These are not deep copies since the
token tree is made using `Rc`s, so this won't be a major improvement.

r? @eddyb
2015-09-20 11:16:27 +05:30
Manish Goregaokar
8f8fe8194d Rollup merge of #28525 - Wallacoloo:book-4.8-double-more, r=steveklabnik
This is a simple grammar fix in which the previous author accidentally repeated a word when (s)he shouldn't have.
2015-09-20 11:16:27 +05:30
Manish Goregaokar
fb690c7af6 Rollup merge of #28522 - apasel422:issue-28091, r=alexcrichton
Closes #28091.

r? @huonw
2015-09-20 11:16:27 +05:30
Manish Goregaokar
dc377b21e8 Rollup merge of #28507 - Manishearth:const-stable, r=alexcrichton
Fixes #28490

cc #24111
2015-09-20 11:16:27 +05:30
Manish Goregaokar
d007eb628a Rollup merge of #28463 - critiqjo:book-concurrency, r=steveklabnik
Fixes #28458

Details about `Arc` may be too soon to be described together with `Sync`... Tell me what you think.

r? @steveklabnik
2015-09-20 11:16:26 +05:30
bors
fd38a75077 Auto merge of #28503 - marcusklaas:pub-extern, r=alexcrichton
Fixes https://github.com/rust-lang/rust/issues/28472.
2015-09-20 05:44:45 +00:00
bors
fbce4503f8 Auto merge of #28519 - wthrowe:fixup-28321, r=alexcrichton
I assume the expected error changed during the development of pull
request #28321 and that wasn't noticed because the test was
accidentally not running.

r? @nikomatsakis
2015-09-20 03:57:13 +00:00
bors
23b1e4807e Auto merge of #28506 - Manishearth:no_mac, r=eddyb
It's not being called or used, and `Mac`s don't exist at either lint phase.
2015-09-20 02:00:04 +00:00
Manish Goregaokar
dcf49b5f68 Don't recommend const fns on a stable build without a note about nightlies
Fixes #28490
2015-09-20 07:12:36 +05:30
Manish Goregaokar
8aef16c2a5 Move tts instead of cloning in expansion 2015-09-20 06:45:19 +05:30
Colin Wallace
a35f1b29d7 Fix "more more" typo 2015-09-19 17:19:29 -07:00
bors
50048c00b9 Auto merge of #28512 - lfairy:snapshot-pyc, r=alexcrichton
Closes #28508

r? @brson
2015-09-20 00:12:12 +00:00
Andrew Paseltiner
6fa0ff25bd Feature-gate #[no_debug] and #[omit_gdb_pretty_printer_section]
Closes #28091.
2015-09-19 19:39:25 -04:00
Wesley Wiser
974dfe8e31 Split out the UNUSED_* lints into a new module
Part of #22206
2015-09-19 17:35:18 -04:00
Wesley Wiser
ed77fcc8a6 Split out the bad_style lints into a new module
Part of #22206
2015-09-19 17:35:18 -04:00
bors
783c3fcc1e Auto merge of #28345 - japaric:op-assign, r=nmatsakis
Implements overload-able augmented/compound assignments, like `a += b` via the `AddAssign` trait, as specified in RFC [953]

[953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md

r? @nikomatsakis
2015-09-19 21:19:29 +00:00
bors
837840c61f Auto merge of #28516 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #28400, #28430, #28443, #28483, #28485, #28496, #28511, #28515
- Failed merges:
2015-09-19 19:28:59 +00:00
William Throwe
a51ae514ab Move test to the right directory and make it pass
I assume the expected error changed during the development of pull
request #28321 and that wasn't noticed because the test was
accidentally not running.
2015-09-19 13:54:42 -04:00
bors
6db1a0ea7c Auto merge of #28497 - apasel422:issue-28493, r=Gankro
When both the key and value types were zero-sized, `BTreeMap` previously
called `heap::allocate` with `size == 0` for leaf nodes, which is
undefined behavior, and jemalloc would attempt to read invalid memory,
crashing the process.

This avoids undefined behavior by allocating enough space to store one
edge in leaf nodes that would otherwise have `size == 0`. Although this
uses extra memory, maps with zero-sized key types that have sensible
implementations of the ordering traits can only contain a single
key-value pair (and therefore only a single leaf node), and maps with
key and value types that are both zero-sized have few uses, if any.

Furthermore, this is a temporary fix that will likely be unnecessary
once the `BTreeMap` implementation is rewritten to use parent pointers.

Closes #28493.
2015-09-19 17:40:56 +00:00
critiqjo
a0f214e257 trpl: Improve clarity in Concurrency 2015-09-19 21:11:17 +05:30