Manish Goregaokar
9b7c749e7d
Rollup merge of #22728 - vojtechkral:int-audit-thread-local, r=alexcrichton
...
Integer audit in `libstd/thread_local/*`, part of #22240
2015-02-24 12:08:34 +05:30
Manish Goregaokar
3ca5439009
Rollup merge of #22700 - nick29581:ints_hash, r=alexcrichton
...
fmt and hash are pretty straightforward I think. sync is a bit more complex. I thought one or two of the `isize`s ought to be `i32`s, but that would require a bunch of casting (the root cause being the lack of atomics other than isize/usize).
r? @alexcrichton
2015-02-24 12:08:34 +05:30
Manish Goregaokar
eaacc7aad5
Rollup merge of #22632 - nagisa:kill-show-string-with-fire!, r=alexcrichton
...
Toss the tomatoes!
r? @aturon
Fixes #22478 . The underlying bug(?) behind that issue still exists though and there’s another issue that reports it.
2015-02-24 12:08:33 +05:30
Manish Goregaokar
c89a30f2ab
Rollup merge of #22740 - frewsxcv:patch-4, r=alexcrichton
...
Fixes #17929
2015-02-24 12:08:33 +05:30
Manish Goregaokar
39c0aa33ad
Rollup merge of #22726 - semarie:openbsd-Wl-as-needed, r=alexcrichton
...
The `-Wl,--as-needed` option was removed during first stages of
bootstrapping between Linux and OpenBSD.
Restore it, as it seems to be ok now.
2015-02-24 12:08:32 +05:30
Manish Goregaokar
9ed6c33391
Rollup merge of #22719 - steveklabnik:typo_fix, r=alexcrichton
2015-02-24 12:08:32 +05:30
Manish Goregaokar
05d9999bb4
Rollup merge of #22711 - lummax:patch-1, r=dotdash
...
Update the reference page to the change in #20680 .
2015-02-24 12:08:31 +05:30
Manish Goregaokar
2d817db02e
Rollup merge of #22687 - tshepang:prelude-nits, r=alexcrichton
2015-02-24 12:08:31 +05:30
Manish Goregaokar
47377904a1
Rollup merge of #22680 - FlaPer87:type_builtin, r=nikomatsakis
...
Fixes #20302
2015-02-24 12:08:21 +05:30
Manish Goregaokar
4337ddb62d
Rollup merge of #22653 - tsion:master, r=alexcrichton
...
r? @steveklabnik
2015-02-24 12:08:00 +05:30
Manish Goregaokar
0dc720b479
Rollup merge of #22604 - aochagavia:docs, r=alexcrichton
2015-02-24 12:08:00 +05:30
Ivan Petkov
fcf70230eb
Properly reimplement unsafe-code
lint to honor changing lint attributes
2015-02-23 22:32:58 -08:00
Kevin Ballard
bbc3f2e525
Fix the std::process::Stdio constructors
...
There are no tests for this because testing inherit/null is tricky.
Probably why there weren't tests for it to begin with.
2015-02-23 21:41:27 -08:00
bors
0ef56da541
Auto merge of #21581 - DiamondLovesYou:nacl-libc, r=alexcrichton
...
This does not allow Rust proper to target NaCl; this just adds support for NaCl
crosses to `liblibc` on crates.io.
2015-02-24 05:21:38 +00:00
Michał Krasnoborski
948a17ed1d
Stop parsing "-" as integer, fixes #22745
2015-02-24 06:04:49 +01:00
bors
2890508d97
Auto merge of #21689 - FlaPer87:oibit-send-and-friends, r=nikomatsakis
...
This is one more step towards completing #13231
This series of commits add support for default trait implementations. The changes in this PR don't break existing code and they are expected to preserve the existing behavior in the compiler as far as built-in bounds checks go.
The PR adds negative implementations of `Send`/`Sync` for some types and it removes the special cases for `Send`/`Sync` during the trait obligations checks. That is, it now fully relies on the traits check rather than lang items.
Once this patch lands and a new snapshot is created, it'll be possible to add default impls for `Send` and `Sync` and remove entirely the use of `BuiltinBound::{BoundSend,BoundSync}` for positive implementations as well.
This PR also removes the restriction on negative implementations. That is, it is now possible to add negative implementations for traits other than `Send`/`Sync`
2015-02-24 02:22:44 +00:00
Alex Crichton
537d6946e4
std: Expose a mode
accessor for Permissions on unix
...
Currently we have a `set_mode` mutator, so this just adds the pairing of a
`mode` accessor to read the value.
Closes #22738
2015-02-23 15:26:18 -08:00
bors
c4fe7d6aea
Auto merge of #22526 - dotdash:llvmup, r=alexcrichton
...
Fixes #22159
Fixes #21721
2015-02-23 23:11:36 +00:00
Alex Crichton
79bf783ebf
std: Handle a trailing slash in create_dir_all
...
If the filename for a path is `None` then we know that the creation of the
parent directory created the whole path so there's no need to retry the call to
`create_dir`.
Closes #22737
2015-02-23 15:09:13 -08:00
Corey Farwell
9f8226a97b
Enforce a white background for the docs
...
Fixes #17929
2015-02-23 18:04:51 -05:00
Tshepang Lekhonkhobe
bb0e0a9f39
std::prelude: code consistency nits
2015-02-24 00:57:14 +02:00
Tobias Bucher
d0c589d5ce
Hide unnecessary error checking from the user
...
This affects the `set_non_blocking` function which cannot fail for Unix or
Windows, given correct parameters. Additionally, the short UDP write error case
has been removed as there is no such thing as "short UDP writes", instead, the
operating system will error out if the application tries to send a packet
larger than the MTU of the network path.
2015-02-23 23:52:24 +01:00
Niko Matsakis
d443f98f22
Apply borrowck to fns that appear in const declarations.
...
Fixes #22382 .
2015-02-23 17:22:51 -05:00
Alexander Bliskovsky
f49fd40f20
Removed {}
and small wording fixes to "Hello Cargo!" chapter.
2015-02-23 16:38:11 -05:00
Alexander Bliskovsky
0685e7a185
Added section on cargo new
to "Hello Cargo!" chapter.
2015-02-23 16:29:28 -05:00
bors
91a5a1ab4a
Auto merge of #22724 - Manishearth:rollup, r=alexcrichton
...
Seems to pass `check-stage1`, but I had to tweak some things so it's going through the test gauntlet again.
2015-02-23 20:47:30 +00:00
Alex Crichton
ee6f2a1ad6
Test fixes and rebase conflicts
2015-02-23 12:46:11 -08:00
Niko Matsakis
fd9f7da68e
Make traits with by-value-self be considered object safe.
2015-02-23 15:28:27 -05:00
Niko Matsakis
fe512dacc8
Remove awful hack concerning Trait impl Trait
in method resolution code that I've been longing to remove for quite some time.
2015-02-23 15:28:27 -05:00
Niko Matsakis
8f5d225933
Extend object safety so that methods with Sized:Self are exempt.
2015-02-23 15:28:26 -05:00
Manish Goregaokar
1beaebbaa6
Fix windows failure (fixup #22538 )
2015-02-23 11:44:00 -08:00
Manish Goregaokar
d6d33770da
Rollup merge of #22723 - alexcrichton:less-flaky-windows-test, r=alexcrichton
...
If these tests exit while a thread is panicking it often leads to situations
like #22628 .
2015-02-23 11:44:00 -08:00
Manish Goregaokar
8eb655b1e6
import boxed for alloc/rc.rs (fixup #22696 )
2015-02-23 11:43:59 -08:00
Manish Goregaokar
f17a5220cb
Add marker trait to test (fixup #22538 )
2015-02-23 11:43:59 -08:00
Manish Goregaokar
8487498452
Rollup merge of #22320 - petrochenkov:eq, r=alexcrichton
2015-02-23 11:43:59 -08:00
Manish Goregaokar
3b69d1b941
Rollup merge of #22490 - nagisa:inline-args, r=alexcrichton
2015-02-23 11:43:58 -08:00
Manish Goregaokar
3b4b90130f
Rollup merge of #22494 - msiemens:vec_map-append-split_off, r=Gankro
2015-02-23 11:43:58 -08:00
Manish Goregaokar
bf7cde449b
Rollup merge of #22538 - nagisa:properise-trans-asserts, r=nikomatsakis
2015-02-23 11:43:58 -08:00
Manish Goregaokar
f1a6d67e5e
Rollup merge of #22544 - bombless:fix-pattern, r=pnkfelix
2015-02-23 11:43:57 -08:00
Manish Goregaokar
bff94bd3c5
Rollup merge of #22624 - vadimcn:iss-13361, r=alexcrichton
...
This test appears to pass cleanly on master.
Closes #13361
2015-02-23 11:43:57 -08:00
Manish Goregaokar
8f921502bd
Rollup merge of #22667 - dotdash:retslot_cast.rs, r=huonw
...
We already do this for the function arguments, but miss it for the
retslot pointer, which can lead to LLVM assertions because the retslot
has the wrong type.
Fixes #22663
2015-02-23 11:43:56 -08:00
Manish Goregaokar
5a41536462
Rollup merge of #22664 - lfairy:just-say-no, r=alexcrichton
...
Leading hyphens already don't work (#22661 ), so no code should break from this change.
Closes #22661 .
2015-02-23 11:43:56 -08:00
Manish Goregaokar
65b1a98522
Rollup merge of #22640 - sfackler:fix-take, r=alexcrichton
...
We can't call into the inner reader for a 0-byte read because that may
end up blocking or returning an error.
r? @alexcrichton
2015-02-23 11:43:56 -08:00
Ivan Petkov
2e9521c126
Update missing-doc test to explicitly check errors
...
This way we can be sure the correct error is displayed for the
respective code type.
2015-02-23 11:33:52 -08:00
Ivan Petkov
717a91d665
Update missing-docs lint to check associated type declarations
...
[breaking-change]
Fixes #20648
2015-02-23 11:07:37 -08:00
Ivan Petkov
dab394c2db
Add documentation to associated types in libcore, libstd
2015-02-23 11:05:55 -08:00
Sébastien Marie
cfd2a5cfa1
openbsd: restore linker option
...
The -Wl,--as-needed option was removed during first stages of
bootstrapping between Linux and OpenBSD.
Restore it, as it seems to be ok now.
2015-02-23 20:03:15 +01:00
Manish Goregaokar
db04229d23
Rollup merge of #22696 - stepancheg:use-box, r=alexcrichton
...
e. g.
```
let b: Box<Foo> = Box::from_raw(p);
```
instead of
```
let b: Box<Foo> = mem::transmute(p);
```
Patch also changes closure release code in `src/libstd/sys/unix/thread.rs`
when `pthread_create` failed. Raw pointer was transmuted to box of
`FnOnce()` instead of `Thunk`. This code was probably never executed,
because `pthread_create` rarely fails.
(And there are two more patches in PR: fix typo in doc and mark `from_raw` and `into_raw` functions inline.)
2015-02-23 23:28:49 +05:30
Manish Goregaokar
b2302a50ed
Rollup merge of #22693 - tshepang:use-new-slicing-syntax-runtest, r=alexcrichton
2015-02-23 23:28:49 +05:30
Manish Goregaokar
0750cf79f9
Rollup merge of #22688 - tshepang:use-new-slicing-syntax, r=alexcrichton
2015-02-23 23:28:49 +05:30