1. 15 5月, 2018 19 次提交
  2. 14 5月, 2018 13 次提交
  3. 13 5月, 2018 8 次提交
    • C
      Revert "mark applicability" · c4e99dd8
      csmoe 提交于
      This reverts commit a8809711.
      c4e99dd8
    • C
      mark applicability · a8809711
      csmoe 提交于
      a8809711
    • B
      Auto merge of #50704 - kennytm:rollup, r=kennytm · 3e955a05
      bors 提交于
      Rollup of 8 pull requests
      
      Successful merges:
      
       - #50624 (fs::write: Add example writing a &str)
       - #50634 (Do not silently truncate offsets for `read_at`/`write_at` on emscripten)
       - #50644 (AppVeyor: Read back trace from crash dump on failure.)
       - #50661 (Ignore non .rs files for tidy libcoretest)
       - #50663 (rustc: Allow an edition's feature on that edition)
       - #50667 (rustc: Only suggest deleting `extern crate` if it works)
       - #50670 (rustc: Include semicolon when removing `extern crate`)
       - #50678 (Update openbsd targets)
      
      Failed merges:
      3e955a05
    • K
      Rollup merge of #50678 - semarie:openbsd-targets, r=sanxiyn · 98ce5053
      kennytm 提交于
      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`
      98ce5053
    • K
      Rollup merge of #50670 - alexcrichton:remove-extern-crate-correct-span, r=Manishearth · b0d31704
      kennytm 提交于
      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.
      b0d31704
    • K
      Rollup merge of #50667 - alexcrichton:no-remove-extern-crate-unless-works, r=Manishearth · ededa9dc
      kennytm 提交于
      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!
      ededa9dc
    • K
      Rollup merge of #50663 - alexcrichton:no-removed-error, r=Manishearth · 34cec066
      kennytm 提交于
      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 #50662
      34cec066
    • K
      Rollup merge of #50661 - varkor:libcoretest-ignore-non-rs, r=alexcrichton · 0cf7be21
      kennytm 提交于
      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`).
      0cf7be21