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 27 pull requests #44621

Closed
wants to merge 66 commits into from
Closed

Commits on Aug 30, 2017

  1. Configuration menu
    Copy the full SHA
    e15a07a View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2017

  1. alloc: Implement downcast Rc<Any> -> Rc<T>

    Implement downcast the like it exists for Box.
    
    The implementation avoids using into_raw/from_raw, because the pointer
    arithmetic which should cancel does not seem to optimize out at the
    moment.
    
    Since Rc<T> is never Send, only Rc<Any> and not Rc<Any + Send>
    implements downcast.
    bluss committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    758a0ce View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2017

  1. Configuration menu
    Copy the full SHA
    c22db3d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad170f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2017

  1. Add feature gate to doctests.

    jcdyer committed Sep 9, 2017
    Configuration menu
    Copy the full SHA
    8b6122f View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2017

  1. Configuration menu
    Copy the full SHA
    4f24507 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2017

  1. Configuration menu
    Copy the full SHA
    a095ee4 View commit details
    Browse the repository at this point in the history
  2. add test

    GuillaumeGomez committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    9c12e5d View commit details
    Browse the repository at this point in the history
  3. 1 Configuration menu
    Copy the full SHA
    79f888d View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2017

  1. bump gcc for bootstrap

    On Windows, the gcc crate would send /Wall to msvc, which would cause
    builds to get flooded with warnings, exploding compile times from one
    hour to more than 72! The gcc crate version 0.3.54 changes this behavior
    to send /W4 instead, which greatly cuts down on cl.exe flooding the
    command prompt window with warnings.
    QuietMisdreavus committed Sep 12, 2017
    Configuration menu
    Copy the full SHA
    81ebab6 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2017

  1. rustc: Spawn cmd /c emcc.bat explicitly

    In rust-lang#42436 the behavior for spawning processes on Windows was tweaked slightly to
    fix various bugs, but this caused rust-lang#42791 as a regression, namely that to spawn
    batch scripts they need to be manually spawned with `cmd /c` instead now. This
    updates the compiler to handle this case explicitly for Emscripten.
    
    Closes rust-lang#42791
    alexcrichton committed Sep 13, 2017
    Configuration menu
    Copy the full SHA
    5cad391 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2017

  1. bring TyCtxt into scope

    qmx committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    d3bbce7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d3c2386 View commit details
    Browse the repository at this point in the history
  3. adding ui tests

    gaurikholkar committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    f8df89a View commit details
    Browse the repository at this point in the history
  4. fix depth for structs

    gaurikholkar committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    696a268 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    39c9a3d View commit details
    Browse the repository at this point in the history
  6. add ui tests for EBR

    gaurikholkar committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    9240454 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    06478d1 View commit details
    Browse the repository at this point in the history
  8. Delete fn.rs

    Removing unwanted file merged in  a previous commit
    gaurikholkar authored Sep 14, 2017
    Configuration menu
    Copy the full SHA
    5229443 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4253a41 View commit details
    Browse the repository at this point in the history
  10. Trim and document libc shim

    tamird committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    509982c View commit details
    Browse the repository at this point in the history
  11. travis: Move sccache to the us-west-1 region

    Most of the other rust-lang buckets are in us-west-1 and I think the original
    bucket was just accidentally created in the us-east-1 region. Let's consolidate
    by moving it to the same location as the rest of our buckets.
    alexcrichton committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    ddd321d View commit details
    Browse the repository at this point in the history
  12. Customize <FlatMap as Iterator>::fold

    `FlatMap` can use internal iteration for its `fold`, which shows a
    performance advantage in the new benchmarks:
    
        test iter::bench_flat_map_chain_ref_sum ... bench:   4,354,111 ns/iter (+/- 108,871)
        test iter::bench_flat_map_chain_sum     ... bench:     468,167 ns/iter (+/- 2,274)
        test iter::bench_flat_map_ref_sum       ... bench:     449,616 ns/iter (+/- 6,257)
        test iter::bench_flat_map_sum           ... bench:     348,010 ns/iter (+/- 1,227)
    
    ... where the "ref" benches are using `by_ref()` that isn't optimized.
    So this change shows a decent advantage on its own, but much more when
    combined with a `chain` iterator that also optimizes `fold`.
    cuviper committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    61a7703 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2017

  1. bring TyCtxt into scope

    qmx committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    2bde694 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d5b0e1 View commit details
    Browse the repository at this point in the history
  3. bring Ty into scope

    qmx committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    3fe4612 View commit details
    Browse the repository at this point in the history
  4. rustc: Preallocate when building the dep graph

    This commit alters the `query` function in the dep graph module to preallocate
    memory using `with_capacity` instead of relying on automatic growth. Discovered
    in rust-lang#44576 it was found that for the syntex_syntax clean incremental benchmark
    the peak memory usage was found when the dep graph was being saved, particularly
    the `DepGraphQuery` data structure itself. PRs like rust-lang#44142 which add more
    queries end up just making this much larger!
    
    I didn't see an immediately obvious way to reduce the size of the
    `DepGraphQuery` object, but it turns out that `with_capacity` helps quite a bit!
    Locally 831 MB was used [before] this commit, and 770 MB is in use at the peak
    of the compiler [after] this commit. That's a nice 7.5% improvement! This won't
    quite make up for the losses in rust-lang#44142 but I figured it's a good start.
    
    [before]: https://gist.github.com/alexcrichton/2d2b9c7a65503761925c5a0bcfeb0d1e
    [before]: https://gist.github.com/alexcrichton/6da51f2a6184bfb81694cc44f06deb5b
    alexcrichton committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    a7817dd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    07494ec View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1b571a0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5398e03 View commit details
    Browse the repository at this point in the history
  8. Update cargo submodule

    Just a routine update
    alexcrichton committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    2819122 View commit details
    Browse the repository at this point in the history
  9. update rust-installer

    RalfJung committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    9a01dc4 View commit details
    Browse the repository at this point in the history
  10. stabilized iterator_for_each (closes rust-lang#42986)

    updated clippy and rls as it uses the iterator_for_each
    budziq committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    8772227 View commit details
    Browse the repository at this point in the history
  11. rustbuild: Compile the error-index in stage 2

    Right now we comiple rustdoc in stage 2 and the error index in stage 0, which
    ends up compiling rustdoc twice! To avoid compiling rustdoc twice (which takes
    awhile) let's just compile it once in stage 2.
    alexcrichton committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    61e255a View commit details
    Browse the repository at this point in the history
  12. rustbuild: Update cmake dependency

    Should help suppress some warnings from various repos as `cmake` in the newest
    version disables warnings by default.
    alexcrichton committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    6fdadaa View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3a39d95 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    351f56a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f7e974e View commit details
    Browse the repository at this point in the history
  16. travis: Disable LLVM assertions on OSX

    Our OSX builders are routinely and significantly over hour 2 hour "soft limit"
    for testing PRs. I *think* that a big portion of this time comes from the fact
    that LLVM and debug assertions are enabled. In an effort to speed up these
    builders and reduce cycle time this commit disables LLVM assertions on OSX for
    all builders.
    
    My thinking is that we'll let this bake for a bit after merged to see what the
    effect is on timing on Travis. If it doesn't actually help much we can turn them
    back on, and if it doesn't help enough we can disable Rust debug assertions as
    well.
    alexcrichton committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    97fee3e View commit details
    Browse the repository at this point in the history
  17. rustbuild: Fix test "test rustdoc" invocation

    Previously it would use the librustc output directory which would cause rustdoc
    to get entirely recompiled, whereas the intention is that it uses the
    already-compiled artifacts from building rustdoc itself, using the tool output
    directory
    alexcrichton committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    3da54fb View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2017

  1. Rollup merge of rust-lang#43964 - Gankro:unsafe-reform, r=sfackler

    implement unsafe pointer methods
    
    I also cleaned up some existing documentation a bit here or there since I was doing so much auditing of it. Most notably I significantly rewrote the `offset` docs to clarify safety (`*const` and `*mut`'s offset docs had actually diverged).
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    eed781e View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#43989 - circuitfox:sliceext-binary-search-s…

    …ig, r=alexcrichton
    
    Remove Borrow bound from SliceExt::binary_search
    
    rust-lang#37761 added a Borrow bound to `binary_search` and `binary_search_by_key` in `core::SliceExt`, but did not add it to the methods in `std::slice`. rust-lang#41590 attempted to add this bound to `std::slice` but was not merged due to breakage. This PR removes the bound in `core::SliceExt`, so that these methods will have the same signature in `core` and `std`.
    
    Fixes rust-lang#41561
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    7cee082 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#44273 - bluss:rc-downcast, r=alexcrichton

    Implement <Rc<Any>>::downcast
    
    * Implement `<Rc<Any>>::downcast::<T>`
      * New unstable method. Works just like Box\<Any\>, but for Rc.
      * Any has two cases for its methods: Any and Any + Send; Rc is never Send, so that case is skipped for Rc.
      * Motivation for being a method with self is to match Box and there is no user-supplied type; the inner type is Any and downcast does not conflict with any method of Any.
    * Arc was skipped because Any itself has no downcast for the case that makes most sense: Any + Send + Sync
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    b0e07c6 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#44356 - nrc:rls-component-manifest, r=@alex…

    …crichton
    
    Attempt to fix the component manifest problem for rls-preview
    
    cc rust-lang#44270
    
    See rust-lang#44270
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    fb954ba View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#44395 - jcdyer:ip-constructors, r=alexcrichton

    Ipv4Addr and Ipv6Addr convenience constructors.
    
    Introduce convenience constructors for common types.
    
    This introduces the following constructors:
    
    * Ipv6Addr::localhost()
    * Ipv6Addr::unspecified()
    * Ipv4Addr::localhost()
    * Ipv4Addr::unspecified()
    
    The recently added `From` implementations were nice for avoiding the fallibility of conversions from strings like `"127.0.0.1".parse().unwrap()`, and `"::1".parse().unwrap()`, but while the Ipv4 version is roughly comparable in verbosity, the Ipv6 version lacks zero-segment elision, which makes it significantly more awkward: `[0, 0, 0, 0, 0, 0, 0, 0].into()`.  While there isn't a clear way to introduce zero elision to type that can infallibly be converted into Ipv6 addresses, this PR resolves the problem for the two most commonly used addresses, which, incidentally, are the ones that suffer the most from the lack of zero-segment elision.
    
    This change is dead simple, and introduces no backwards incompatibility.
    
    See also, [this topic on the inernals board](https://internals.rust-lang.org/t/pre-rfc-convenience-ip-address-constructors/5878)
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    900707e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#44397 - GuillaumeGomez:codeblock-color, r=Q…

    …uietMisdreavus
    
    Codeblock color
    
    <img width="1440" alt="screen shot 2017-09-07 at 21 53 58" src="https://user-images.githubusercontent.com/3050060/30183045-4319108e-9419-11e7-98da-da54952cab37.png">
    
    This screenshot has been generated from:
    
    ```rust
    /// foo
    ///
    /// ```compile_fail
    /// foo();
    /// ```
    ///
    /// ```ignore
    /// goo();
    /// ```
    ///
    /// ```
    /// let x = 0;
    /// ```
    pub fn bar() -> usize { 2 }
    ```
    
    r? @QuietMisdreavus
    cc @rust-lang/docs
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    5153913 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#44515 - tamird:clean-shims, r=alexcrichton

    {compiler-builtins,libc} shim cleanup
    
    ~~Depends on rust-lang/libc#764; opening early for feedback.~~ r? @alexcrichton
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    91dc1d9 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#44531 - QuietMisdreavus:bump-gcc, r=alexcri…

    …chton
    
    bump gcc for bootstrap
    
    On Windows, the gcc crate would send /Wall to msvc, which would cause
    builds to get flooded with warnings, exploding compile times from one
    hour to more than 72! The gcc crate version 0.3.54 changes this behavior
    to send /W4 instead, which greatly cuts down on cl.exe flooding the
    command prompt window with warnings.
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    2024210 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#44542 - alexcrichton:fix-windows-emscripten…

    …, r=nikomatsakis
    
    rustc: Spawn `cmd /c emcc.bat` explicitly
    
    In rust-lang#42436 the behavior for spawning processes on Windows was tweaked slightly to
    fix various bugs, but this caused rust-lang#42791 as a regression, namely that to spawn
    batch scripts they need to be manually spawned with `cmd /c` instead now. This
    updates the compiler to handle this case explicitly for Emscripten.
    
    Closes rust-lang#42791
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    218e677 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#44549 - gaurikholkar:master, r=arielb1

    extend E0623 for earlybound and latebound for structs
    
    This fixes rust-lang#44508
    
    r? @nikomatsakis
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    d2d8fc2 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#44560 - qmx:import-TyCtxt, r=eddyb

    bring TyCtxt into scope
    
    got comments both from @eddyb and @nikomatsakis (via rust-lang#44505) that we should always put `TyCtxt` in scope
    
    should I just go and import it at other places in the codebase or we just keep doing small improvements?
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    ed3f09c View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#44562 - eddyb:ugh-rustdoc, r=nikomatsakis

    rustdoc: pretty-print Unevaluated expressions in types.
    
    Fixes rust-lang#44555.
    
    r? @nikomatsakis
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    3752ec2 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#44567 - budziq:stabilize_iterator_for_each,…

    … r=alexcrichton
    
    stabilized iterator_for_each (closes rust-lang#42986)
    
    Also updated clippy and rls as these use the iterator_for_each
    
    I've made my first PR's today so most likely I've done something wrong. Sorry about that!
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    9da941f View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#44574 - alexcrichton:new-sccache-region, r=…

    …aidanhs
    
    travis: Move sccache to the us-west-1 region
    
    Most of the other rust-lang buckets are in us-west-1 and I think the original
    bucket was just accidentally created in the us-east-1 region. Let's consolidate
    by moving it to the same location as the rest of our buckets.
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    bad12bc View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#44577 - cuviper:flat_map-fold, r=alexcrichton

    Customize `<FlatMap as Iterator>::fold`
    
    `FlatMap` can use internal iteration for its `fold`, which shows a
    performance advantage in the new benchmarks:
    
        test iter::bench_flat_map_chain_ref_sum ... bench:   4,354,111 ns/iter (+/- 108,871)
        test iter::bench_flat_map_chain_sum     ... bench:     468,167 ns/iter (+/- 2,274)
        test iter::bench_flat_map_ref_sum       ... bench:     449,616 ns/iter (+/- 6,257)
        test iter::bench_flat_map_sum           ... bench:     348,010 ns/iter (+/- 1,227)
    
    ... where the "ref" benches are using `by_ref()` that isn't optimized.
    So this change shows a decent advantage on its own, but much more when
    combined with a `chain` iterator that also optimizes `fold`.
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    a9bdccb View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#44586 - alexcrichton:smaller-query, r=micha…

    …elwoerister
    
    rustc: Preallocate when building the dep graph
    
    This commit alters the `query` function in the dep graph module to preallocate
    memory using `with_capacity` instead of relying on automatic growth. Discovered
    in rust-lang#44576 it was found that for the syntex_syntax clean incremental benchmark
    the peak memory usage was found when the dep graph was being saved, particularly
    the `DepGraphQuery` data structure itself. PRs like rust-lang#44142 which add more
    queries end up just making this much larger!
    
    I didn't see an immediately obvious way to reduce the size of the
    `DepGraphQuery` object, but it turns out that `with_capacity` helps quite a bit!
    Locally 831 MB was used [before] this commit, and 770 MB is in use at the peak
    of the compiler [after] this commit. That's a nice 7.5% improvement! This won't
    quite make up for the losses in rust-lang#44142 but I figured it's a good start.
    
    [before]: https://gist.github.com/alexcrichton/2d2b9c7a65503761925c5a0bcfeb0d1e
    [before]: https://gist.github.com/alexcrichton/6da51f2a6184bfb81694cc44f06deb5b
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    8e2af65 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#44589 - makotokato:thumb2, r=alexcrichton

    Require +thumb-mode to generate thumb2 code for Android/armv7-a
    
    I am investigating rust's code generation into Gecko by https://bugzilla.mozilla.org/show_bug.cgi?id=1399337.
    
    armv7-linux-androideabi target uses `+v7,+thumb2,+vfp3,+d16,-neon` as target-feature.  But `+thumb2` only doesn't generate thumb2 code.  To generate thumb2 code, it requires `+thumb-mode`.  So we should add it for armv7-linux-androideabi.
    
    r? @alexcrichton
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    be9d5c9 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#44590 - oli-obk:allow_unused_mut_on_vars, r…

    …=eddyb
    
    Get `allow(unused_mut)` to work on `let` bindings
    
    fixes rust-lang#40491
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    c1ca1c0 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#44593 - budziq:stabilize_ord_max_min, r=ale…

    …xcrichton
    
    stabilized ord_max_min (fixes rust-lang#25663)
    alexcrichton authored Sep 16, 2017
    Configuration menu
    Copy the full SHA
    adc0961 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    eaf13ba View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#44604 - alexcrichton:update-cargo, r=Mark-S…

    …imulacrum
    
    Update cargo submodule
    
    Just a routine update
    alexcrichton committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    1881668 View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#44605 - alexcrichton:less-rustdoc, r=Mark-S…

    …imulacrum
    
    rustbuild: Compile the error-index in stage 2
    
    Right now we comiple rustdoc in stage 2 and the error index in stage 0, which
    ends up compiling rustdoc twice! To avoid compiling rustdoc twice (which takes
    awhile) let's just compile it once in stage 2.
    alexcrichton committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    e46d967 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#44606 - alexcrichton:update-cmake, r=Mark-S…

    …imulacrum
    
    rustbuild: Update `cmake` dependency
    
    Should help suppress some warnings from various repos as `cmake` in the newest
    version disables warnings by default.
    alexcrichton committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    7e456aa View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#44609 - jonhoo:hash-alloc, r=steveklabnik

    Mention that HashMap::new and HashSet::new do not allocate
    
    The docs for `HashMap::with_capacity` and `HashSet::with_capacity` already say that
    > If `capacity` is 0, the hash map/set will not allocate.
    However, the docs for `::new` do not say that the initial capacity is 0, and thus promise that a call to `::new` alone does not allocate. This PR fixes that.
    alexcrichton committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    29a8a73 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#44610 - alexcrichton:osx-no-assertions, r=M…

    …ark-Simulacrum
    
    travis: Disable LLVM assertions on OSX
    
    Our OSX builders are routinely and significantly over hour 2 hour "soft limit"
    for testing PRs. I *think* that a big portion of this time comes from the fact
    that LLVM and debug assertions are enabled. In an effort to speed up these
    builders and reduce cycle time this commit disables LLVM assertions on OSX for
    all builders.
    
    My thinking is that we'll let this bake for a bit after merged to see what the
    effect is on timing on Travis. If it doesn't actually help much we can turn them
    back on, and if it doesn't help enough we can disable Rust debug assertions as
    well.
    alexcrichton committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    9730a36 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#44616 - alexcrichton:rustdoc-fix-again-whee…

    …, r=Mark-Simulacrum
    
    rustbuild: Fix test "test rustdoc" invocation
    
    Previously it would use the librustc output directory which would cause rustdoc
    to get entirely recompiled, whereas the intention is that it uses the
    already-compiled artifacts from building rustdoc itself, using the tool output
    directory
    alexcrichton committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    fc6e763 View commit details
    Browse the repository at this point in the history