Commit Graph

41210 Commits

Author SHA1 Message Date
Steve Klabnik 68648fe0da Rollup merge of #24468 - brettcannon:patch-2, r=alexcrichton
Link spanned a line and was missing the actual link target.
2015-04-15 17:26:08 -04:00
Steve Klabnik f4647ac3b7 Rollup merge of #24467 - brettcannon:patch-1, r=alexcrichton
Had a newline in middle of a link, causing the link text to be shown with `[]`.
2015-04-15 17:26:08 -04:00
Steve Klabnik df54719be0 Rollup merge of #24465 - steveklabnik:intoiteratordocfix, r=alexcrichton 2015-04-15 17:26:08 -04:00
Steve Klabnik 111404fc21 Rollup merge of #24460 - bytewiseand:master, r=alexcrichton
Closes #24197
Closes #24375

These ICEs are fixed on nightly.
2015-04-15 17:26:08 -04:00
Steve Klabnik 79e5c0051c Rollup merge of #24457 - Ms2ger:more-typos, r=alexcrichton 2015-04-15 17:26:07 -04:00
Steve Klabnik b5378f452e Rollup merge of #24449 - richo:typo, r=alexcrichton
Spotted a typo, opened a tiny PR.
2015-04-15 17:26:07 -04:00
Steve Klabnik 68a9e6a933 Rollup merge of #24440 - nham:improve_enumerate_doc, r=alexcrichton
I found that the current description of `enumerate()` doesn't actually tell you what, specifically, the method does, and you have to look at the example to figure it out. Here's a description that I think is better.
2015-04-15 17:26:07 -04:00
Steve Klabnik 63d524d4ab Rollup merge of #24438 - nrc:tuple-span, r=sfackler 2015-04-15 17:26:07 -04:00
Steve Klabnik 71156035cc Rollup merge of #24435 - killercup:patch-9, r=steveklabnik
The link works on the `std/ptr/index.html` docs page, but not the `std/primitive.pointer.html` page. Instead of leaving it half-broken, it is removed.

I tried fixing this in #24432, but @alexcrichton mentioned that this doc string was used in two places (with different base paths unfortunately).

r? @alexcrichton
2015-04-15 17:26:07 -04:00
Steve Klabnik 031619f5af Rollup merge of #24425 - dhuseby:bitrig_fixing_tests_3, r=alexcrichton
the code block in the no-stdlib.md file caused test failure on bitrig and openbsd.

Closes #24108
2015-04-15 17:26:06 -04:00
Nick Hamann 2b86f1f428 Describe the Iterator enumerate() method more clearly. 2015-04-15 13:38:23 -05:00
Brett Cannon 40c7350407 Fix link to stack/heap page
Link spanned a line and was mising the actual link target.
2015-04-15 12:57:22 -04:00
Brett Cannon 09236bcb07 Fix link formatting error
Had a newline in middle of a link, causing the link text to be shown with `[]`.
2015-04-15 12:51:34 -04:00
bors ce27d024ff Auto merge of #24436 - fhahn:fix-small-typo, r=steveklabnik 2015-04-15 16:19:00 +00:00
Steve Klabnik e7e7c0fc85 Fix link in intoiterator docs 2015-04-15 11:43:43 -04:00
Andreas Martens 14f2dce532 Add tests for "ident only path should have been covered"-ICE 2015-04-15 14:18:47 +02:00
Ms2ger 9a5a47eddc Fix some typos. 2015-04-15 13:37:55 +02:00
bors a691f1eefe Auto merge of #24426 - alexcrichton:windows-pipes, r=aturon
This commit removes the last remnants of file descriptors from the Windows
implementation of `std::sys` by using `CreatePipe` to create anonymous pipes
instead of the `pipe` shim provided in msvcrt.
2015-04-15 08:21:43 +00:00
Richo Healey cf43761de4 rustc: fix a typo in letter to rustc 2015-04-15 00:07:25 -07:00
bors af1c39cbd9 Auto merge of #24211 - alexcrichton:windows-wsa-flag-overlapped, r=aturon
This commit modifies the socket creation functions on windows to always specify
the `WSA_FLAG_OVERLAPPED` and `WSA_FLAG_NO_HANDLE_INHERIT` flags by default. The
overlapped flag enables IOCP APIs on Windows to be used with the socket at no
cost, enabling better interoperation with external libraries. The no handle
inherit flag mirrors the upcoming change to Unix to set CLOEXEC by default for
all handles.

Closes #24206
2015-04-15 06:18:51 +00:00
bors c7734429ea Auto merge of #24431 - ruud-v-a:explain, r=alexcrichton
This resolves part of #24407.
2015-04-15 04:14:50 +00:00
bors 16e1fcead1 Auto merge of #24433 - alexcrichton:rollup, r=alexcrichton 2015-04-15 01:05:03 +00:00
Alex Crichton e053571df2 Test fixes and rebase conflicts, round 2 2015-04-14 17:40:37 -07:00
Nick Cameron f37365ea92 Fix the span for tuple expressions 2015-04-15 11:20:17 +12:00
Florian Hahn 4f3d400b3d Remove superfluous `the` from `custom_attribute` feature gate message 2015-04-14 23:27:16 +02:00
Pascal Hertleif cbe9a1a6f4 Remove Incorrect Link from std::ptr::null Docs
The link works on the std::ptr docs page, but not the primitive.ptr.html page.
Instead of leaving it half-broken, it is removed.
2015-04-14 23:22:37 +02:00
Alex Crichton d3da5a7e9b Merge remote-tracking branch 'origin/master' into rollup
Conflicts:
	src/librustc/middle/stability.rs
2015-04-14 14:13:42 -07:00
Alex Crichton 5e07329306 std: Remove final usage of fds from Windows
This commit removes the last remnants of file descriptors from the Windows
implementation of `std::sys` by using `CreatePipe` to create anonymous pipes
instead of the `pipe` shim provided in msvcrt.
2015-04-14 13:50:45 -07:00
Alex Crichton 30425bfe54 Test fixes and rebase conflicts 2015-04-14 13:50:03 -07:00
bors 8415fa2787 Auto merge of #24399 - brson:stab, r=nrc 2015-04-14 18:59:26 +00:00
Dave Huseby 6fc138136d disabling a test for bitrig and openbsd 2015-04-14 11:21:33 -07:00
Brian Anderson 22a9f668af Make use of the stability attributes issue a deprecation warning. #22830 2015-04-14 11:11:13 -07:00
Ruud van Asseldonk 33dca5e3ad rustc: Add long diagnostics for E0165 2015-04-14 20:11:04 +02:00
Alex Crichton 433f0e8d1f std: Set overlap/noinherit flags on windows sockets
This commit modifies the socket creation functions on windows to always specify
the `WSA_FLAG_OVERLAPPED` and `WSA_FLAG_NO_HANDLE_INHERIT` flags by default. The
overlapped flag enables IOCP APIs on Windows to be used with the socket at no
cost, enabling better interoperation with external libraries. The no handle
inherit flag mirrors the upcoming change to Unix to set CLOEXEC by default for
all handles.

Closes #24206
2015-04-14 11:08:26 -07:00
Ruud van Asseldonk c45eacdbc6 rustc: Add long diagnostics for E0162 2015-04-14 20:00:17 +02:00
Alex Crichton b9d9a376ea rollup merge of #24385: aturon/unstable-scoped
Conflicts:
	src/libstd/thread/mod.rs
	src/test/bench/shootout-mandelbrot.rs
	src/test/bench/shootout-reverse-complement.rs
	src/test/run-pass/capturing-logging.rs
	src/test/run-pass/issue-9396.rs
	src/test/run-pass/tcp-accept-stress.rs
	src/test/run-pass/tcp-connect-timeouts.rs
	src/test/run-pass/tempfile.rs
2015-04-14 10:59:55 -07:00
Alex Crichton ae7959d298 rollup merge of #24377: apasel422/docs
Conflicts:
	src/libstd/net/ip.rs
	src/libstd/sys/unix/fs.rs
	src/libstd/sys/unix/mod.rs
	src/libstd/sys/windows/mod.rs
2015-04-14 10:56:57 -07:00
Alex Crichton 7913f5659d rollup merge of #24401: fenduru/patch-2
Not sure if `From<Error>` is the correct way to reference that trait (maybe `From<E: Error>`?)

r? @steveklabnik
2015-04-14 10:56:00 -07:00
Alex Crichton 33733b786f rollup merge of #24399: brson/stab 2015-04-14 10:55:59 -07:00
Alex Crichton 84e4a724dc rollup merge of #24398: steveklabnik/thanks_mdinger
The two-step command left off the nightly flag :frown:

Thanks @mdinger
2015-04-14 10:55:58 -07:00
Alex Crichton cf53ae03da rollup merge of #24394: rundrop1/patch-1
Feel silly because it's just one thing but it was bothering me that the documentation tells you what you're not going to learn now instead of linking to the item in question.  Am total noob pls assist, where is power button. :)
2015-04-14 10:55:57 -07:00
Alex Crichton ecbbbfa258 rollup merge of #24393: steveklabnik/rbe
It's no longer a community based project.

Also, Rust for Rubyists is deprecated at this point, so we shouldn't
link to it anymore.
2015-04-14 10:55:56 -07:00
Alex Crichton d7ff4f5195 rollup merge of #24391: nrc/visit-vis 2015-04-14 10:55:55 -07:00
Alex Crichton d10be64e34 rollup merge of #24386: nagisa/rte-fix
r? @steveklabnik
2015-04-14 10:55:54 -07:00
Alex Crichton 52067fd58f rollup merge of #24381: erickt/cleanup
Just some minor patches I've been sitting on.
2015-04-14 10:55:53 -07:00
Alex Crichton 38c9e0f4bc rollup merge of #24380: arielb1/no-enum-suggest
Fixes #24365
2015-04-14 10:55:52 -07:00
Alex Crichton 2795811f92 rollup merge of #24379: rkruppe/fmt-negative-zero
Fixes #20596 by making `Debug` render negative zero with a `-` without affecting the behavior of `Display`.

While I was at it, I also removed some dead code from `float_to_str_bytes_common` (the one from `libcore/fmt/float.rs`, not the function of the same name in `libstd/num/strconv.rs`). It had support for different bases, and for negative numbers, but the function is internal to core and the couple places that call it (all in `libcore/fmt/mod.rs`) never use those features: They pass in `num.abs()` and base 10.
2015-04-14 10:55:51 -07:00
Alex Crichton 263314e569 rollup merge of #24376: lambdaburrito/master
Values for `_SC_*` are not the same value between `macos` and `linux` so I've added specific target constants for Mac OS X and added `_SC_NPROCESSORS_ONLN` for `linux` and `macos`.

Closes #24374
2015-04-14 10:55:48 -07:00
Alex Crichton c24e55b13e rollup merge of #24371: dotdash/24353
Fixes #24353
2015-04-14 10:55:47 -07:00
Alex Crichton db79ce0c9f rollup merge of #24368: kgv/fix
Remove arity link from enums.md

r? @steveklabnik
2015-04-14 10:55:46 -07:00