1. 15 2月, 2017 2 次提交
  2. 14 2月, 2017 28 次提交
    • C
      Rollup merge of #39813 - sanxiyn:non-camel-case-variant, r=petrochenkov · 4a919cba
      Corey Farwell 提交于
      Use check_variant for non_camel_case_types lint
      
      This way we automatically consider lint attributes.
      
      Fix #38452.
      4a919cba
    • C
      Rollup merge of #39790 - zackw:tidy-linelen-exempt-urls, r=alexcrichton · 4246f375
      Corey Farwell 提交于
      tidy: exempt URLs from the line length restriction
      
      The length of a URL is usually not under our control, and Markdown
      provides no way to split a URL in the middle.  Therefore, comment
      lines consisting _solely_ of a URL (possibly with a Markdown link
      label in front) should be exempt from the line-length restriction.
      
      Inline hyperlink destinations ( `[foo](http://...)` notation ) are
      _not_ exempt, because it is my arrogant opinion that long lines of
      that type make the source text illegible.
      
      The patch adds dependencies on the `regex` and `lazy_static` crates
      to the tidy utility.  This _appears_ to Just Work, but if you would
      rather not have that dependency I am willing to provide a hand-written
      parser instead.
      4246f375
    • C
      Rollup merge of #39788 - GuillaumeGomez:rustdoc-test-md-file, r=alexcrichton · 376e2469
      Corey Farwell 提交于
      Add filename when running rustdoc --test on a markdown file
      
      r? @alexcrichton
      376e2469
    • C
      Rollup merge of #39785 - alexcrichton:no-thread-sanitizer, r=japaric · 8d17ef14
      Corey Farwell 提交于
      test: Remove sanitizer-thread test
      
      Unfortunately it appears to spuriously fail so we can't gate on it
      8d17ef14
    • C
      Rollup merge of #39772 - cseale:staged_api_whitelist_removal, r=est31 · 32b8f4ec
      Corey Farwell 提交于
      Adding compile fail test for staged_api feature
      
      Issue #39059
      r? @est31
      
      @est31 running the tests for this feature fails. Is that expected since this is the `compile-fail`suite?
      
      I copied this test from the run-pass suite: `rust/src/test/run-pass/reachable-unnameable-type-alias.rs`. What are the differences between these suites in operation and why they are used?
      32b8f4ec
    • C
      Rollup merge of #39754 - alexcrichton:less-assertions, r=brson · c9737af4
      Corey Farwell 提交于
      travis: Add builders without assertions
      
      This commit adds three new builders, one OSX, one Linux, and one MSVC, which
      will produce "nightlies" with LLVM assertions disabled. Currently all nightly
      releases have LLVM assertions enabled to catch bugs before they reach the
      beta/stable channels. The beta/stable channels, however, do not have LLVM
      assertions enabled.
      
      Unfortunately though projects like Servo are stuck on nightlies for the near
      future at least and are also suffering very long compile times. The purpose of
      this commit is to provide artifacts to these projects which are not distributed
      through normal channels (e.g. rustup) but are provided for developers to use
      locally if need be.
      
      Logistically these builds will all be uploaded to `rustc-builds-alt` instead of
      the `rustc-builds` folder of the `rust-lang-ci` bucket. These builds will stay
      there forever (until cleaned out if necessary) and there are no plans to
      integrate this with rustup and/or the official release process.
      c9737af4
    • C
      Rollup merge of #39730 - jseyfried:fix_empty_seq_rep_ice, r=nrc · c2ea7347
      Corey Farwell 提交于
      macros: fix ICE on certain sequence repetitions
      
      Fixes #39709.
      r? @nrc
      c2ea7347
    • C
      Rollup merge of #39659 - zackw:asciiext-ctype, r=alexcrichton · 651a5be2
      Corey Farwell 提交于
      Add equivalents of C's <ctype.h> functions to AsciiExt.
      
       * `is_ascii_alphabetic`
       * `is_ascii_uppercase`
       * `is_ascii_lowercase`
       * `is_ascii_alphanumeric`
       * `is_ascii_digit`
       * `is_ascii_hexdigit`
       * `is_ascii_punctuation`
       * `is_ascii_graphic`
       * `is_ascii_whitespace`
       * `is_ascii_control`
      
      This addresses issue #39658.
      
      Lightly tested on x86-64-linux.  tidy complains about the URLs in the documentation making lines too long, I don't know what to do about that.
      651a5be2
    • S
      Use check_variant for non_camel_case_types lint · 255b5ed8
      Seo Sanghyeon 提交于
      255b5ed8
    • B
      Auto merge of #39728 - eddyb:vendeur-tres-bien, r=alexcrichton · 48bc0824
      bors 提交于
      Automate vendoring by invoking cargo-vendor when building src dist tarballs.
      
      This avoids #39633 bringing the `src/vendor` checked into git by #37524, past 200,000 lines of code.
      
      I believe the strategy of having rustbuild run `cargo vendor` during the `dist src` step is sound.
      
      However, the only way to be sure `cargo-vendor` exists is to run `cargo install --force cargo-vendor`, which will recompile it every time (not passing `--force` means you can't tell between "already exists" and "build error"). ~~This is quite suboptimal and I'd like to somehow do it in each `Dockerfile` that would need it.~~
      
      * [ ] Cache `CARGO_HOME` (i.e. `~/.cargo`) between CI runs
        * `bin/cargo-vendor` and the actual caches are the relevant bits
      * [x] Do not build `cargo-vendor` all the time
        * ~~Maybe detect `~/.cargo/bin/cargo-vendor` already exists?~~
        * ~~Could also try to build it in a `Dockerfile` but do we have `cargo`/`rustc` there?~~
        * Final solution: check `cargo install --list` for a line starting with `cargo-vendor `
      
      cc @rust-lang/tools
      48bc0824
    • B
      Auto merge of #38981 - sdleffler:patch-1, r=alexcrichton · 55013cdd
      bors 提交于
      Add PartialOrd, Ord derivations to TypeId
      
      I want to be able to sort a `Vec` of types which contain `TypeId`s, so an `Ord` derivation would be very useful to me. `Hash` and `PartialEq`/`Eq` already exist, so the missing `PartialOrd` and `Ord` derivations feel like an oversight to me.
      55013cdd
    • B
      Auto merge of #38561 - nagisa:rdrandseed, r=alexcrichton · 61b93bd8
      bors 提交于
      Add intrinsics & target features for rd{rand,seed}
      
      One question is whether or not we want to map feature name `rdrnd` to `rdrand` instead.
      
      EDIT: as for use case, I would like to port my rdrand crate from inline assembly to these intrinsics.
      61b93bd8
    • C
      Adding compile fail test for staged_api feature · 07b3a8bd
      Colm Seale 提交于
      Issue #39059
      r? @est31
      07b3a8bd
    • E
    • Z
      162240c7
    • B
      Auto merge of #39787 - frewsxcv:rollup, r=frewsxcv · 0af0b580
      bors 提交于
      Rollup of 5 pull requests
      
      - Successful merges: #39716, #39758, #39759, #39774, #39784
      - Failed merges:
      0af0b580
    • Z
      ff4758c2
    • S
      fix up linkchecker · cacb3bc9
      Steve Klabnik 提交于
      1. skip png files
      2. skip fragments for the book and nomicon, as these are added by JS
      3. Actually print the filename for errors
      cacb3bc9
    • S
      Fix up links · 7f1d1c6d
      Steve Klabnik 提交于
      mdbook and rustdoc generate links differently, so we need to change all
      these links.
      7f1d1c6d
    • S
      Add exceptions to tidy · 77572609
      Steve Klabnik 提交于
      We've decided that these deps are okay.
      77572609
    • S
      include everything in the vendor directory · 626cf3a2
      Steve Klabnik 提交于
      626cf3a2
    • S
      fix gitattributes for vendor · 2b2c62bc
      Steve Klabnik 提交于
      2b2c62bc
    • S
      Port Nomicon to mdbook · 22d4adf1
      Steve Klabnik 提交于
      1. move everything under a src directory
      2. add README.md to the SUMMARY.md
      22d4adf1
    • S
      Port TRPL to mdbook · e943e68a
      Steve Klabnik 提交于
      1. move everything under a src directory
      2. add README.md to the SUMMARY.md
      e943e68a
    • S
      Re-implement rustbook in terms of mdbook · a076961f
      Steve Klabnik 提交于
      mdbook has a lot of optional dependencies that we don't want, so instead
      of using it directly, we re-build rustbook to use mdbook as a library.
      For convenience' sake, we keep the same CLI interface as mdbook; the
      only difference is that it only accepts build and test subcommands,
      rather than the full range.
      a076961f
    • Z
      tidy: exempt URLs from the line length restriction · 58173510
      Zack Weinberg 提交于
      The length of a URL is usually not under our control, and Markdown
      provides no way to split a URL in the middle.  Therefore, comment
      lines consisting _solely_ of a URL (possibly with a Markdown link
      label in front) should be exempt from the line-length restriction.
      
      Inline hyperlink destinations ( `[foo](http://...)` notation ) are
      _not_ exempt, because it is my arrogant opinion that long lines of
      that type make the source text illegible.
      
      The patch adds dependencies on the `regex` and `lazy_static` crates
      to the tidy utility.  This _appears_ to Just Work, but if you would
      rather not have that dependency I am willing to provide a hand-written
      parser instead.
      58173510
    • G
      cc8d4558
    • Z
      c2566f63
  3. 13 2月, 2017 10 次提交