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 10 pull requests #63640

Merged
merged 29 commits into from
Aug 16, 2019
Merged

Rollup of 10 pull requests #63640

merged 29 commits into from
Aug 16, 2019

Commits on May 2, 2019

  1. Add custom nth_back for Chain

    acrrd committed May 2, 2019
    Configuration menu
    Copy the full SHA
    7b6ad60 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2019

  1. 1. support crt-static

    2. change armv7_wrs_vxworks to armv7_wrs_vxworks_eabihf.
    3. use wr-** instead of vx-**
    4. set PIE to false
    5. code cleanup
    bpangWR committed Aug 14, 2019
    Configuration menu
    Copy the full SHA
    f161efa View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2019

  1. Make sure that all file loading happens via SourceMap

    That way, callers don't need to repeat "let's add this to sm manually
    for tracking dependencies" trick.
    
    It should make it easier to switch to using `FileLoader` for binary
    files in the future as well
    matklad committed Aug 15, 2019
    Configuration menu
    Copy the full SHA
    66dc08a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14bc998 View commit details
    Browse the repository at this point in the history
  3. add sparc64-unknown-openbsd target

    on OpenBSD, some architectures relies on libc++ (from LLVM) and some
    others on libestdc++ (particular version of libstdc++ from GCC).
    
    sparc64-unknown-openbsd needs libestdc++ and libgcc (as x86_64 some
    years ago). Reintroduce the support of them for openbsd, only for
    sparc64 arch. Some others architectures on OpenBSD could use them too.
    semarie committed Aug 15, 2019
    Configuration menu
    Copy the full SHA
    c01ba2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    403e672 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a9ecfd7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    263e3c5 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2019

  1. Fix a comment for the def_path_table.

    The definition path table contains *all* definitions, not just public
    definitions.
    vext01 committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    170aced View commit details
    Browse the repository at this point in the history
  2. CrateStore comment fix.

    with -> which , and re-wrap line.
    vext01 committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    8e4d0ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b565ece View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9107ec1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2ff337a View commit details
    Browse the repository at this point in the history
  6. bless you nll

    eddyb committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    45980e8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d50a9b1 View commit details
    Browse the repository at this point in the history
  8. ci: move linkcheck from mingw-2 to mingw-1

    Running UI tests now takes a huge amount of time on mingw builders
    (between 40 and 50 minutes), with mingw-1 builders taking even an hour
    less to finish than mingw-2. This PR moves linkcheck from mingw-2 to
    mingw-1, removing between 10 and 20 minutes of runtime on the -2
    builders.
    pietroalbini committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    9df2dac View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    36b18a1 View commit details
    Browse the repository at this point in the history
  10. Update hashbrown to 0.5.0

    SimonSapin committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    a92c29b View commit details
    Browse the repository at this point in the history
  11. Add the Layout of the failed allocation to TryReserveError::AllocError

    … and add a separately-unstable field to force non-exhaustive matching
    (`#[non_exhaustive]` is no implemented yet on enum variants)
    so that we have the option to later expose the allocator’s error value.
    
    CC rust-lang/wg-allocators#23
    SimonSapin committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    59a3409 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#60492 - acrrd:issues/54054_chain, r=SimonSapin

    Add custom nth_back for Chain
    
    Implementation of nth_back for Chain.
    Part of rust-lang#54054
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    e632daf View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#61780 - SimonSapin:container-error, r=Amanieu

    Finalize the error type for `try_reserve`
    
    See tracking issue comments from rust-lang#48043 (comment).
    
    It is now:
    
    ```rust
    /// The error type for `try_reserve` methods.
    #[derive(Clone, PartialEq, Eq, Debug)]
    #[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
    pub enum TryReserveError {
        /// Error due to the computed capacity exceeding the collection's maximum
        /// (usually `isize::MAX` bytes).
        CapacityOverflow,
    
        /// The memory allocator returned an error
        AllocError {
            /// The layout of allocation request that failed
            layout: Layout,
    
            #[doc(hidden)]
            #[unstable(feature = "container_error_extra", issue = "0", reason = "\
                Enable exposing the allocator’s custom error value \
                if an associated type is added in the future: \
                rust-lang/wg-allocators#23")]
            non_exhaustive: (),
        },
    }
    
    #[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
    impl From<LayoutErr> for TryReserveError {
        #[inline]
        fn from(_: LayoutErr) -> Self {
            TryReserveError::CapacityOverflow
        }
    }
    ```
    
    Changes:
    
    * A `Layout` is included. Firefox wants to log the size of failed allocations. If this were not part of the return value of e.g. `HashMap::try_reserve`, users would only be able to estimate based on `HashMap::capacity` and assumptions about the allocation strategy of `HashMap`.
    
    * There’s a dummy field that can stay unstable when `try_reserve` and the rest of this enum are stabilized. This forces non-exhaustive matching ~(rust-lang#44109 is not implemented yet for variants)~ and allows adding another field in the future if we want to expose custom error values from the allocator. See rust-lang/wg-allocators#23.
    
      - If the `Alloc` trait is stabilized without an associated error type and with a zero-size `AllocErr` type, we can simply remove this dummy field.
      - If an associated type is added, we can add a default type parameter to `ContainerError` and a generic field to the `AllocError` variant.
    
    * ~Moved from the `collections` module to the `alloc` module, and replaced `Collection` in the enum name with `Container`. The wold collection implies a multiplicity of items which is not relevant to this type. For example we may want to use this error type in a future `Box::try_new` method.~
    
      - Renamed to `TryReserveError`, after the methods that involve this type: rust-lang#61780 (comment)
    
    * Replaced `Err` with `Error` in the enum and variant names. There is more precedent for this in https://doc.rust-lang.org/std/error/trait.Error.html#implementors, `AllocErr` and `LayoutErr` are the odd ones.
    
    * ~Dropped `Alloc` in the enum name. `ContainerAllocError` with a mouthful, and being in the `alloc` module already provides the same indication.~
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    aec047e View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#63495 - eddyb:mir-constant-ty, r=oli-obk

     Remove redundant `ty` fields from `mir::Constant` and `hair::pattern::PatternRange`.
    
    Fixes rust-lang#56137.
    
    As a side-effect, associated const literals have the correct type now, which should make things easier for rust-lang#61041.
    
    r? @oli-obk / @matthewjasper cc @davidtwco @varkor
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    db3bae0 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#63525 - matklad:centraliza-file-loading, r=…

    …petrochenkov
    
    Make sure that all file loading happens via SourceMap
    
    That way, callers don't need to repeat "let's add this to sm manually
    for tracking dependencies" trick.
    
    It should make it easier to switch to using `FileLoader` for binary
    files in the future as well
    
    cc rust-lang#62948
    
    r? @petrochenkov
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    c83d3c3 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#63595 - semarie:openbsd-sparc64, r=alexcric…

    …hton
    
    add sparc64-unknown-openbsd target
    
    on OpenBSD, some architectures relies on libc++ (from LLVM) and some
    others on libestdc++ (particular version of libstdc++ from GCC).
    
    sparc64-unknown-openbsd needs libestdc++ and libgcc (as x86_64 some
    years ago). Reintroduce the support of them for openbsd, only for
    sparc64 arch. Some others architectures on OpenBSD could use them too.
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    c53ce3b View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#63604 - Wind-River:master, r=alexcrichton

    Some update for vxWorks
    
    1. support crt-static
    2. change armv7_wrs_vxworks to armv7_wrs_vxworks_eabihf.
    3. change vx-cxx to wr-c++,  vx-ar to wr-ar and vx-run to wr-run.
    4. code cleanup
    
    r? @alexcrichton
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    b731131 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#63613 - petrochenkov:stdhyg, r=alexcrichton

    Hygienize use of built-in macros in the standard library
    
    Same as rust-lang#61629, but for built-in macros.
    
    Closes rust-lang#48781
    r? @alexcrichton
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    cd21715 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#63632 - vext01:vext01-comment-fixes, r=eddyb

    A couple of comment fixes.
    
    This change fixes a couple of comments in the compiler code.
    
    The first change was discussed with @eddyb. This one confused me because I thought only *public* defs were in the table (not so).
    
    The second was a typo I noticed yesterday.
    
    OK to go in?
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    f40a280 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#63634 - pietroalbini:cpu-stats-name, r=alex…

    …crichton
    
    ci: properly set the job name in CPU stats
    
    r? @alexcrichton
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    4c3f21b View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#63636 - pietroalbini:ci-mingw, r=alexcrichton

    ci: move linkcheck from mingw-2 to mingw-1
    
    Running UI tests now takes a huge amount of time on mingw builders
    (between 40 and 50 minutes), with mingw-1 builders taking even an hour
    less to finish than mingw-2. This PR moves linkcheck from mingw-2 to
    mingw-1, removing between 10 and 20 minutes of runtime on the -2
    builders.
    
    r? @alexcrichton
    Centril authored Aug 16, 2019
    Configuration menu
    Copy the full SHA
    6b0a838 View commit details
    Browse the repository at this point in the history