]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAdd test for constant pattern diagnostics
Manish Goregaokar [Wed, 11 Nov 2015 19:18:02 +0000 (00:48 +0530)]
Add test for constant pattern diagnostics

8 years agoAdd more comprehensive diagnostics for irrefutable pattern error with constants
Manish Goregaokar [Wed, 11 Nov 2015 19:16:57 +0000 (00:46 +0530)]
Add more comprehensive diagnostics for irrefutable pattern error with constants

Fixes #7526

8 years agoAuto merge of #29650 - goyox86:goyox86/rustfmting-librustc_driverII, r=nikomatsakis
bors [Wed, 11 Nov 2015 14:14:23 +0000 (14:14 +0000)]
Auto merge of #29650 - goyox86:goyox86/rustfmting-librustc_driverII, r=nikomatsakis

Hi Rustaceans!

This is the secong take on running latest rustfmt on librustc_driver!

All fixups made in https://github.com/rust-lang/rust/pull/29033 were done (also rustfmt got better).

//cc @nrc

8 years agoAuto merge of #29755 - mbrubeck:stat-doc, r=steveklabnik
bors [Wed, 11 Nov 2015 11:09:43 +0000 (11:09 +0000)]
Auto merge of #29755 - mbrubeck:stat-doc, r=steveklabnik

Moved from #29753. r? @steveklabnik

8 years agoAuto merge of #29741 - Manishearth:fix-flowgraph, r=alexcrichton
bors [Wed, 11 Nov 2015 09:15:24 +0000 (09:15 +0000)]
Auto merge of #29741 - Manishearth:fix-flowgraph, r=alexcrichton

None

8 years agoAuto merge of #29752 - tamird:fix-compiletest-stage1, r=alexcrichton
bors [Wed, 11 Nov 2015 07:29:54 +0000 (07:29 +0000)]
Auto merge of #29752 - tamird:fix-compiletest-stage1, r=alexcrichton

Fixes #29751.

8 years agoAuto merge of #29744 - sanxiyn:modernize, r=nrc
bors [Wed, 11 Nov 2015 05:47:13 +0000 (05:47 +0000)]
Auto merge of #29744 - sanxiyn:modernize, r=nrc

8 years agoAuto merge of #29738 - sanxiyn:suggest-mut, r=nrc
bors [Wed, 11 Nov 2015 04:04:31 +0000 (04:04 +0000)]
Auto merge of #29738 - sanxiyn:suggest-mut, r=nrc

Fix #16410.

8 years agoAuto merge of #29727 - alexcrichton:debug-unused-result, r=sfackler
bors [Wed, 11 Nov 2015 02:08:08 +0000 (02:08 +0000)]
Auto merge of #29727 - alexcrichton:debug-unused-result, r=sfackler

This should help avoid triggering the unused_results lint which can frequently
be turned on.

Closes #29710

8 years agoAuto merge of #29726 - petrochenkov:privsan, r=alexcrichton
bors [Wed, 11 Nov 2015 00:25:08 +0000 (00:25 +0000)]
Auto merge of #29726 - petrochenkov:privsan, r=alexcrichton

- Check privacy sanity in all blocks, not only function bodies
- Check all fields, not only named
- Check all impl items, not only methods
- Check default impls
- Move the sanity check in the beginning of privacy checking, so others could rely on it

Technically it's a [breaking-change], but I expect no breakage because, well, it's *sane* privacy visitor, if code is broken it must be insane by definition!

8 years agoAuto merge of #29725 - aturon:lang-features, r=huonw
bors [Tue, 10 Nov 2015 22:41:49 +0000 (22:41 +0000)]
Auto merge of #29725 - aturon:lang-features, r=huonw

This commit adds issue numbers to the vast majority of active feature
gates. The few that are left without issues are rustc/runtime-internal
features that are essentially private APIs.

Closes #28244

r? @huonw

8 years agoAuto merge of #29724 - alexcrichton:ip-endian, r=aturon
bors [Tue, 10 Nov 2015 20:58:51 +0000 (20:58 +0000)]
Auto merge of #29724 - alexcrichton:ip-endian, r=aturon

The comparison of IP addresses should happen not always in network endianness
but rather in the host endianness format, so be sure to convert to that before
comparing addresses.

There are still locations where the endianness will factor into visible
properties, such as the hash, but these are not important to be independent of
the endianness in play (as hash values are pretty undefined anyway.

Closes #29691

8 years agoManual fixups.
Jose Narvaez [Tue, 10 Nov 2015 20:49:12 +0000 (20:49 +0000)]
Manual fixups.

8 years agoRustfmting librustc_driver.
Jose Narvaez [Tue, 10 Nov 2015 20:48:44 +0000 (20:48 +0000)]
Rustfmting librustc_driver.

8 years ago[docs] Update references to renamed fs::stat function
Matt Brubeck [Tue, 10 Nov 2015 19:17:26 +0000 (11:17 -0800)]
[docs] Update references to renamed fs::stat function

8 years agoAuto merge of #29714 - petrochenkov:strparse, r=nrc
bors [Tue, 10 Nov 2015 19:15:08 +0000 (19:15 +0000)]
Auto merge of #29714 - petrochenkov:strparse, r=nrc

In particular, attributes are now parsed on fields of tuple variants

8 years agoAuto merge of #29749 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 10 Nov 2015 17:30:50 +0000 (17:30 +0000)]
Auto merge of #29749 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29420, #29688, #29708, #29715, #29729, #29731
- Failed merges: #29544

8 years agocompiletest/raise_fd_limit: use libc instead of custom impl
Tamir Duberstein [Tue, 10 Nov 2015 17:27:55 +0000 (12:27 -0500)]
compiletest/raise_fd_limit: use libc instead of custom impl

Fixes #29751.

8 years agoRollup merge of #29731 - steveklabnik:smallfix, r=alexcrichton
Steve Klabnik [Tue, 10 Nov 2015 15:51:48 +0000 (10:51 -0500)]
Rollup merge of #29731 - steveklabnik:smallfix, r=alexcrichton

* wrap to 80 cols
* small grammar fix, missing 'the'

8 years agoRollup merge of #29729 - brson:readme2, r=steveklabnik
Steve Klabnik [Tue, 10 Nov 2015 15:51:48 +0000 (10:51 -0500)]
Rollup merge of #29729 - brson:readme2, r=steveklabnik

r? @steveklabnik

This completely abdicates any responsibility to explain what Rust is, instead linking to the website.

My main motivation is that I am still not happy with it, and every time I try to fix it I just write a slightly longer sales pitch than what's on the website.

One thing this paragraph could do is direct people to more information about what is in the repo, or more technical information about the implementation.

8 years agoRollup merge of #29715 - defuz:patch-3, r=alexcrichton
Steve Klabnik [Tue, 10 Nov 2015 15:51:48 +0000 (10:51 -0500)]
Rollup merge of #29715 - defuz:patch-3, r=alexcrichton

r? @steveklabnik

See #27305

8 years agoRollup merge of #29708 - Ryman:pathdoc, r=steveklabnik
Steve Klabnik [Tue, 10 Nov 2015 15:51:48 +0000 (10:51 -0500)]
Rollup merge of #29708 - Ryman:pathdoc, r=steveklabnik

r? @steveklabnik

8 years agoRollup merge of #29688 - stepancheg:vec-outdated, r=nikomatsakis
Steve Klabnik [Tue, 10 Nov 2015 15:51:47 +0000 (10:51 -0500)]
Rollup merge of #29688 - stepancheg:vec-outdated, r=nikomatsakis

Since commit 46068c9da, call to `reserve()` on empty vec allocates
exactly requested capacity, so unroll of first iteration may help only
with branch prediction.

8 years agoRollup merge of #29420 - efindlay:master, r=steveklabnik
Steve Klabnik [Tue, 10 Nov 2015 15:51:47 +0000 (10:51 -0500)]
Rollup merge of #29420 - efindlay:master, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #29705 - Ryman:mismatched_typaram_counts, r=alexcrichton
bors [Tue, 10 Nov 2015 15:48:00 +0000 (15:48 +0000)]
Auto merge of #29705 - Ryman:mismatched_typaram_counts, r=alexcrichton

…type-params for methods

8 years agoAuto merge of #29697 - dotdash:mir_trans_switchint, r=nikomatsakis
bors [Tue, 10 Nov 2015 13:17:15 +0000 (13:17 +0000)]
Auto merge of #29697 - dotdash:mir_trans_switchint, r=nikomatsakis

8 years agoUse lifetime elision
Seo Sanghyeon [Tue, 10 Nov 2015 11:42:00 +0000 (20:42 +0900)]
Use lifetime elision

8 years agoAuto merge of #29699 - tamird:valgrind-supp, r=alexcrichton
bors [Tue, 10 Nov 2015 11:34:13 +0000 (11:34 +0000)]
Auto merge of #29699 - tamird:valgrind-supp, r=alexcrichton

Quite a bit of cruft in the valgrind suppressions. I started from a clean slate and found a few unique failures; this commit also moves the tests "fixed" by these suppressions into run-pass-valgrind.

8 years agoUse deref coercions
Seo Sanghyeon [Tue, 10 Nov 2015 11:16:28 +0000 (20:16 +0900)]
Use deref coercions

8 years agoUse exhaustive matching
Vadim Petrochenkov [Tue, 10 Nov 2015 09:51:56 +0000 (12:51 +0300)]
Use exhaustive matching

8 years agoFix help text for flowgraph debug options
Manish Goregaokar [Tue, 10 Nov 2015 09:19:36 +0000 (14:49 +0530)]
Fix help text for flowgraph debug options

8 years agoAuto merge of #29647 - goyox86:goyox86/rustfmting-librustc_frontII, r=nrc
bors [Tue, 10 Nov 2015 08:38:52 +0000 (08:38 +0000)]
Auto merge of #29647 - goyox86:goyox86/rustfmting-librustc_frontII, r=nrc

Hi Rustaceans!

This is the second take  on running latest rustfmt on librustc_front!

This is the same in https://github.com/rust-lang/rust/pull/29075 but cleaned. All fixups have been applied.

//cc @nrc

8 years agoAuto merge of #29546 - alexcrichton:new-libc, r=brson
bors [Tue, 10 Nov 2015 06:56:30 +0000 (06:56 +0000)]
Auto merge of #29546 - alexcrichton:new-libc, r=brson

This commit replaces the in-tree liblibc with the [external clone](https://github.com/rust-lang-nursery/libc) which has no evolved beyond the in-tree version in light of its [recent redesign](https://github.com/rust-lang/rfcs/pull/1291).

The primary changes here are:

* `src/liblibc/lib.rs` was deleted
* `src/liblibc` is now a submodule pointing at the external repository
* `src/libstd/sys/unix/{c.rs,sync.rs}` were both deleted having all bindings folded into the external liblibc.
* Many ad-hoc `extern` blocks in the standard library were removed in favor of bindings now being in the external liblibc.
* Many functions/types were added to `src/libstd/sys/windows/c.rs`, and the scattered definitions throughout the standard library were consolidated here.

At the API level this commit is **not a breaking change**, although it is only very lightly tested on the *BSD variants and is probably going to break almost all of their builds! Follow-up commits to liblibc should in theory be all that's necessary to get the build working on the *BSDs again.

8 years agostd: Migrate to the new libc
Alex Crichton [Tue, 3 Nov 2015 00:23:22 +0000 (16:23 -0800)]
std: Migrate to the new libc

* Delete `sys::unix::{c, sync}` as these are now all folded into libc itself
* Update all references to use `libc` as a result.
* Update all references to the new flat namespace.
* Moves all windows bindings into sys::c

8 years agoSuggest `mut` for mutability errors
Seo Sanghyeon [Tue, 10 Nov 2015 03:58:52 +0000 (12:58 +0900)]
Suggest `mut` for mutability errors

8 years agolibc: Replace liblibc with crates.io libc
Alex Crichton [Tue, 3 Nov 2015 00:22:49 +0000 (16:22 -0800)]
libc: Replace liblibc with crates.io libc

8 years agoSome cleanup on after #29684
Steve Klabnik [Tue, 10 Nov 2015 00:39:23 +0000 (01:39 +0100)]
Some cleanup on after #29684

* wrap to 80 cols
* small grammar fix, missing 'the'

8 years agoRustfmting librustc_front (again).
Jose Narvaez [Thu, 5 Nov 2015 21:17:59 +0000 (21:17 +0000)]
Rustfmting librustc_front (again).

8 years agoRedo the README intro again
Brian Anderson [Mon, 9 Nov 2015 21:22:16 +0000 (13:22 -0800)]
Redo the README intro again

8 years agoUse enum ParsePub instead of bool in field parsing + typo
Vadim Petrochenkov [Mon, 9 Nov 2015 19:34:15 +0000 (22:34 +0300)]
Use enum ParsePub instead of bool in field parsing + typo

8 years agoImprove error message
Vadim Petrochenkov [Mon, 9 Nov 2015 19:16:30 +0000 (22:16 +0300)]
Improve error message

8 years agosyntax: Use `let _` in #[derive(Debug)]
Alex Crichton [Mon, 9 Nov 2015 18:02:39 +0000 (10:02 -0800)]
syntax: Use `let _` in #[derive(Debug)]

This should help avoid triggering the unused_results lint which can frequently
be turned on.

Closes #29710

8 years agorustc_privacy: Fix bugs in SanePrivacyVisitor
Vadim Petrochenkov [Mon, 9 Nov 2015 18:15:53 +0000 (21:15 +0300)]
rustc_privacy: Fix bugs in SanePrivacyVisitor

8 years agostd: Fix endianness in Ord for IP addresses
Alex Crichton [Mon, 9 Nov 2015 17:11:16 +0000 (09:11 -0800)]
std: Fix endianness in Ord for IP addresses

The comparison of IP addresses should happen not always in network endianness
but rather in the host endianness format, so be sure to convert to that before
comparing addresses.

There are still locations where the endianness will factor into visible
properties, such as the hash, but these are not important to be independent of
the endianness in play (as hash values are pretty undefined anyway.

Closes #29691

8 years agoTag feature gates with issues
Aaron Turon [Mon, 9 Nov 2015 17:09:25 +0000 (09:09 -0800)]
Tag feature gates with issues

This commit adds issue numbers to the vast majority of active feature
gates. The few that are left without issues are rustc/runtime-internal
features that are essentially private APIs.

Closes #28244

8 years ago[MIR trans] Add support for SwitchInt
Björn Steinbrink [Sun, 8 Nov 2015 18:11:11 +0000 (19:11 +0100)]
[MIR trans] Add support for SwitchInt

8 years agoDoc: Fix broken link on for-loop.html
Ivan Ivaschenko [Mon, 9 Nov 2015 15:49:30 +0000 (17:49 +0200)]
Doc: Fix broken link on for-loop.html

8 years agosyntax: Merge parsing code for structures and variants
Vadim Petrochenkov [Mon, 9 Nov 2015 15:43:32 +0000 (18:43 +0300)]
syntax: Merge parsing code for structures and variants

8 years agoAuto merge of #29713 - apasel422:executable, r=dotdash
bors [Mon, 9 Nov 2015 15:04:24 +0000 (15:04 +0000)]
Auto merge of #29713 - apasel422:executable, r=dotdash

8 years agoRemove executable permission from .rs files
Andrew Paseltiner [Mon, 9 Nov 2015 14:28:51 +0000 (09:28 -0500)]
Remove executable permission from .rs files

8 years agoAuto merge of #29695 - dtrebbien:remove-mention-of-struct_variant-feature, r=sanxiyn
bors [Mon, 9 Nov 2015 11:14:26 +0000 (11:14 +0000)]
Auto merge of #29695 - dtrebbien:remove-mention-of-struct_variant-feature, r=sanxiyn

The struct_variant feature was accepted and is no longer feature gated.
See #19122, #19124

§6.1.6 Enumerations shows an example of a struct-like enum variant.

8 years agoAuto merge of #29682 - Ryman:dead_spam, r=sanxiyn
bors [Mon, 9 Nov 2015 08:28:35 +0000 (08:28 +0000)]
Auto merge of #29682 - Ryman:dead_spam, r=sanxiyn

This standardises the current behavior to match `enum` variants, hopefully leading to less warning spam for users!

For example the code below will have 2 warnings (for `Foo` and `Bar`) rather than 7:
```rust
enum Foo {
    A,
    B { a: String, b: isize },
    C
}

struct Bar {
    a: i32,
    b: String,
    c: ()
}

fn main() {
    println!("Hi")
}
```
http://is.gd/zAztKW

8 years agolibstd: add example for PathBuf::push
Kevin Butler [Mon, 9 Nov 2015 03:42:22 +0000 (03:42 +0000)]
libstd: add example for PathBuf::push

8 years agolibrustc_typeck: give more information when supplied wrong number of type-params...
Kevin Butler [Mon, 9 Nov 2015 00:11:56 +0000 (00:11 +0000)]
librustc_typeck: give more information when supplied wrong number of type-params for methods

8 years agoAuto merge of #29684 - stepancheg:size-hint, r=Gankro
bors [Sun, 8 Nov 2015 22:01:44 +0000 (22:01 +0000)]
Auto merge of #29684 - stepancheg:size-hint, r=Gankro

* `size_hint()` cannot be relied upon to perform memory unsafe operations

Same applies to `len()` function of `ExactSizeIterator` trait.

8 years agoAuto merge of #29686 - jrburke:docs-error-handling-search-case, r=BurntSushi
bors [Sun, 8 Nov 2015 20:20:16 +0000 (20:20 +0000)]
Auto merge of #29686 - jrburke:docs-error-handling-search-case, r=BurntSushi

In src/doc/trpl/error-handling.md, in this section:

It mentions three steps, to "convert this to proper error handling", the last one being:

3. Handle the error in main.

However, it is not shown. This pull request adds a code example showing how `main`'s call to `search` should use case analysis. I am still very much new to learning Rust, so this may not be idiomatic. Happy to make changes with guidance.

8 years agoAuto merge of #29690 - tbu-:pr_doc_env_home_dir, r=Manishearth
bors [Sun, 8 Nov 2015 18:37:18 +0000 (18:37 +0000)]
Auto merge of #29690 - tbu-:pr_doc_env_home_dir, r=Manishearth

8 years agovalgrind: update suppressions and move interesting tests
Tamir Duberstein [Mon, 2 Nov 2015 04:40:10 +0000 (23:40 -0500)]
valgrind: update suppressions and move interesting tests

8 years agoprint the unexpected character
Tamir Duberstein [Mon, 2 Nov 2015 16:19:27 +0000 (11:19 -0500)]
print the unexpected character

8 years agoExplain that size_hint cannot be trusted
Stepan Koltsov [Sun, 8 Nov 2015 02:30:21 +0000 (05:30 +0300)]
Explain that size_hint cannot be trusted

Same applies to `len()` function of `ExactSizeIterator` trait.

8 years agodoc: error-handling.md: main case analysis for search
jrburke [Sun, 8 Nov 2015 05:36:57 +0000 (21:36 -0800)]
doc: error-handling.md: main case analysis for search

8 years agoreference: Remove struct_variant from Compiler Features
Daniel Trebbien [Sun, 8 Nov 2015 16:27:40 +0000 (11:27 -0500)]
reference: Remove struct_variant from Compiler Features

The struct_variant feature was accepted and is no longer feature gated.
See #19122, #19124

§6.1.6 Enumerations shows an example of a struct-like enum variant.

8 years agoAuto merge of #29692 - jwworth:pull-request/fix-typo, r=apasel422
bors [Sun, 8 Nov 2015 15:56:03 +0000 (15:56 +0000)]
Auto merge of #29692 - jwworth:pull-request/fix-typo, r=apasel422

Fixes the double word 'be'.

8 years agoFix double word 'be'
Jake Worth [Sun, 8 Nov 2015 15:39:01 +0000 (09:39 -0600)]
Fix double word 'be'

8 years agoSpell out the fallback of `std::env::home_dir` on POSIX
Tobias Bucher [Sun, 8 Nov 2015 15:34:16 +0000 (15:34 +0000)]
Spell out the fallback of `std::env::home_dir` on POSIX

8 years agoFix outdated comment in Vec::from_iter
Stepan Koltsov [Sun, 8 Nov 2015 14:17:02 +0000 (17:17 +0300)]
Fix outdated comment in Vec::from_iter

Since commit 46068c9da, call to `reserve()` on empty vec allocates
exactly requested capacity, so unroll of first iteration may help only
with branch prediction.

8 years agojemalloc: pass `--enable-valgrind` when valgrind is enabled
Tamir Duberstein [Mon, 2 Nov 2015 15:39:46 +0000 (10:39 -0500)]
jemalloc: pass `--enable-valgrind` when valgrind is enabled

8 years agojemalloc: quarantine is fixed
Tamir Duberstein [Mon, 2 Nov 2015 12:56:09 +0000 (07:56 -0500)]
jemalloc: quarantine is fixed

8 years agowhitespace
Tamir Duberstein [Mon, 2 Nov 2015 12:56:22 +0000 (07:56 -0500)]
whitespace

8 years agoAuto merge of #29683 - apasel422:typos, r=steveklabnik
bors [Sun, 8 Nov 2015 05:31:21 +0000 (05:31 +0000)]
Auto merge of #29683 - apasel422:typos, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #29681 - vadimcn:fix-dist, r=alexcrichton
bors [Sun, 8 Nov 2015 02:34:24 +0000 (02:34 +0000)]
Auto merge of #29681 - vadimcn:fix-dist, r=alexcrichton

Resolves  #29672.   This happened because rust runtime startup objects, rsbegin.o and rsend.o, were not included in the target libraries package for -windows-gnu.

r? @alexcrichton

8 years agoRemove duplicate words from docs
Andrew Paseltiner [Sun, 8 Nov 2015 02:28:13 +0000 (21:28 -0500)]
Remove duplicate words from docs

8 years agolibrustc: dont warn for inside of items when the parent is dead
Kevin Butler [Sat, 7 Nov 2015 22:07:13 +0000 (22:07 +0000)]
librustc: dont warn for inside of items when the parent is dead

8 years agoFixed "foo()" in try! example, r=steveklabnik
Eric Findlay [Sun, 8 Nov 2015 02:00:03 +0000 (11:00 +0900)]
Fixed "foo()" in try! example, r=steveklabnik

8 years agoMake sure rsbegin.o and rsend.o get packaged with target lib artifacts.
Vadim Chugunov [Sun, 8 Nov 2015 01:44:44 +0000 (17:44 -0800)]
Make sure rsbegin.o and rsend.o get packaged with target lib artifacts.
Also, unified libc startup objects finding logic with that of the `-musl` target, since conceptually they were doing the same thing.

8 years agoAdded foo() to rustdoc example, r=steveklabnik
Eric Findlay [Sun, 8 Nov 2015 01:03:58 +0000 (10:03 +0900)]
Added foo() to rustdoc example, r=steveklabnik

Fixes #29234

8 years agoAuto merge of #29674 - inrustwetrust:flag_alignment, r=alexcrichton
bors [Sat, 7 Nov 2015 23:45:14 +0000 (23:45 +0000)]
Auto merge of #29674 - inrustwetrust:flag_alignment, r=alexcrichton

The `enable-nonzeroing-move-hints` flag name was too long and caused misalignment of the help text.
Now calculating the needed padding dynamically from the available flags instead.

8 years agoAuto merge of #29678 - jwworth:pull-request/fix-typo, r=apasel422
bors [Sat, 7 Nov 2015 18:49:42 +0000 (18:49 +0000)]
Auto merge of #29678 - jwworth:pull-request/fix-typo, r=apasel422

Fixes the typo 'is is'.

8 years agoFix typo
Jake Worth [Sat, 7 Nov 2015 18:27:58 +0000 (12:27 -0600)]
Fix typo

8 years agoAuto merge of #29671 - ollie27:patch-1, r=bluss
bors [Sat, 7 Nov 2015 13:31:10 +0000 (13:31 +0000)]
Auto merge of #29671 - ollie27:patch-1, r=bluss

8 years agoFixed text alignment for output of "rustc -Z help"
inrustwetrust [Sat, 7 Nov 2015 13:00:55 +0000 (14:00 +0100)]
Fixed text alignment for output of "rustc -Z help"

8 years agoUpdate list of array implementations in src/libstd/primitive_docs.rs
Oliver Middleton [Sat, 7 Nov 2015 12:01:11 +0000 (12:01 +0000)]
Update list of array implementations in src/libstd/primitive_docs.rs

8 years agoAuto merge of #29662 - rust-lang:brson-patch-2, r=steveklabnik
bors [Sat, 7 Nov 2015 06:18:39 +0000 (06:18 +0000)]
Auto merge of #29662 - rust-lang:brson-patch-2, r=steveklabnik

r? @steveklabnik

8 years agoDirect security bugs to the security policy.
Brian Anderson [Fri, 6 Nov 2015 22:05:19 +0000 (14:05 -0800)]
Direct security bugs to the security policy.

8 years agoAuto merge of #29666 - Manishearth:rollup, r=Manishearth
bors [Sat, 7 Nov 2015 02:26:45 +0000 (02:26 +0000)]
Auto merge of #29666 - Manishearth:rollup, r=Manishearth

- Successful merges: #29617, #29622, #29656, #29659, #29660
- Failed merges:

8 years agoRollup merge of #29660 - steveklabnik:gh28461, r=brson
Manish Goregaokar [Sat, 7 Nov 2015 01:14:46 +0000 (06:44 +0530)]
Rollup merge of #29660 - steveklabnik:gh28461, r=brson

Fixes #28461

8 years agoRollup merge of #29659 - angelsl:crt-rebase, r=alexcrichton
Manish Goregaokar [Sat, 7 Nov 2015 01:14:46 +0000 (06:44 +0530)]
Rollup merge of #29659 - angelsl:crt-rebase, r=alexcrichton

cc: @vadimcn @vhbit

r? @alexcrichton

8 years agoRollup merge of #29656 - arcnmx:static-extern, r=alexcrichton
Manish Goregaokar [Sat, 7 Nov 2015 01:14:45 +0000 (06:44 +0530)]
Rollup merge of #29656 - arcnmx:static-extern, r=alexcrichton

This is currently done for functions but not public static symbols.

8 years agoRollup merge of #29622 - steveklabnik:gh29621, r=bstrie
Manish Goregaokar [Sat, 7 Nov 2015 01:14:45 +0000 (06:44 +0530)]
Rollup merge of #29622 - steveklabnik:gh29621, r=bstrie

Now that thread::sleep is a real thing, let's use it

Fixes #29621

r? @bstrie

8 years agoRollup merge of #29617 - steveklabnik:gh29591, r=alexcrichton
Manish Goregaokar [Sat, 7 Nov 2015 01:14:45 +0000 (06:44 +0530)]
Rollup merge of #29617 - steveklabnik:gh29591, r=alexcrichton

Fixes #29591

8 years agoAuto merge of #29551 - arcnmx:target-family, r=alexcrichton
bors [Sat, 7 Nov 2015 00:42:10 +0000 (00:42 +0000)]
Auto merge of #29551 - arcnmx:target-family, r=alexcrichton

Allow the changing of `target_family` through flexible configuration. The whole computing world isn't just a binary of *nix and Windows! Makes porting `libstd` and co to new platforms a lot less painful.

8 years agoAuto merge of #29462 - alexcrichton:refactor-process-ret, r=aturon
bors [Fri, 6 Nov 2015 22:57:37 +0000 (22:57 +0000)]
Auto merge of #29462 - alexcrichton:refactor-process-ret, r=aturon

* Store the native representation directly in the `ExitStatus` structure instead
  of a "parsed version" (mostly for Unix).
* On Windows, be more robust against processes exiting with the status of 259.
  Unfortunately this exit code corresponds to `STILL_ACTIVE`, causing libstd to
  think the process was still alive, causing an infinite loop. Instead the loop
  is removed altogether and `WaitForSingleObject` is used to wait for the
  process to exit.

8 years agostd: Refactor process exit code handling slightly
Alex Crichton [Thu, 29 Oct 2015 20:45:56 +0000 (13:45 -0700)]
std: Refactor process exit code handling slightly

* Store the native representation directly in the `ExitStatus` structure instead
  of a "parsed version" (mostly for Unix).
* On Windows, be more robust against processes exiting with the status of 259.
  Unfortunately this exit code corresponds to `STILL_ACTIVE`, causing libstd to
  think the process was still alive, causing an infinite loop. Instead the loop
  is removed altogether and `WaitForSingleObject` is used to wait for the
  process to exit.

8 years agoAuto merge of #29582 - oli-obk:token_tree, r=sfackler
bors [Fri, 6 Nov 2015 21:11:06 +0000 (21:11 +0000)]
Auto merge of #29582 - oli-obk:token_tree, r=sfackler

8 years agosleep_ms -> sleep
Steve Klabnik [Thu, 5 Nov 2015 16:29:36 +0000 (17:29 +0100)]
sleep_ms -> sleep

Now that thread::sleep is a real thing, let's use it

Fixes #29621

8 years agoAdd multi-line string literals to TRPL
Steve Klabnik [Thu, 5 Nov 2015 14:58:08 +0000 (15:58 +0100)]
Add multi-line string literals to TRPL

Fixes #29591

8 years agoMake a note about "gigabyte"
Steve Klabnik [Fri, 6 Nov 2015 16:42:53 +0000 (17:42 +0100)]
Make a note about "gigabyte"

Fixes #28461

8 years agoAuto merge of #29657 - defuz:patch-2, r=steveklabnik
bors [Fri, 6 Nov 2015 16:42:03 +0000 (16:42 +0000)]
Auto merge of #29657 - defuz:patch-2, r=steveklabnik

r? @steveklabnik

8 years agoUpdate compiler-rt
angelsl [Fri, 6 Nov 2015 16:26:44 +0000 (00:26 +0800)]
Update compiler-rt

8 years agoAuto merge of #29643 - petrochenkov:stability5, r=alexcrichton
bors [Fri, 6 Nov 2015 14:57:41 +0000 (14:57 +0000)]
Auto merge of #29643 - petrochenkov:stability5, r=alexcrichton

Also remove `stable` stability annotations from inherent impls

(There will be a warning for useless stability annotations soon.)

r? @Gankro