1. 14 9月, 2016 8 次提交
    • G
      Rollup merge of #36396 - athulappadan:Default-docs, r=bluss · a89690ec
      Guillaume Gomez 提交于
      Documentation of what Default does for each type
      
      Addresses #36265
      I haven't changed the following types due to doubts:
      
      1)src/libstd/ffi/c_str.rs
      2)src/libcore/iter/sources.rs
      3)src/libcore/hash/mod.rs
      4)src/libcore/hash/mod.rs
      5)src/librustc/middle/privacy.rs
      
      r? @steveklabnik
      a89690ec
    • G
      Rollup merge of #36374 - dangcheng:patch-1, r=steveklabnik · 4476b7b4
      Guillaume Gomez 提交于
      book: fix mistake (File::open -> File::create)
      4476b7b4
    • G
      Rollup merge of #36363 - GuillaumeGomez:add_urls, r=steveklabnik · 99c2f728
      Guillaume Gomez 提交于
      Add urls
      
      r? @steveklabnik
      99c2f728
    • G
      Rollup merge of #36334 - GuillaumeGomez:run_but, r=steveklabnik · d939cbee
      Guillaume Gomez 提交于
      Set run button transparent instead of invisible
      
      r? @steveklabnik
      
      And of course a screenshot:
      
      ![screenshot from 2016-09-08 01-15-45](https://cloud.githubusercontent.com/assets/3050060/18331849/31fe1f8c-7562-11e6-9ae9-1dab44089ec6.png)
      d939cbee
    • B
      Auto merge of #36041 - ahmedcharles:try, r=nrc · 739d5718
      bors 提交于
      Replace try! with ?.
      739d5718
    • B
      Auto merge of #35021 - japaric:rustc-builtins, r=alexcrichton · b1363a73
      bors 提交于
      crate-ify compiler-rt into compiler-builtins
      
      libcompiler-rt.a is dead, long live libcompiler-builtins.rlib
      
      This commit moves the logic that used to build libcompiler-rt.a into a
      compiler-builtins crate on top of the core crate and below the std crate.
      This new crate still compiles the compiler-rt instrinsics using gcc-rs
      but produces an .rlib instead of a static library.
      
      Also, with this commit rustc no longer passes -lcompiler-rt to the
      linker. This effectively makes the "no-compiler-rt" field of target
      specifications a no-op. Users of `no_std` will have to explicitly add
      the compiler-builtins crate to their crate dependency graph *if* they
      need the compiler-rt intrinsics - this is a [breaking-change]. Users
      of the `std` have to do nothing extra as the std crate depends
      on compiler-builtins.
      
      Finally, this a step towards lazy compilation of std with Cargo as the
      compiler-rt intrinsics can now be built by Cargo instead of having to
      be supplied by the user by some other method.
      
      closes #34400
      
      ---
      
      r? @alexcrichton
      b1363a73
    • A
      Link test to compiler builtins and make unstable · 848cfe20
      Alex Crichton 提交于
      This commit fixes a test which now needs to explicitly link to the
      `compiler_builtins` crate as well as makes the `compiler_builtins` crate
      unstable.
      848cfe20
    • B
      Auto merge of #36181 - seanmonstar:likely, r=nikomatsakis · 2fd06081
      bors 提交于
      core: add likely and unlikely intrinsics
      
      I'm no good at reading assembly, but I have tried a stage1 compiler with this patch, and it does cause different asm output. Additionally, testing this compiler on my httparse crate with some `likely` usage added in to the branches does affect benchmarks. However, I'm sure a codegen test should be included, if anyone knows what it should look like.
      
      There isn't an entry in `librustc_trans/context.rs` in this diff, because it already exists (`llvm.expect.i1` is used for array indices).
      
      ----
      
      Even though this does affect httparse benchmarks, it doesn't seem to affect it the same way GCC's `__builtin_expect` affects picohttpparser. I was confused that the deviation on the benchmarks grew hugely when testing this, especially since I'm absolutely certain that the branchs where I added `likely` were always `true`. I chalk that up to GCC and LLVM handle branch prediction differently.
      
      cc #26179
      2fd06081
  2. 13 9月, 2016 19 次提交
  3. 12 9月, 2016 13 次提交