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 #50704

Merged
merged 18 commits into from
May 13, 2018
Merged

Rollup of 8 pull requests #50704

merged 18 commits into from
May 13, 2018

Commits on May 10, 2018

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

Commits on May 11, 2018

  1. Configuration menu
    Copy the full SHA
    c3b23b3 View commit details
    Browse the repository at this point in the history
  2. Ignore non .rs files for tidy libcoretest

    Previously, any file would be read, which is both unnecessary, and causes issues if irrelevant non-Unicode files were read (e.g. `.DS_STORE`).
    varkor committed May 11, 2018
    Configuration menu
    Copy the full SHA
    fd85de1 View commit details
    Browse the repository at this point in the history
  3. rustc: Allow an edition's feature on that edition

    This commit fixes a hard error where the `#![feature(rust_2018_preview)]`
    feature was forbidden to be mentioned when the `--edition 2018` flag was passed.
    This instead silently accepts that feature gate despite it not being necessary.
    It's intended that this will help ease the transition into the 2018 edition as
    users will, for the time being, start off with the `rust_2018_preview` feature
    and no longer immediately need to remove it.
    
    Closes rust-lang#50662
    alexcrichton committed May 11, 2018
    Configuration menu
    Copy the full SHA
    0588bca View commit details
    Browse the repository at this point in the history
  4. rustc: Include semicolon when removing extern crate

    Currently the lint for removing `extern crate` suggests removing `extern crate`
    most of the time, but the rest of the time it suggest replacing it with `use
    crate_name`. Unfortunately though when spliced into the original code you're
    replacing
    
        extern crate foo;
    
    with
    
        use foo
    
    which is syntactically invalid! This commit ensure that the trailing semicolon
    is included in rustc's suggestion to ensure that the code continues to compile
    afterwards.
    alexcrichton committed May 11, 2018
    Configuration menu
    Copy the full SHA
    6de899f View commit details
    Browse the repository at this point in the history
  5. rustc: Only suggest deleting extern crate if it works

    This commit updates one of the edition lints to only suggest deleting `extern
    crate` if it actually works. Otherwise this can yield some confusing behavior
    with rustfix specifically where if you accidentally deny the `rust_2018_idioms`
    lint in the 2015 edition it's suggesting features that don't work!
    alexcrichton committed May 11, 2018
    Configuration menu
    Copy the full SHA
    12f92e9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    16c088d View commit details
    Browse the repository at this point in the history

Commits on May 12, 2018

  1. Do not silently truncate offsets for read_at/write_at on emscripten

    Generate an IO error if the offset is out of bounds for the system call.
    tbu- committed May 12, 2018
    Configuration menu
    Copy the full SHA
    4ce2426 View commit details
    Browse the repository at this point in the history
  2. openbsd-i686: use lld as linker by default

    standard binutils on openbsd is too old to do proper job with i128
    code.
    semarie committed May 12, 2018
    Configuration menu
    Copy the full SHA
    0bef240 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f430d7c View commit details
    Browse the repository at this point in the history

Commits on May 13, 2018

  1. Rollup merge of rust-lang#50624 - adevore:fs-write-str-example, r=ste…

    …veklabnik
    
    fs::write: Add example writing a &str
    
    This adds an example to the documentation for `fs::write` that demonstrates the use of the `AsRef<[u8]>` implementation for &str. Experienced users should already recognize the possibility from the type signature, but new users may not recognize the significance.
    kennytm authored May 13, 2018
    Configuration menu
    Copy the full SHA
    e0b7f42 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#50634 - tbu-:pr_preadwrite_emscripten, r=ke…

    …nnytm
    
    Do not silently truncate offsets for `read_at`/`write_at` on emscripten
    
    Generate an IO error if the offset is out of bounds for the system call.
    kennytm authored May 13, 2018
    Configuration menu
    Copy the full SHA
    55792a4 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#50644 - kennytm:read-appveyor-dump, r=alexc…

    …richton
    
    AppVeyor: Read back trace from crash dump on failure.
    
    This is an attempt to debug spurious access violations on Windows (rust-lang#33434, rust-lang#50604). Thanks to rust-lang#50276, there should be minidumps to read when rustc segfault.
    
    (The implementation is based on <https://github.com/springmeyer/travis-coredump/blob/master/test.bat>.)
    kennytm committed May 13, 2018
    Configuration menu
    Copy the full SHA
    42939c5 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#50661 - varkor:libcoretest-ignore-non-rs, r…

    …=alexcrichton
    
    Ignore non .rs files for tidy libcoretest
    
    Previously, any file would be read, which is both unnecessary, and causes issues if irrelevant non-Unicode files were read (e.g. `.DS_STORE`).
    kennytm committed May 13, 2018
    Configuration menu
    Copy the full SHA
    0cf7be2 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#50663 - alexcrichton:no-removed-error, r=Ma…

    …nishearth
    
    rustc: Allow an edition's feature on that edition
    
    This commit fixes a hard error where the `#![feature(rust_2018_preview)]`
    feature was forbidden to be mentioned when the `--edition 2018` flag was passed.
    This instead silently accepts that feature gate despite it not being necessary.
    It's intended that this will help ease the transition into the 2018 edition as
    users will, for the time being, start off with the `rust_2018_preview` feature
    and no longer immediately need to remove it.
    
    Closes rust-lang#50662
    kennytm committed May 13, 2018
    Configuration menu
    Copy the full SHA
    34cec06 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#50667 - alexcrichton:no-remove-extern-crate…

    …-unless-works, r=Manishearth
    
    rustc: Only suggest deleting `extern crate` if it works
    
    This commit updates one of the edition lints to only suggest deleting `extern
    crate` if it actually works. Otherwise this can yield some confusing behavior
    with rustfix specifically where if you accidentally deny the `rust_2018_idioms`
    lint in the 2015 edition it's suggesting features that don't work!
    kennytm committed May 13, 2018
    Configuration menu
    Copy the full SHA
    ededa9d View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#50670 - alexcrichton:remove-extern-crate-co…

    …rrect-span, r=Manishearth
    
    rustc: Include semicolon when removing `extern crate`
    
    Currently the lint for removing `extern crate` suggests removing `extern crate`
    most of the time, but the rest of the time it suggest replacing it with `use
    crate_name`. Unfortunately though when spliced into the original code you're
    replacing
    
        extern crate foo;
    
    with
    
        use foo
    
    which is syntactically invalid! This commit ensure that the trailing semicolon
    is included in rustc's suggestion to ensure that the code continues to compile
    afterwards.
    kennytm committed May 13, 2018
    Configuration menu
    Copy the full SHA
    b0d3170 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#50678 - semarie:openbsd-targets, r=sanxiyn

    Update openbsd targets
    
    - add a new target `aarch64-unknown-openbsd`
    - update `i686-unknown-openbsd` to use lld with clang, in order to correctly link binaries with `i128`
    kennytm committed May 13, 2018
    Configuration menu
    Copy the full SHA
    98ce505 View commit details
    Browse the repository at this point in the history