Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 16 pull requests #40616

Closed
wants to merge 47 commits into from
Closed

Rollup of 16 pull requests #40616

wants to merge 47 commits into from

Commits on Mar 9, 2017

  1. Configuration menu
    Copy the full SHA
    c7db40f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50aee36 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2017

  1. Cleanup.

    jseyfried committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    460bf55 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    68c1cc6 View commit details
    Browse the repository at this point in the history
  3. Liberalize attributes.

    jseyfried committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    839c286 View commit details
    Browse the repository at this point in the history
  4. Add tests.

    jseyfried committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    85e02bd View commit details
    Browse the repository at this point in the history
  5. travis: Ensure cargo links libcurl statically

    We don't want a dynamic dependency in the library that we ship, so link it
    statically by configuring curl-sys's build script to not pick up the system
    version via pkg-config.
    alexcrichton committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    5fab9bf View commit details
    Browse the repository at this point in the history
  6. Target builds for older macOS

    wagenet committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    61d9387 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2017

  1. make shift builtins panic-free with new unchecked_sh* intrinsics

    Also update some 128 bit builtins to be panic-free without relying
    on the const evaluator.
    TimNN committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    cc23d17 View commit details
    Browse the repository at this point in the history
  2. Rename TryFrom's associated type and implement str::parse using TryFrom.

    Per discussion on the tracking issue, naming `TryFrom`'s associated type
    `Error` is generally more consistent with similar traits in the Rust
    ecosystem, and what people seem to assume it should be called. It
    also helps disambiguate from `Result::Err`, the most common "Err".
    
    See
    rust-lang#33417 (comment).
    
    TryFrom<&str> and FromStr are equivalent, so have the latter provide the
    former to ensure that. Using TryFrom in the implementation of
    `str::parse` means types that implement either trait can use it.
    When we're ready to stabilize `TryFrom`, we should update `FromStr` to
    suggest implementing `TryFrom<&str>` instead for new code.
    
    See
    rust-lang#33417 (comment)
    and
    rust-lang#33417 (comment).
    
    Refs rust-lang#33417.
    jimmycuadra authored and alexcrichton committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    2561dcd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a457d67 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4961f6c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    befeb04 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2017

  1. Configuration menu
    Copy the full SHA
    9b89274 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    910532e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    284ece3 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2017

  1. Configuration menu
    Copy the full SHA
    50cede0 View commit details
    Browse the repository at this point in the history
  2. Update libc to 0.2.21

    malbarbo committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    c96491f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5798817 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3435c60 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    963d4df View commit details
    Browse the repository at this point in the history
  6. Fix typo in mutex.rs docs

    This seems to match other uses of "be accessed" in the document.
    ScottAbbey committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    ec8ecf4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    33a5665 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    65b7c4e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d38ea8b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9511fe6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    10510ae View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    37b38a2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    48890d4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a8f4a1b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1241a88 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#40281 - jimmycuadra:try-from-from-str, r=at…

    …uron
    
    Rename TryFrom's associated type and implement str::parse using TryFrom.
    
    Per discussion on the tracking issue, naming `TryFrom`'s associated type `Error` is generally more consistent with similar traits in the Rust ecosystem, and what people seem to assume it should be called. It also helps disambiguate from `Result::Err`, the most common "Err".
    
    See rust-lang#33417 (comment).
    
    `TryFrom<&str>` and `FromStr` are equivalent, so have the latter provide the former to ensure that. Using `TryFrom` in the implementation of `str::parse` means types that implement either trait can use it. When we're ready to stabilize `TryFrom`, we should update `FromStr` to
    suggest implementing `TryFrom<&str>` instead for new code.
    
    See rust-lang#33417 (comment)
    and rust-lang#33417 (comment).
    
    Refs rust-lang#33417.
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    daf4904 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#40317 - malbarbo:update-libc, r=alexcrichton

    Update libc to 0.2.21
    
    Update to include android aarch64 and x86 improvements.
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    ef47812 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#40346 - jseyfried:path_and_tokenstream_attr…

    …, r=nrc
    
    `TokenStream`-based attributes, paths in attribute and derive macro invocations
    
    This PR
     - refactors `Attribute` to use  `Path` and `TokenStream` instead of `MetaItem`.
     - supports macro invocation paths for attribute procedural macros.
       - e.g. `#[::foo::attr_macro] struct S;`, `#[cfg_attr(all(), foo::attr_macro)] struct S;`
     - supports macro invocation paths for derive procedural macros.
       - e.g. `#[derive(foo::Bar, super::Baz)] struct S;`
     - supports arbitrary tokens as arguments to attribute procedural macros.
       - e.g. `#[foo::attr_macro arbitrary + tokens] struct S;`
     - supports using arbitrary tokens in "inert attributes" with derive procedural macros.
       - e.g. `#[derive(Foo)] struct S(#[inert arbitrary + tokens] i32);`
    where `#[proc_macro_derive(Foo, attributes(inert))]`
    
    r? @nrc
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    553de9c View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#40398 - eddyb:struct-hint, r=nikomatsakis

    Propagate expected type hints through struct literals.
    
    Partial fix for rust-lang#31260 to maximize backwards-compatibility, i.e. the hint is provided but not coerced to.
    
    The added test works because `{...; x}` with a hint of `T` coerces `x` to `T`, and the reasoning why that is slightly different has to do with DSTs: `&Struct { tail: [x] }: &Struct<[T]>` has a hint of `[T]` for `[x]`, but the inferred type should be `[T; 1]` to succeed later, so `[x]` shouldn't be *forced* to be `[T]`.
    
    *However*, implementing that complete behavior in a backwards-compatible way may be non-trivial, and has not yet been fully investigated, while this PR fixes rust-lang#40355 and can be backported.
    
    r? @nikomatsakis
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    171979b View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#40409 - mbrubeck:calloc, r=sfackler

    Specialize Vec::from_elem to use calloc
    
    Fixes rust-lang#38723.  This specializes the implementation for `u8` only, but it could be extended to other zeroable types if desired.
    
    I haven't tested this extensively, but I did verify that it gives the expected performance boost for large `vec![0; n]` allocations with both alloc_system and jemalloc, on Linux.  (I have not tested or even built the Windows code.)
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    c7a1d01 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#40482 - wagenet:fix-old-macos, r=alexcrichton

    Target builds for older macOS
    
    Fix rust-lang#40481
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    6242e2f View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#40507 - alexcrichton:static-libcurl, r=brson

    travis: Ensure cargo links libcurl statically
    
    We don't want a dynamic dependency in the library that we ship, so link it
    statically by configuring curl-sys's build script to not pick up the system
    version via pkg-config.
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    63fb201 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#40521 - TimNN:panic-free-shift, r=nagisa

    Implemente overflowing_sh* with new unchecked_sh* intrinsics
    
    Also update some 128 bit builtins to not rely on the constant evaluator to avoid checked operations.
    
    Fixes rust-lang#40508.
    
    cc @nagisa, @alexcrichton
    
    Note: I still have a build running to see if the 128 bit changes worked (unoptimized builds take *forever* to compile), however at least the overflowing builtins no longer reference `core::panicking::panic`.
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    4cdcf87 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#40538 - aturon:stab-1.17, r=alexcrichton

    Library stabilizations for 1.17
    
    Details of the stabilizations are available in the commits. Includes only library stabilizations; there are a couple of compiler stabilizations that should also be done for 1.17.
    
    Will need a beta backport, which I will create after approval.
    
    r? @alexcrichton
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    0fe80d8 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#40562 - mbrubeck:bootstrap, r=alexcrichton

    Remove unused param from bootstrap::clean::rm_rf
    
    None
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    fb22c1d View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#40564 - GuillaumeGomez:rustdoc-const, r=fre…

    …wsxcv
    
    Fix const not displayed in rustdoc
    
    Fixes rust-lang#40331.
    
    r? @rust-lang/docs
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    c4c51ca View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#40583 - jseyfried:fix_include_macro_regress…

    …ion, r=nrc
    
    macros: fix regression with `include!()`
    
    Fixes rust-lang#40469, a regression when `include!()`ing a `macro_rules!` containing `$crate`.
    r? @nrc
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    4955503 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#40588 - topecongiro:add-missing-tests, r=al…

    …excrichton
    
    Add a test for issue 34571
    
    Closes rust-lang#34571.
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    7a0dd2b View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#40590 - z1mvader:master, r=steveklabnik

    documented order of conversion between u32 an ipv4addr
    
    This fixes rust-lang#40118
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    3035845 View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#40603 - QuietMisdreavus:slice-ptr-docs, r=G…

    …uillaumeGomez
    
    minor wording tweak to slice::{as_ptr, as_mut_ptr}
    
    Per rust-lang#37334, the slice-as-pointer methods mentioned that "modifying the slice may cause its buffer to be reallocated", when in fact modifying the *slice* itself would cause no such change. (It is a borrow, after all!) This is a tweak to the wording of that line to stress it's the *collection* that could cause the buffer to be reallocated.
    
    r? @steveklabnik
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    ae9a710 View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#40611 - ScottAbbey:patch-1, r=GuillaumeGomez

    Fix typo in mutex.rs docs
    
    This seems to match other uses of "be accessed" in the document.
    frewsxcv committed Mar 17, 2017
    Configuration menu
    Copy the full SHA
    f6c8a9d View commit details
    Browse the repository at this point in the history