1. 30 3月, 2018 17 次提交
    • M
      Update clippy · 559e0180
      Manish Goregaokar 提交于
      559e0180
    • B
      Auto merge of #49489 - kennytm:rollup, r=kennytm · d8a1bc73
      bors 提交于
      Rollup of 10 pull requests
      
      - Successful merges: #49443, #49445, #49446, #49463, #49464, #49466, #49468, #49473, #49484, #49486
      - Failed merges:
      d8a1bc73
    • B
      Auto merge of #49412 - GuillaumeGomez:hide-type-decl, r=QuietMisdreavus · 15e8c5d8
      bors 提交于
      Hide type declarations by default
      
      I'm not very happy for the moment about the rendering but the bases are here:
      
      <img width="610" alt="screen shot 2018-03-27 at 11 56 27" src="https://user-images.githubusercontent.com/3050060/37960492-0e045954-31b6-11e8-9cea-1ef8a3f980c4.png">
      
      r? @QuietMisdreavus
      15e8c5d8
    • K
      Rollup merge of #49486 - oconnor663:releases_typo, r=steveklabnik · 67e0c2b5
      kennytm 提交于
      correct a typo in RELEASES.md
      67e0c2b5
    • K
      Rollup merge of #49484 - cuviper:ignore-ibm-stack-probes, r=alexcrichton · f1642f89
      kennytm 提交于
      Ignore stack-probes tests on powerpc/s390x too
      
      We only support stack probes on x86 and x86_64.
      Other arches are already ignored.
      f1642f89
    • K
      Rollup merge of #49473 - joshtriplett:nonnull-size, r=steveklabnik · 801deaee
      kennytm 提交于
      src/libcore/ptr.rs: Fix documentation for size of `Option<NonNull<T>>`
      
      Seems more useful to say that it has the same size as `*mut T`.
      801deaee
    • K
      Rollup merge of #49468 - glandium:cleanup, r=pnkfelix · dd5f17ab
      kennytm 提交于
      Remove unnecessary use core::hash in liballoc/boxed.rs
      
      It' only used for hash::Hasher, but Hasher is also imported.
      dd5f17ab
    • K
      Rollup merge of #49466 - glandium:master, r=rkruppe · 361ddfeb
      kennytm 提交于
      Use f{32,64}::to_bits for is_zero test in vec::SpecFromElem
      
      vec::SpecFromElem provides an optimization to use calloc to fill a Vec
      when the element given to fill the Vec is represented by 0.
      
      For floats, the test for that currently used is `x == 0. &&
      x.is_sign_positive()`. When compiled in a standalone function, rustc
      generates the following assembly:
      
      ```
        xorps xmm1, xmm1
        ucomisd xmm0, xmm1
        setnp al
        sete cl
        and cl, al
        movq rax, xmm0
        test rax, rax
        setns al
        and al, cl
        ret
      ```
      
      A simpler test telling us whether the value is represented by 0, is
      `x.to_bits() == 0`, which rustc compiles to:
      
      ```
        movq rax, xmm0
        test rax, rax
        sete al
        ret
      ```
      
      Not that the test is hot in any way, but it also makes it clearer what
      the intent in the rust code is.
      361ddfeb
    • K
      Rollup merge of #49464 - ollie27:rustbuild_junction_handle_leak, r=alexcrichton · 9ab97a87
      kennytm 提交于
      rustbuild: Don't leak file handles when creating junctions on Windows
      
      This fixes building the compiler docs because stage1-rustc\x86_64-pc-windows-msvc\doc is used twice which doesn't work if we still have a handle from the first time.
      9ab97a87
    • K
      Rollup merge of #49463 - tinaun:patch-2, r=alexcrichton · 07ea35fc
      kennytm 提交于
      Don't mention unstable constructors in release notes
      07ea35fc
    • K
      Rollup merge of #49446 - frewsxcv:frewsxcv-mention-optiono, r=GuillaumeGomez · d06abdbf
      kennytm 提交于
      Explicitly mention `Option` in `?` error message.
      
      Save users the time/effort of having to lookup what types implement
      the `Try` trait.
      d06abdbf
    • K
      Rollup merge of #49445 - GuillaumeGomez:light-theme, r=QuietMisdreavus · eb3e2feb
      kennytm 提交于
      Rename main theme into light theme
      
      r? @QuietMisdreavus
      eb3e2feb
    • K
      Rollup merge of #49443 - GuillaumeGomez:fix-tooltip-position, r=QuietMisdreavus · 3d316a55
      kennytm 提交于
      Fix tooltip position
      
      r? @QuietMisdreavus
      3d316a55
    • B
      Auto merge of #49316 - alexcrichton:start-group-end-group, r=michaelwoerister · 491f4bf5
      bors 提交于
      rustc: Group linked libraries where needed
      
      This commit fixes a longstanding issue with the compiler with circular
      dependencies between libcore and libstd. The `core` crate requires at least one
      symbol, the ability to unwind. The `std` crate is the crate which actually
      defines this symbol, but the `std` crate also depends on the `core` crate.
      
      This circular dependency is in general disallowed in Rust as crates cannot have
      cycles amongst them. A special exception is made just for core/std, but this is
      also unfortunately incompatible with how GNU linkers work. GNU linkers will
      process undefined symbols in a left-to-right fashion, only actually linking an
      rlib like libstd if there are any symbols used from it. This strategy is
      incompatible with circular dependencies because if we otherwise don't use
      symbols from libstd we don't discover that we needed it until we're later
      processing libcore's symbols!
      
      To fix this GNU linkers support the `--start-group` and `--end-group` options
      which indicate "libraries between these markers may have circular dependencies
      amongst them. The linker invocation has been updated to automatically pass these
      arguments when we're invoking a GNU linker and automatically calculate where the
      arguments need to go (around libstd and libcore)
      
      Closes #18807
      Closes #47074
      491f4bf5
    • A
      rustc: Group linked libraries where needed · 88114f61
      Alex Crichton 提交于
      This commit fixes a longstanding issue with the compiler with circular
      dependencies between libcore and libstd. The `core` crate requires at least one
      symbol, the ability to unwind. The `std` crate is the crate which actually
      defines this symbol, but the `std` crate also depends on the `core` crate.
      
      This circular dependency is in general disallowed in Rust as crates cannot have
      cycles amongst them. A special exception is made just for core/std, but this is
      also unfortunately incompatible with how GNU linkers work. GNU linkers will
      process undefined symbols in a left-to-right fashion, only actually linking an
      rlib like libstd if there are any symbols used from it. This strategy is
      incompatible with circular dependencies because if we otherwise don't use
      symbols from libstd we don't discover that we needed it until we're later
      processing libcore's symbols!
      
      To fix this GNU linkers support the `--start-group` and `--end-group` options
      which indicate "libraries between these markers may have circular dependencies
      amongst them. The linker invocation has been updated to automatically pass these
      arguments when we're invoking a GNU linker and automatically calculate where the
      arguments need to go (around libstd and libcore)
      
      Closes #18807
      Closes #47074
      88114f61
    • J
      correct a typo in RELEASES.md · 9a73bd98
      Jack O'Connor 提交于
      9a73bd98
    • J
      Ignore stack-probes tests on powerpc/s390x too · b404ec4b
      Josh Stone 提交于
      We only support stack probes on x86 and x86_64.
      Other arches are already ignored.
      b404ec4b
  2. 29 3月, 2018 22 次提交
  3. 28 3月, 2018 1 次提交