1. 05 1月, 2017 2 次提交
  2. 04 1月, 2017 12 次提交
  3. 03 1月, 2017 7 次提交
    • B
      Auto merge of #38473 - zackmdavis:issue_kebab, r=sanxiyn · 8f62c292
      bors 提交于
      prefer hyphens in test files named after issue numbers
      
      We have a lot of tests with filenames honoring particular issues by
      number. Typically, these are called issue-${issue_no}.rs (note the
      hyphen):
      
      ```
      $ find . -regextype posix-egrep -regex '.*/issue-[0-9]*.rs' | wc
         1289    1289   35935
      ```
      
      We also had a much smaller number of files that are like this, but don't
      have a hyphen in between the substring `issue` and the number:
      
      ```
      $ find . -regextype posix-egrep -regex '.*/issue[0-9]*.rs'
      ./debuginfo/issue14411.rs
      ./debuginfo/issue12886.rs
      ./debuginfo/issue13213.rs
      ./debuginfo/issue22656.rs
      ./debuginfo/issue7712.rs
      ./compile-fail/issue32829.rs
      ./run-pass/issue24353.rs
      ./run-pass/issue34796.rs
      ./run-pass/issue18173.rs
      ./run-pass/issue22346.rs
      ./run-pass/auxiliary/issue13507.rs
      ./run-pass/issue26127.rs
      ./run-pass/issue22008.rs
      ./run-pass/issue34569.rs
      ./run-pass/issue29927.rs
      ./run-pass/issue36260.rs
      ```
      
      Some would argue that the inconsistency is æsthetically displeasing,
      hence this trivial patch. (Note that run-pass/auxiliary/issue13507.rs
      has an excuse; it's `use`d in run-pass/issue-13507-2.rs; the matter of
      there being two different compile-fail tests with different name
      conventions for issue no. 32829 is also neglected here for the sake of
      keeping this trivial cleanup patch as trivial as possible for ease of
      review.)
      8f62c292
    • B
      Auto merge of #38791 - dylanmckay:foreign-item-dc, r=eddyb · 7766b509
      bors 提交于
      Don't warn about dead foreign items if the 'allow(dead_code)' attribute is present
      
      This functionality was missing, and should have existed previously.
      
      Fixes #38780
      7766b509
    • B
      Auto merge of #38782 - clarcharr:stupid, r=GuillaumeGomez · 1659d65e
      bors 提交于
      Reword 'stupid' and 'crazy' in docs.
      
      These terms are not very descriptive and are better reworded as something else.
      1659d65e
    • D
      Don't warn about dead foreign items if the 'allow(dead_code)' attribute is present · 09178e45
      Dylan McKay 提交于
      This functionality was missing, and should have existed previously.
      
      Fixes #38780
      09178e45
    • C
      Reword 'stupid' and 'crazy' in docs. · 8ffc3e77
      Clar Charr 提交于
      8ffc3e77
    • B
      Auto merge of #38543 - philipc:unsized-debuginfo, r=michaelwoerister · d3a2efa1
      bors 提交于
      Fix debuginfo for unsized struct members
      
      The member was given the size of a fat pointer, which caused
      llvm to emit DWARF attributes for a 128-bit bitfield.
      d3a2efa1
    • B
      Auto merge of #38760 - est31:ignorecfg, r=sanxiyn · 9953e76c
      bors 提交于
      Fix pre-cfg_attr notation in comment
      
      Commit aa3b1261 has changed notation
      in the test from `#[ignore(cfg(ignorecfg))]` to `#[cfg_attr(ignorecfg, ignore)]`,
      but missed to change the comment in the accompanying Makefile.
      9953e76c
  4. 02 1月, 2017 10 次提交
  5. 01 1月, 2017 9 次提交
    • B
      Auto merge of #38745 - CannedYerins:llvm-code-style, r=rkruppe · ac5cd3bd
      bors 提交于
      Improve naming style in rustllvm.
      
      As per the LLVM style guide, use CamelCase for all locals and classes,
      and camelCase for all non-FFI functions.
      Also, make names of variables of commonly used types more consistent.
      
      Fixes #38688.
      
      r? @rkruppe
      ac5cd3bd
    • B
      Auto merge of #38726 - japaric:sparc64, r=sanxiyn · e1279a0b
      bors 提交于
      sparc64-linux support
      
      This is built on top of #38656 and depends on rust-lang/libc#483
      
      Hello world works.
      
      The libc-test test suite passes.
      
      `panic!` doesn't fully work:
      
      ```
      $ qemu-sparc64-static ./panic
      thread 'main' panicked at 'explicit panic', panic.rs:1
      note: Run with `RUST_BACKTRACE=1` for a backtrace.
      Illegal instruction (core dumped)
      ```
      
      Backtraces don't work either, probably related to the previous point:
      
      ```
      $ export RUST_BACKTRACE=1
      $ qemu-sparc64-static ./panic
      thread 'main' panicked at 'explicit panic', panic.rs:1
      stack backtrace:
      Illegal instruction (core dumped)
      ```
      
      r? @alexcrichton
      
      @jakllsch Does panicking / backtraces work on sparc64-netbsd?
      
      cc @glaubitz
      e1279a0b
    • P
      Add pretty printing of unions in debuggers · 1765a3fd
      Philip Craig 提交于
      Fixes #37479
      1765a3fd
    • B
      Auto merge of #38711 - programble:doc/slice-iter-method-links, r=brson · e227433d
      bors 提交于
      Add links to methods on all slice iterator struct docs
      
      In the same style as `std::slice::Iter` to help people find how to create iterators.
      
      r? @steveklabnik
      e227433d
    • B
      Auto merge of #38713 - clarcharr:trusted_len, r=brson · 453172bd
      bors 提交于
      TrustedLen for Empty and Once.
      
      These implementations were missing, so, I went ahead and added them.
      453172bd
    • S
      Merge branch 'master' into sparc64 · b14785d3
      Seo Sanghyeon 提交于
      b14785d3
    • B
      Auto merge of #38653 - Mark-Simulacrum:dropless-arena, r=eddyb · 08babdb4
      bors 提交于
      Add a DroplessArena and utilize it as a more efficient arena when possible
      
      I will collect performance (probably just `-Ztime-passes`, and more if that shows significant differences, perhaps).
      
      6feba98 also fixes a potential infinite loop if inplace reallocation failed for `TypedArena` (and `DroplessArena` via copied code).
      
      r? @EddyB
      08babdb4
    • B
      Auto merge of #38736 - xen0n:save-the-save-analysis, r=alexcrichton · 07412c8d
      bors 提交于
      rustbuild: save the save analysis
      
      Fixes #38734. ~~call me the nightly firefighter~~
      
      r? @alexcrichton
      07412c8d
    • B
      Auto merge of #38708 - alexcrichton:add-distcheck, r=brson · 90c80e0c
      bors 提交于
      Gate on distcheck on Travis
      
      This commit adds a new entry to the Travis matrix to gate on distcheck, the illustrious test process that has historically taken *8 hours* to complete and also breaks all the time on nightly. By adding it to Travis we should hope to never see nightly breakage (like https://github.com/rust-lang/rust/issues/38690) because of this ever again!
      
      "But wait, surely we can't wait 8 hours for all PRs!" you might be thinking, and you are indeed correct. The distcheck added here is much more optimized for speed than the old buildbot instances for a number of reasons:
      
      * We're not building *two host compilers* beforehand. The current distcheck bot does a cross for i686 Linux and x86_64 Linux before it actually runs distcheck, building 6 compilers and LLVM twice. None of this is done in parallel as well (e.g. `-j1`). Not doing any of this work will be a huge win!
      * We're using sccache to compile LLVM, so it should be much faster. Distcheck on the bots didn't cache LLVM well and rebuilt it every time.
      
      All in all, this version of "distcheck" should be exactly like other matrix entries that run tests except that it's a *little* slower to start as it has to create the source tarball then rebuild the build system in the distcheck dir. Overall this should be well under the 2 hours that Android is currently taking anyway.
      
      Closes https://github.com/rust-lang/rust/issues/38691
      90c80e0c