Steve Klabnik
9e18326291
Update docs for take and broadcast
...
Better and more consistent links to their creators.
2015-07-20 16:47:58 -04:00
Brian Anderson
8497c428e5
std: Create separate docs for the primitives
...
Having the primitive and module docs derived from the same source
causes problems, primarily that they can't contain hyperlinks
cross-referencing each other.
This crates dedicated private modules in `std` to document the
primitive types, then for all primitives that have a corresponding
module, puts hyperlinks in moth the primitive docs and the module docs
cross-linking each other.
This should help clear up confusion when readers find themselves on
the wrong page.
2015-07-20 13:18:06 -07:00
Brian Anderson
44dd247cd5
doc: Clean up primitive short descriptions
...
This makes the primitive descriptions on the front page read properly
as descriptions of types and not of the associated modules.
2015-07-20 13:17:41 -07:00
bors
2fe870a5a7
Auto merge of #26831 - arielb1:lifetime-fixes, r=nikomatsakis
...
r? @nikomatsakis
2015-07-20 19:46:46 +00:00
Steve Klabnik
7e7ec6b5cd
Document structures in std::io::utils
...
These provide various special readers, so point their docs to their
constructor functions in a manner consistent with everything else.
2015-07-20 15:45:48 -04:00
Alexis Beingessner
7a47ffcbc7
UB is src bzns
2015-07-20 11:37:15 -07:00
Alexis Beingessner
99043dde9d
mention void pointers
2015-07-20 11:36:26 -07:00
Alexis Beingessner
5f6e0abe27
clean up vec chapter of tarpl
2015-07-20 11:31:29 -07:00
bors
47265bbf37
Auto merge of #27064 - alexcrichton:into-raw-os, r=brson
...
This commit is an implementation of [RFC 1174][rfc] which adds three new traits
to the standard library:
* `IntoRawFd` - implemented on Unix for all I/O types (files, sockets, etc)
* `IntoRawHandle` - implemented on Windows for files, processes, etc
* `IntoRawSocket` - implemented on Windows for networking types
[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1174-into-raw-fd-socket-handle-traits.md
Closes #27062
2015-07-20 18:12:40 +00:00
Alexis Beingessner
42c2f107c1
flesh out void types
2015-07-20 11:02:45 -07:00
Alisdair Owens
686d326439
Add diagnostics for E0172, fix inline error message for E0139
2015-07-20 18:49:05 +01:00
Brian Anderson
9191a78955
Revert "Fix missing_docs
lint for const and static."
...
This reverts commit 00130cff99f88e13fec87378bdf476cfea6aa147.
As mentioned in a regression report[1], this caused a notable amount
of breakage. Because there's a plan to mitigate[2] this type of
breakage, I'm reverting this until then.
[1]: https://internals.rust-lang.org/t/new-crater-reports-1-1-stable-vs-beta-2015-07-10-and-nightly-2015-07-10/2358
[2]: https://github.com/rust-lang/rfcs/pull/1193
2015-07-20 10:44:46 -07:00
Peter Atashian
1e79917bda
Improve Debug impl for File on Windows
...
Adds a path field if a path could be obtained
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-07-20 13:24:34 -04:00
Steve Klabnik
27fc0f21c4
Document iterators in std::io
...
Make them all consistent and link up the documentation.
2015-07-20 13:16:57 -04:00
Alisdair Owens
3ae7b72970
Fix wording nit for E0253
2015-07-20 18:14:12 +01:00
arthurprs
225ad17520
impl Debug for Atomic types
2015-07-20 14:11:38 -03:00
Andrew Paseltiner
a7e5c6302b
add test for #10436
...
closes #10436
2015-07-20 12:59:33 -04:00
Alex Crichton
7cb157e74d
Register new snapshots
...
These new snapshots contain the knowledge of how to build the new triples of
32-bit MSVC and 32-bit FreeBSD, both of which should soon start having
nightlies/auto builders!
This does not currently register bitrig/freebsd snapshots but I believe those
will be retroactively added in the near future.
2015-07-20 09:51:29 -07:00
bors
18557500cb
Auto merge of #27026 - nagisa:overflowing-unsigned, r=pnkfelix
...
This commit fixes the negate_unsigned feature gate to appropriately
account for inferred variables.
This is technically a [breaking-change], but I’d consider it a bug fix.
cc @brson for your relnotes.
Fixes https://github.com/rust-lang/rust/issues/24676
Fixes #26840
Fixes https://github.com/rust-lang/rust/issues/25206
2015-07-20 16:38:33 +00:00
Alex Crichton
013d47b19b
syntax: Suppress panic message on fatal
...
This commit ensures that the rustc thread does not leak a panic message whenever
a call to `fatal` happens. This already happens for the main rustc thread as
part of the `rustc_driver::monitor` function, but the compiler also spawns
threads for other operations like `-C codegen-units`, and sometimes errors are
emitted on these threads as well. To ensure that there's a consistent
error-handling experience across threads this unifies these two to never print
the panic message in the case of a normal and expected fatal error.
This should also fix the flaky `asm-src-loc-codegen-units.rs` test as the output
is sometimes garbled if diagnostics are printed while the panic message is also
being printed.
2015-07-20 09:23:31 -07:00
Alex Crichton
7e9e3896df
std: Add IntoRaw{Fd,Handle,Socket} traits
...
This commit is an implementation of [RFC 1174][rfc] which adds three new traits
to the standard library:
* `IntoRawFd` - implemented on Unix for all I/O types (files, sockets, etc)
* `IntoRawHandle` - implemented on Windows for files, processes, etc
* `IntoRawSocket` - implemented on Windows for networking types
[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1174-into-raw-fd-socket-handle-traits.md
Closes #27062
2015-07-20 09:08:50 -07:00
Paolo Falabella
31a62d3b4b
s/has gained/has not gained/g
...
I'm pretty sure this was a typo
2015-07-20 17:29:34 +02:00
bors
39d4faf989
Auto merge of #27025 - dotdash:issue-26484, r=pnkfelix
...
See the commits for details
r? @arielb1
2015-07-20 15:04:15 +00:00
Björn Steinbrink
3d65c7ff84
Create proper debuginfo for closure variables
...
Variables for closures hold a tuple of captured variables, and not the
function itself.
Fixes #26484
2015-07-20 15:45:11 +02:00
bors
4e51763e64
Auto merge of #26887 - andreastt:blur_help_dialogue, r=steveklabnik
...
Blurs the document's background when the help dialogue is present,
making the contents of the dialogue stand out more.
2015-07-20 13:30:15 +00:00
Andrew Paseltiner
4c73dbddcf
add test for #19404
...
closes #19404
2015-07-20 08:39:51 -04:00
Andrew Paseltiner
9bb6545124
add test for #14229
...
closes #14229
2015-07-20 08:31:54 -04:00
Andreas Tolfsen
6b64826469
librustdoc: blur page when help dialogue is present
...
Blurs the document's background when the help dialogue is present,
making the contents of the dialogue stand out more.
2015-07-20 11:36:47 +01:00
bors
32a12c8dd0
Auto merge of #27118 - apasel422:issue-20825, r=alexcrichton
...
closes #20825
2015-07-20 10:20:58 +00:00
Simonas Kazlauskas
0ca8e4994e
Convert negate_unsigned feature gate to a warning
2015-07-20 12:24:16 +03:00
Björn Steinbrink
871ccfb5a9
Add a test for #26468
...
The fix for #26468 was made upstream and landed with the LLVM update in #27076 .
Closes #26468
2015-07-20 10:33:44 +02:00
Felix S. Klock II
ac33f1572b
fix configure
: allow both --enable-debug
and --disable-debuginfo
...
in one invocation.
2015-07-20 10:07:53 +02:00
bors
6c88aeda58
Auto merge of #27044 - nrc:graphviz-style, r=@pnkfelix
...
r? @pnkfelix
2015-07-20 07:07:25 +00:00
Sébastien Marie
761e11e1c4
fixes #27124 for openbsd
...
the "bsd" archive_format don't work under openbsd.
use of "" (system ar) is ok.
use of "gnu" is ok too.
2015-07-20 08:52:11 +02:00
bors
5e3b756f28
Auto merge of #27038 - ktossell:narrow_doc_ip_ranges, r=alexcrichton
...
Ipv4Addr::is_documentation() matches 513 /24 blocks when it should only match 3.
2015-07-20 04:52:12 +00:00
Alexis Beingessner
94a89e561a
some conversions cleanup
2015-07-19 21:43:17 -07:00
Alexis Beingessner
13b2605ed9
fixup and cool example for checked-uninit
2015-07-19 20:48:51 -07:00
Nick Cameron
75f8f966f0
graphviz: support style attributes
2015-07-20 15:45:25 +12:00
bors
c70417bd1b
Auto merge of #27132 - apasel422:issue-23491, r=arielb1
...
closes #23491
2015-07-20 03:19:12 +00:00
William Throwe
bbeace6119
Add test of impl formatting
2015-07-19 22:16:35 -04:00
bors
ef04b07239
Auto merge of #27120 - apasel422:associated-item-error, r=arielb1
...
Previously, these would both be labeled as methods.
2015-07-20 01:46:20 +00:00
bors
be23d44a53
Auto merge of #27065 - marcusklaas:loop-label, r=nrc
...
This closes https://github.com/rust-lang/rust/issues/27042 .
I'd love to know if there's a way to make a regression test for this!
2015-07-20 00:13:22 +00:00
bors
5d304134ff
Auto merge of #27133 - apasel422:issue-15919, r=rollup
...
closes #15919
2015-07-19 21:36:39 +00:00
Ariel Ben-Yehuda
28ce509d3c
clean-up find_bound_for_assoc_item
2015-07-20 00:16:37 +03:00
Ariel Ben-Yehuda
8edcff59d9
return erased regions from fulfill_obligation
...
Fixes #26802 .
2015-07-20 00:16:37 +03:00
Ariel Ben-Yehuda
34309cdf12
implement 'a:'static region bounds
...
Fixes #22863 .
2015-07-20 00:16:35 +03:00
Andrew Paseltiner
60734a65de
add test for #15919
...
closes #15919
2015-07-19 17:06:13 -04:00
Andrew Paseltiner
05e2f8665d
add test for #23491
...
closes #23491
2015-07-19 15:46:57 -04:00
Andrew Paseltiner
b684826cab
add test for #20162
...
closes #20162
2015-07-19 15:39:26 -04:00
Andrew Paseltiner
ce856a55f6
add separate errors for out-of-place associated consts and types
...
Previously, these would both be labeled as methods.
2015-07-19 15:32:24 -04:00