1. 23 5月, 2018 1 次提交
  2. 20 5月, 2018 14 次提交
    • F
      avoid reporting twice · f837c34a
      F001 提交于
      f837c34a
    • F
      Fix according to comments · c3322556
      F001 提交于
      c3322556
    • F
      re-implement · 4bb39966
      F001 提交于
      4bb39966
    • B
      Auto merge of #50893 - kennytm:rollup, r=kennytm · 3ea24915
      bors 提交于
      Rollup of 8 pull requests
      
      Successful merges:
      
       - #50531 (Cleanup uses of TypeIdHasher and replace them with StableHasher)
       - #50819 (Fix potential divide by zero)
       - #50827 (Update LLVM to 56c931901cfb85cd6f7ed44c7d7520a8de1edf97)
       - #50829 (CheckLoopVisitor: also visit break expressions)
       - #50854 (in which the unused shorthand field pattern debacle/saga continues)
       - #50858 (Reorder description for snippets in rustdoc documentation)
       - #50883 (Fix warning when building stage0 libcore)
       - #50889 (Update clippy)
      
      Failed merges:
      3ea24915
    • K
      Rollup merge of #50889 - oli-obk:clippy, r=kennytm · ada5feed
      kennytm 提交于
      Update clippy
      
      
      # Conflicts:
      #	src/Cargo.lock
      ada5feed
    • K
      Rollup merge of #50819 - cjkenn:cjkenn/div-by-zero, r=kennytm · e1f031e5
      kennytm 提交于
      Fix potential divide by zero
      
      This should fix #50761
      
      I had trouble reproducing with the provided code, but looking at the stack trace would indicate that this code is the likely cause. I made a number of assumptions here, because I don't have enough context on how the register size is set:
      
      1. I assumed `rest.unit.size.bytes()` can be 0, and it's ok if it's set to 0 before this function is called
      2. I assumed that if `rest.unit.size.bytes()` is 0, that we want `rest_count` to also be 0.
      e1f031e5
    • K
      Rollup merge of #50883 - dlrobertson:fix_warning, r=TimNN · 9f34c7fe
      kennytm 提交于
      Fix warning when building stage0 libcore
      
      When building stage0 a warning will be triggered when compiling libcore
      due to `align_to_offsets` not being used.
      9f34c7fe
    • K
      Rollup merge of #50858 - robinkrahl:rustdoc-fix-order, r=steveklabnik · 974396b9
      kennytm 提交于
      Reorder description for snippets in rustdoc documentation
      
      The example code snippets for the `no_run` and `compile_fail` attributes in the rustdoc documentation were followed by the description for the wrong attribute.  This patch reorders the descriptions to match the code snippets.
      974396b9
    • K
      Rollup merge of #50854 -... · 907288c7
      kennytm 提交于
      Rollup merge of #50854 - zackmdavis:and_the_case_of_the_unused_field_pattern_3_straight_to_video, r=estebank
      
      in which the unused shorthand field pattern debacle/saga continues
      
      In e4b1a797 (#47922), we corrected erroneous suggestions for unused
      shorthand field pattern bindings, suggesting `field: _` where the
      previous suggestion of `_field` wouldn't even have compiled
      (#47390). Soon, it was revealed that this was insufficient (#50303), and
      the fix was extended to references, slices, &c. (#50327) But even this
      proved inadequate, as the erroneous suggestions were still being issued
      for patterns in local (`let`) bindings (#50804). Here, we yank the
      shorthand-detection and variable/node registration code into a new
      common function that can be called while visiting both match arms and
      `let` bindings.
      
      Resolves #50804.
      
      r? @estebank
      907288c7
    • K
      Rollup merge of #50829 - est31:master, r=estebank · 611dafcf
      kennytm 提交于
      CheckLoopVisitor: also visit break expressions
      
      Fixes #50802
      611dafcf
    • K
      Rollup merge of #50827 - nox:llvmup, r=eddyb · fbfce83f
      kennytm 提交于
      Update LLVM to 56c931901cfb85cd6f7ed44c7d7520a8de1edf97
      
      This brings in https://github.com/rust-lang/llvm/pull/115, which fixes https://github.com/rust-lang/rust/issues/49873.
      fbfce83f
    • B
      Auto merge of #50782 - matthewjasper:wheres-main, r=matthewjasper · a3085756
      bors 提交于
      Prevent main from having a where clause.
      
      Closes #50714
      
      Should this have a crater run?
      
      cc #48557, #48214
      
      r? @nikomatsakis
      a3085756
    • C
      remove feature line from test · 8d9a87c1
      cjkenn 提交于
      8d9a87c1
    • B
      Auto merge of #50690 - oli-obk:mir_stuff, r=eddyb · 5c3960c2
      bors 提交于
      Ensure that statics are always ByRef
      
      Statics aren't values to be used, they are names for memory locations.
      
      r? @EddyB
      
      cc @Zoxc
      
      fixes #50706
      5c3960c2
  3. 19 5月, 2018 25 次提交