Commit Graph

50129 Commits

Author SHA1 Message Date
bors
a9922419cf Auto merge of #31370 - Manishearth:rollup, r=Manishearth
- Successful merges: #27499, #31220, #31329, #31332, #31347, #31351, #31352, #31366
- Failed merges:
2016-02-03 00:58:37 +00:00
Jonathan Reem
fc875b087c Add issue number to guard map methods. 2016-02-02 16:34:49 -08:00
Simonas Kazlauskas
1a886bc3c9 Improve docs for Path::methods 2016-02-03 01:16:58 +02:00
bors
dea183aa84 Auto merge of #31361 - alexcrichton:revert-mk-changes, r=brson
This reverts commit d03712977d.
2016-02-02 21:57:57 +00:00
Andrew Paseltiner
27319b48eb Correct linked_list::IntoIter doc comment 2016-02-02 16:45:35 -05:00
Manish Goregaokar
1a21dabf27 Rollup merge of #31366 - paulsmith:patch-1, r=steveklabnik
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2016-02-03 02:54:25 +05:30
Manish Goregaokar
86650211a9 Rollup merge of #31352 - steveklabnik:gh31154, r=nikomatsakis
Fixes #31154
2016-02-03 02:54:25 +05:30
Manish Goregaokar
5540605cd6 Rollup merge of #31351 - steveklabnik:gh31318, r=alexcrichton
This is a behavior that some find confusing, so it deserves its own example.

Fixes #31318

I think this wording might be a bit strange, but I couldn't come up with anything better. Feedback very welcome.
2016-02-03 02:54:25 +05:30
Manish Goregaokar
688f607352 Rollup merge of #31347 - GuillaumeGomez:fix_E0118, r=Manishearth
r? @eddyb
2016-02-03 02:54:25 +05:30
Manish Goregaokar
f55995bad2 Rollup merge of #31332 - durka:errorck-fileline, r=brson
Small modification to #31288. Shows full path and line number for unused error codes.
2016-02-03 02:54:24 +05:30
Manish Goregaokar
93042f2bfb Rollup merge of #31329 - quodlibetor:no-const-doc-in-stable, r=alexcrichton
Fixes #31098

AFAICT this is the only place where rustdoc explicitly checks if we are on stable before emitting content, so I can't tell if this is the sane way to handle this, or if anything else should be done to make sure that nobody forgets to remove this check when `const` is stabilized.
2016-02-03 02:54:24 +05:30
Manish Goregaokar
ae96e51ac7 Rollup merge of #31220 - steveklabnik:gh30632, r=nikomatsakis
Fixes #30632

I'm not sure if this explanation is good enough. If it is, I will add it to filter as well.
2016-02-03 02:54:24 +05:30
Manish Goregaokar
76e0025078 Rollup merge of #27499 - barosl:macro-doc-raw-str-hashes, r=nikomatsakis
Any documentation comments that contain raw-string-looking sequences may pretty-print invalid code when expanding them, as the current logic always uses the `r"literal"` form, without appending any `#`s.

This commit calculates the minimum number of `#`s required to wrap a comment correctly and appends `#`s appropriately.

Fixes #27489.
2016-02-03 02:54:24 +05:30
Sean Leffler
fb00e60ab1 Added assertion ensuring zero-sized type. 2016-02-02 11:41:19 -08:00
bors
2dc132e4d2 Auto merge of #31312 - alexcrichton:no-le-in-powerpc64le, r=alexcrichton
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the
`target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the
`powerpc64le` target does indeed set the `target_arch` as `powerpc64le`,
causing a bit of inconsistency between theset two.

As these are just the same instance of one instruction set, let's use
`target_endian` to switch between them and only set the `target_arch` as one
value. This should cut down on the number of `#[cfg]` annotations necessary and
all around be a little more ergonomic.
2016-02-02 17:11:48 +00:00
Steve Klabnik
6c907212b4 Add note about temporaries 2016-02-02 11:15:45 -05:00
Paul Smith
b2e887f0aa Fix reference to expect
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2016-02-02 08:47:23 -06:00
bors
59b7c907a3 Auto merge of #31254 - tmiasko:macro-pretty-print-fix, r=sfackler
Pretty printing of macro with braces but without terminated semicolon
removed more boxes from stack than it put there, resulting in panic.
This fixes the issue #30731.
2016-02-02 14:00:50 +00:00
bors
ddd1bf594f Auto merge of #30991 - rthomas:master, r=Gankro
Using the test @bluss suggested in #30983
2016-02-02 10:45:06 +00:00
bors
01d44ca74f Auto merge of #31359 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #30971, #31202, #31247, #31270, #31281, #31327, #31339, #31340, #31342, #31344, #31345, #31346, #31348
- Failed merges:
2016-02-02 07:28:04 +00:00
Alex Crichton
178d4b0fd3 Revert "mk: fix some undefined variable warnings"
This reverts commit d03712977d.
2016-02-01 23:27:04 -08:00
Ryan Thomas
8aae7f78ce Ensure capacity returned of HashMap is max(capacity, length).
r? @Gankro
2016-02-02 17:17:24 +11:00
Paul Dicker
cdb1df749e Enable more fs tests on Windows 2016-02-02 07:04:55 +01:00
Steve Klabnik
c3f6122215 Rollup merge of #31348 - alexcrichton:shuffle-tiers, r=steveklabnik
Some other shufflings as well:

* Three powerpc triples for Linux have been added recently
* An armv7 linux triple was added recently
* The 64-bit Solaris triple is now mentioned in tier 3

We are currently now also building nightlies for iOS, powerpc triples, and
armv7, but there hasn't been much vetting of the triples themselves so I've left
them in tier 3 for now.
2016-02-02 00:32:20 -05:00
Steve Klabnik
7f26bd864b Rollup merge of #31346 - alopatindev:fixes, r=aturon
Space character is missed after `let some_usize`
2016-02-02 00:32:19 -05:00
Steve Klabnik
5f0d8ea1bd Rollup merge of #31345 - kamalmarhubi:book-docs-special-section-errors, r=steveklabnik
This matches the usage in the standard library's documentation.
2016-02-02 00:32:19 -05:00
Steve Klabnik
9eb417b17f Rollup merge of #31344 - steveklabnik:gh31334, r=alexcrichton
Fixes #31334

This is just a quicker fix for this issue; since I'm working on the next draft of the book, I don't want to put a huuuge amount of work into improving it here.
2016-02-02 00:32:19 -05:00
Steve Klabnik
d86c4fb46d Rollup merge of #31342 - reeze:patch-1, r=steveklabnik 2016-02-02 00:32:19 -05:00
Steve Klabnik
0b8c71379c Rollup merge of #31340 - pra85:patch-1, r=alexcrichton
Spelling mistake -
`familliar` > `familiar`
2016-02-02 00:32:19 -05:00
Steve Klabnik
41189585a4 Rollup merge of #31339 - rthomas:doc, r=alexcrichton
When trying to run a specific test, I found the contributing docs a bit confusing and through a bit of googling found out that TESTNAME takes the fully qual'd name of the test.

I'm unsure if this can also take the source file, but I was unable to get that to work.
2016-02-02 00:32:18 -05:00
Steve Klabnik
b2f3a51e1a Rollup merge of #31327 - dirk:dirk/process-child-safety-docs, r=alexcrichton
`Drop` is not implemented for `Child`, so if it goes out of scope in Rust-land and gets deallocated the child process will continue to exist and execute. If users want a guarantee that the process has finished running and exited they must manually use `kill`, `wait`, or `wait_with_output`.

Fixes #31289.

r? @steveklabnik
2016-02-02 00:32:18 -05:00
Steve Klabnik
a9fbb05535 Rollup merge of #31281 - oli-obk:patch-2, r=nikomatsakis 2016-02-02 00:32:18 -05:00
Steve Klabnik
674f71edd0 Rollup merge of #31270 - ruud-v-a:improve-e0507, r=steveklabnik
E0507 can occur when you try to move out of a member of a mutably borrowed struct, in which case `mem::replace` can help. Mentioning that here hopefully saves future users a trip to Google.
2016-02-02 00:32:18 -05:00
Steve Klabnik
e65f29a3b8 Rollup merge of #31247 - tshepang:redundant-bindings, r=steveklabnik 2016-02-02 00:32:18 -05:00
Steve Klabnik
7097d29411 Rollup merge of #31202 - steveklabnik:gh30459, r=alexcrichton
Fixes #30459

Fun fact: i wanted to write "Arabic" and "Hebrew" in Arabic and Hebrew, but vim kept doing the copy/paste in the wrong direction.
2016-02-02 00:32:17 -05:00
Steve Klabnik
78afc78d9d Rollup merge of #30971 - SDX2000:docfixes, r=steveklabnik
Updated documentation to clarify the difference between `and_then` and `map`. This also explains why we need `and_then` in addition to `map`. Please look at the diff for more information.

r?  @alexcrichton
2016-02-02 00:32:17 -05:00
Steve Klabnik
c0ace5dc16 Add doctests for directionality
Thanks @nodakai
2016-02-02 00:32:09 -05:00
Alex Crichton
8f803c2026 Remove "powerpc64le" and "mipsel" target_arch
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the
`target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the
`powerpc64le` target does indeed set the `target_arch` as `powerpc64le`,
causing a bit of inconsistency between theset two.

As these are just the same instance of one instruction set, let's use
`target_endian` to switch between them and only set the `target_arch` as one
value. This should cut down on the number of `#[cfg]` annotations necessary and
all around be a little more ergonomic.
2016-02-01 20:39:07 -08:00
bors
508c21e4ae Auto merge of #31314 - alexcrichton:less-warnings, r=brson
Help cleans up our build a bit and stays in line with the rest of our crates
denying warnings traditionally.
2016-02-02 04:33:02 +00:00
Kamal Marhubi
129a6239d2 docs: Standardize on 'Errors' header in std docs 2016-02-01 21:41:29 -05:00
bors
a4a249fcab Auto merge of #31279 - DanielJCampbell:MacroReferencing, r=nrc
r? @nrc
2016-02-02 01:35:39 +00:00
Ryan Thomas
df31868cac Update TESTNAME description 2016-02-02 10:58:59 +11:00
Ryan Thomas
a5e491fa92 Update TESTNAME matching description 2016-02-02 10:57:24 +11:00
Ryan Thomas
66eb588476 Merge branch 'master' of https://github.com/rust-lang/rust into doc 2016-02-02 10:54:05 +11:00
Steve Klabnik
dc3a39d807 Explain behavior of _
Fixes #31154
2016-02-01 18:49:47 -05:00
Steve Klabnik
69c298e733 Further explain take_while
This is a behavior that some find confusing, so it deserves its own example.

Fixes #31318
2016-02-01 18:33:08 -05:00
bors
b94cd7a5bd Auto merge of #31250 - nrc:more-aborts, r=@nikomatsakis
With this PR we can save-analysis on code with errors, essential foundation work for IDE support.
2016-02-01 21:22:59 +00:00
Niko Matsakis
35d6efb232 Use the per-tree state to detect and permit DAGs (but not cyclic graphs) 2016-02-01 16:08:34 -05:00
Alex Crichton
0574b395ef doc: Move 32-bit MSVC to a tier 1 platform
Some other shufflings as well:

* Three powerpc triples for Linux have been added recently
* An armv7 linux triple was added recently
* The 64-bit Solaris triple is now mentioned in tier 3

We are currently now also building nightlies for iOS, powerpc triples, and
armv7, but there hasn't been much vetting of the triples themselves so I've left
them in tier 3 for now.
2016-02-01 12:53:38 -08:00
Steve Klabnik
7deb057d55 Discuss pitfalls of stateful closures with Map
Fixes #30632
2016-02-01 15:38:20 -05:00