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 8 pull requests #50775

Closed
wants to merge 24 commits into from
Closed

Rollup of 8 pull requests #50775

wants to merge 24 commits into from

Commits on May 8, 2018

  1. Configuration menu
    Copy the full SHA
    a0f23d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66d94bd View commit details
    Browse the repository at this point in the history
  3. fix tidy

    gnzlbg committed May 8, 2018
    Configuration menu
    Copy the full SHA
    0068f40 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2018

  1. Configuration menu
    Copy the full SHA
    e0fd4e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1a4291 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a8f0c2d View commit details
    Browse the repository at this point in the history

Commits on May 14, 2018

  1. Configuration menu
    Copy the full SHA
    56f505e View commit details
    Browse the repository at this point in the history
  2. enable fast-math flags

    gnzlbg committed May 14, 2018
    Configuration menu
    Copy the full SHA
    6532c48 View commit details
    Browse the repository at this point in the history
  3. Don't unconditionally set CLOEXEC twice on every fd we open on Linux

    Previously, every `open64` was accompanied by a `ioctl(…, FIOCLEX)`,
    because some old Linux version would ignore the `O_CLOEXEC` flag we pass
    to the `open64` function.
    
    Now, we check whether the `CLOEXEC` flag is set on the first file we
    open – if it is, we won't do extra syscalls for every opened file. If it
    is not set, we fall back to the old behavior of unconditionally calling
    `ioctl(…, FIOCLEX)` on newly opened files.
    
    On old Linuxes, this amounts to one extra syscall per process, namely
    the `fcntl(…, F_GETFD)` call to check the `CLOEXEC` flag.
    
    On new Linuxes, this reduces the number of syscalls per opened file by
    one, except for the first file, where it does the same number of
    syscalls as before (`fcntl(…, F_GETFD)` to check the flag instead of
    `ioctl(…, FIOCLEX)` to set it).
    tbu- committed May 14, 2018
    Configuration menu
    Copy the full SHA
    6d1da82 View commit details
    Browse the repository at this point in the history
  4. Remove LazyBTreeMap.

    It was introduced in rust-lang#50240 to avoid an allocation when creating a new
    BTreeMap, which gave some speed-ups. But then rust-lang#50352 made that the
    default behaviour for BTreeMap, so LazyBTreeMap is no longer necessary.
    nnethercote committed May 14, 2018
    Configuration menu
    Copy the full SHA
    f46b888 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3566ea8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6bc1db0 View commit details
    Browse the repository at this point in the history
  7. tidy

    QuietMisdreavus committed May 14, 2018
    Configuration menu
    Copy the full SHA
    c3fd12f View commit details
    Browse the repository at this point in the history

Commits on May 15, 2018

  1. Configuration menu
    Copy the full SHA
    0370c38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    30d9502 View commit details
    Browse the repository at this point in the history
  3. Update Cargo

    Unblocking PRs:
    - rust-lang/cargo#5535 - Ignore <tab> in libtest output. (unblocks rust-lang#50387)
    - rust-lang/cargo#5537 - Remove -Zno-trans test. (unblocks rust-lang#50615)
    - rust-lang/cargo#5540 - Fix tests when CARGO_TARGET_DIR is set. (unblocks self)
    
    Regression fixes:
    - rust-lang/cargo#5503 - cargo rustc broken for tests in project with bins
    - rust-lang/cargo#5520 - (rust-lang#50640) shared proc-macro dependency built incorrectly
    
    Changes:
    - rust-lang/cargo#5527 - Point Source Replacement to the Overriding Dependencies section
    - rust-lang/cargo#5533 - Detail how to run locally-built nightly cargo
    - rust-lang/cargo#5522 - Add option to set user-agent
    - rust-lang/cargo#5519 - NFC: fix a couple of typos, found by codespell.
    - rust-lang/cargo#5513 - Fix `panic` for binaries built during tests.
    - rust-lang/cargo#5512 - simplify build_requirements
    - rust-lang/cargo#5301 - Add --build-plan for 'cargo build'
    - rust-lang/cargo#5460 - Be more conservative about which files are linked to the output dir.
    - rust-lang/cargo#5509 - Use the new stable
    - rust-lang/cargo#5507 - Does not print seconds fraction with minutes
    - rust-lang/cargo#5498 - Bump to 0.29.0
    - rust-lang/cargo#5497 - Mention +nightly in ARCHITECTURE.md
    ehuss committed May 15, 2018
    Configuration menu
    Copy the full SHA
    b5817dd View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#50521 - gnzlbg:simd_float, r=alexcrichton

    Add simd math intrinsics and gather/scatter
    
    This PR adds simd math intrinsics for floating-point vectors (sqrt, sin, cos, pow, exp, log, fma, abs, etc.) and the generic simd gather/scatter intrinsics.
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    fcea9b1 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#50541 - QuietMisdreavus:rustdoc-errors, r=G…

    …uillaumeGomez
    
    rustdoc: replace most (e)println! statements with structured warnings/errors
    
    Turns out, the rustc diagnostic handler doesn't need a whole lot of setup that we weren't already doing. For errors that occur outside a "dealing with source code" context, we can just use the format/color config we were already parsing and make up a `Handler` that we can emit structured warnings/errors from. So i did that. This will make it way easier to test things with `rustdoc-ui` tests, since those require the JSON error output. (In fact, this PR is a yak shave for a different one where i was trying to do just that. `>_>`)
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    e30551f View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#50638 - tbu-:pr_open_cloexec_once, r=nagisa

    Don't unconditionally set CLOEXEC twice on every fd we open on Linux
    
    Previously, every `open64` was accompanied by a `ioctl(…, FIOCLEX)`,
    because some old Linux version would ignore the `O_CLOEXEC` flag we pass
    to the `open64` function.
    
    Now, we check whether the `CLOEXEC` flag is set on the first file we
    open – if it is, we won't do extra syscalls for every opened file. If it
    is not set, we fall back to the old behavior of unconditionally calling
    `ioctl(…, FIOCLEX)` on newly opened files.
    
    On old Linuxes, this amounts to one extra syscall per process, namely
    the `fcntl(…, F_GETFD)` call to check the `CLOEXEC` flag.
    
    On new Linuxes, this reduces the number of syscalls per opened file by
    one, except for the first file, where it does the same number of
    syscalls as before (`fcntl(…, F_GETFD)` to check the flag instead of
    `ioctl(…, FIOCLEX)` to set it).
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    9abfea6 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#50696 - ehuss:cargo-update, r=alexcrichton

    Update Cargo
    
    Unblocking PRs:
    - rust-lang/cargo#5535 - Ignore <tab> in libtest output. (unblocks rust-lang#50387)
    - rust-lang/cargo#5537 - Remove -Zno-trans test. (unblocks rust-lang#50615)
    - rust-lang/cargo#5540 - Fix tests when CARGO_TARGET_DIR is set. (unblocks self)
    
    Regression fixes:
    - rust-lang/cargo#5503 - cargo rustc broken for tests in project with bins
    - rust-lang/cargo#5520 - (rust-lang#50640) shared proc-macro dependency built incorrectly
    
    Changes:
    - rust-lang/cargo#5527 - Point Source Replacement to the Overriding Dependencies section
    - rust-lang/cargo#5533 - Detail how to run locally-built nightly cargo
    - rust-lang/cargo#5522 - Add option to set user-agent
    - rust-lang/cargo#5519 - NFC: fix a couple of typos, found by codespell.
    - rust-lang/cargo#5513 - Fix `panic` for binaries built during tests.
    - rust-lang/cargo#5512 - simplify build_requirements
    - rust-lang/cargo#5301 - Add --build-plan for 'cargo build'
    - rust-lang/cargo#5460 - Be more conservative about which files are linked to the output dir.
    - rust-lang/cargo#5509 - Use the new stable
    - rust-lang/cargo#5507 - Does not print seconds fraction with minutes
    - rust-lang/cargo#5498 - Bump to 0.29.0
    - rust-lang/cargo#5497 - Mention +nightly in ARCHITECTURE.md
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    b2200b4 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#50726 - udoprog:read2-inner-fn, r=alexcrichton

    read2: Use inner function instead of closure
    
    Very minor thing, but there doesn't appear to be a reason to use a closure here.
    
    Generated code is identical in my tests, but I believe it's clearer that nothing from the environment is being used.
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    c48f925 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#50740 - nnethercote:rm-LazyBTreeMap, r=cram…

    …ertj
    
    Remove LazyBTreeMap.
    
    It was introduced in rust-lang#50240 to avoid an allocation when creating a new
    BTreeMap, which gave some speed-ups. But then rust-lang#50352 made that the
    default behaviour for BTreeMap, so LazyBTreeMap is no longer necessary.
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    5a8e1ad View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#50752 - GuillaumeGomez:more-error-code-in-l…

    …ibsyntax-ext, r=frewsxcv
    
    Add missing error codes in libsyntax-ext asm
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    5030038 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#50767 - oli-obk:rls_clippy, r=kennytm

    Don't inject clippy into the rls anymore
    
    r? @kennytm
    
    sorry about breaking nightlies.
    
    The issue is that the `[patch.crates-io]` doesn't work if the versions differ. So every time we update clippy, we can only update it to the verison that rls is depending on.
    
    I'm disabling the injection of clippy into rls for now. I'm not sure how to do this properly. We could
    
    * add a version check, so rls only builds clippy if its dependency clippy is the same as the submodule clippy
    * do something crazy like auto-patching the Cargo.toml of the rls tool repo to just use a path dependency on clippy
    * build crates-io clippy instead of submodule clippy and gate clippy injection on that
        * that's somewhat automatic, and is essentially what is necessary right now, but done manually
    * make clippy 0.1.* instead of 0.0.* and update patch versions for nightly updates and minor version updates for `clippy_lints` api changes.
        * not sure how semver-great this is
    kennytm authored May 15, 2018
    Configuration menu
    Copy the full SHA
    e74f5e8 View commit details
    Browse the repository at this point in the history