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 12 pull requests #54575

Merged
merged 28 commits into from
Sep 26, 2018
Merged

Rollup of 12 pull requests #54575

merged 28 commits into from
Sep 26, 2018

Commits on Aug 20, 2018

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

Commits on Sep 17, 2018

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

Commits on Sep 19, 2018

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

Commits on Sep 23, 2018

  1. Configuration menu
    Copy the full SHA
    d14db11 View commit details
    Browse the repository at this point in the history
  2. and llvm has https now

    sylvestre authored Sep 23, 2018
    Configuration menu
    Copy the full SHA
    5139865 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78bccb3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d560292 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2018

  1. Fixed three small typos.

    gardrek authored Sep 24, 2018
    Configuration menu
    Copy the full SHA
    1b9da67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f2bf92a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e09e450 View commit details
    Browse the repository at this point in the history
  4. Fix JS error

    GuillaumeGomez committed Sep 24, 2018
    Configuration menu
    Copy the full SHA
    827047c View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2018

  1. Configuration menu
    Copy the full SHA
    068c92b View commit details
    Browse the repository at this point in the history
  2. Add examples for doc

    phungleson committed Sep 25, 2018
    Configuration menu
    Copy the full SHA
    992e220 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8fc7b5d View commit details
    Browse the repository at this point in the history
  4. Improvements to finding LLVM's FileCheck

    This patch adds a few improvements to how the build system finds
    LLVM's FileCheck program.
    
    * On Fedora, the system LLVM installs FileCheck in the "llvm"
      subdirectory of the LLVM libdir.  This patch teaches the build
      system to look there.
    
    * This adds a configure option to specify which llvm-config executable
      to use.  This is handy on systems that can parallel install multiple
      versions of LLVM; for example I can now:
    
        ./configure --llvm-config=/bin/llvm-config-5.0-64
    
      ... to build against LLVM 5, rather than whatever the default
      llvm-config might be.
    
    * Finally, this adds a configure- and config.toml- option to set the
      path to FileCheck.  This is handy when building against an LLVM
      where FileCheck was not installed.  This happens on compatibility
      installs of LLVM on Fedora.
    tromey committed Sep 25, 2018
    Configuration menu
    Copy the full SHA
    f4b4939 View commit details
    Browse the repository at this point in the history
  5. resolve: Do not block derive helper resolutions on single import reso…

    …lutions
    
    Derive helpers conflict currently conflict with anything else, so if some resolution from a single import appears later, it will result in error anyway
    petrochenkov committed Sep 25, 2018
    Configuration menu
    Copy the full SHA
    ee05f6e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#53518 - phungleson:fix-impl-from-for-conver…

    …t, r=frewsxcv
    
    Add doc for impl From in char_convert
    
    As part of issue rust-lang#51430 (cc @skade).
    
    The impl is very simple, let me know if we need to go into any details.
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    707c979 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#54058 - Kerollmops:slice-dedup, r=shepmaster

    Introduce the partition_dedup/by/by_key methods for slices
    
    This PR propose to add three methods to the slice type, the `partition_dedup`, `partition_dedup_by` and `partition_dedup_by_key`. The two other methods are based on `slice::partition_dedup_by`.
    
    These methods take a mutable slice, deduplicates it and moves all duplicates to the end of it, returning two mutable slices, the first containing the deduplicated elements and the second all the duplicates unordered.
    
    ```rust
    let mut slice = [1, 2, 2, 3, 3, 2];
    
    let (dedup, duplicates) = slice.partition_dedup();
    
    assert_eq!(dedup, [1, 2, 3, 2]);
    assert_eq!(duplicates, [3, 2]);
    ```
    
    The benefits of adding these methods is that it is now possible to:
      - deduplicate a slice without having to allocate and possibly clone elements on the heap, really useful for embedded stuff that can't allocate for example.
      - not loose duplicate elements, because, when using `Vec::dedup`, duplicates elements are dropped. These methods add more flexibillity to the user.
    
    Note that this is near a copy/paste of the `Vec::dedup_by` function, once this method is stable the goal is to replace the algorithm in `Vec` by the following.
    
    ```rust
    pub fn Vec::dedup_by<F>(&mut self, same_bucket: F)
        where F: FnMut(&mut T, &mut T) -> bool
    {
        let (dedup, _) = self.as_mut_slice().partition_dedup_by(same_bucket);
        let len = dedup.len();
        self.truncate(len);
    }
    ```
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    b940e1d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    888a034 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#54368 - GuillaumeGomez:reduce-side-padding,…

    … r=QuietMisdreavus
    
    Reduce code block sides padding
    
    Fixes rust-lang#42013.
    
    <img width="1440" alt="screen shot 2018-09-19 at 22 58 32" src="https://user-images.githubusercontent.com/3050060/45781266-c6525680-bc5f-11e8-8eb0-98fc4c22a96e.png">
    
    r? @QuietMisdreavus
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    d2f9e66 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#54498 - sylvestre:patch-1, r=frewsxcv

    The project moved under the Mozilla umbrella
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    4720126 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#54518 - petrochenkov:regr130, r=alexcrichton

    resolve: Do not block derive helper resolutions on single import resolutions
    
    Derive helpers currently conflict with anything else, so if some resolution from a single import appears later, it will result in error anyway.
    
    Fixes rust-lang#54471 (stable-to-beta regression)
    
    r? @ghost
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    cf3c385 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#54522 - gardrek:patch-1, r=TimNN

    Fixed three small typos.
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    9ea345d View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#54529 - michaelwoerister:dont-unwind-test, …

    …r=alexcrichton
    
    aarch64-pc-windows-msvc: Don't link libpanic_unwind to libtest.
    
    This implements the suggestion from rust-lang#54190 (comment) in order to unbreak bootstrapping for the `aarch64-pc-windows-msvc` target. With this applied and using MSVC 15.8.3 for linking the bootstrap actually works and I can cross-compile a hello-world program.
    
    r? @alexcrichton
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    49e0049 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#54537 - sdroege:chunks-exact, r=alexcrichton

    Rename slice::exact_chunks() to slice::chunks_exact()
    
    See rust-lang#47115 (comment)
    and rust-lang#47115 (comment)
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    6a0f45b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bd217b6 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#54557 - michaelwoerister:dont-auto-share-ge…

    …nerics-for-incr-comp, r=alexcrichton
    
    incr.comp.: Don't automatically enable -Zshare-generics for incr. comp. builds.
    
    So far the compiler would automatically enable sharing of monomorphizations for incremental builds. That was OK because without (Thin)LTO this could have very little impact on the runtime performance of the generated code. However, since rust-lang#53673, ThinLTO and incr. comp. can be combined, so the trade-off is not as clear anymore.
    
    This PR removes the automatic tie between the two options. Whether monomorphizations are shared between crates or not now _only_ depends on the optimization level.
    
    r? @alexcrichton
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    4ceeec0 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#54558 - tromey:find-filecheck, r=nikomatsakis

    Improvements to finding LLVM's FileCheck
    
    This patch adds a few improvements to how the build system finds
    LLVM's FileCheck program.
    
    * On Fedora, the system LLVM installs FileCheck in the "llvm"
      subdirectory of the LLVM libdir.  This patch teaches the build
      system to look there.
    
    * This adds a configure option to specify which llvm-config executable
      to use.  This is handy on systems that can parallel install multiple
      versions of LLVM; for example I can now:
    
        ./configure --llvm-config=/bin/llvm-config-5.0-64
    
      ... to build against LLVM 5, rather than whatever the default
      llvm-config might be.
    
    * Finally, this adds a configure- and config.toml- option to set the
      path to FileCheck.  This is handy when building against an LLVM
      where FileCheck was not installed.  This happens on compatibility
      installs of LLVM on Fedora.
    pietroalbini authored Sep 25, 2018
    Configuration menu
    Copy the full SHA
    cc9dea4 View commit details
    Browse the repository at this point in the history