1. 05 10月, 2017 3 次提交
  2. 04 10月, 2017 10 次提交
    • B
      Auto merge of #44890 - nvzqz:str-box-transmute, r=alexcrichton · 417ffc98
      bors 提交于
      Remove mem::transmute used in Box<str> conversions
      
      Given that https://github.com/rust-lang/rust/pull/44877 is failing, I decided to make a separate PR. This is done with the same motivation: to avoid `mem::transmute`-ing non `#[repr(C)]` types.
      417ffc98
    • B
      Auto merge of #44882 - mikhail-m1:master, r=pnkfelix · fd8099f0
      bors 提交于
      add notes to report_conflicting_borrow MIR borrowck
      
      part of #44596
      fd8099f0
    • M
      incr.comp.: Address review comments. · 0454a41b
      Michael Woerister 提交于
      0454a41b
    • M
      add notes to report_conflicting_borrow MIR borrowck · c68b10f5
      Mikhail Modin 提交于
      c68b10f5
    • B
      Auto merge of #44905 - Pirh:process_abort_docs, r=steveklabnik · eabef060
      bors 提交于
      Update docs for process::abort
      
      Remove a typo and explain the relationship to `panic!`.
      
      Part of #29370
      
      r? @steveklabnik
      eabef060
    • B
      Auto merge of #44999 - pnkfelix:mir-borrowck-fix-assert-left-right, r=nikomatsakis · f1938cf1
      bors 提交于
      Overlapping borrows can point to different lvalues.
      
      Overlapping borrows can point to different lvalues.
      
      There's always a basis for the overlap, so instead of removing the assert entirely, I instead pass in the prefix that we found and check that it actually is a prefix of both lvalues.
      
      Fix #44829
      f1938cf1
    • B
      Auto merge of #44979 - hinaria:master, r=dtolnay · 2db48d7f
      bors 提交于
      make `backtrace = false` compile for windows targets.
      
      when building for windows with `backtrace = false`, `libstd` fails to compile because some modules that use items from `sys_common::backtrace::*` are still included, even though those modules aren't used or referenced by anything.
      
      `sys_common::backtrace` doesn't exist when the backtrace feature is turned off.
      
      --
      
      i've also added `#[cfg(feature = "backtrace")]` to various items that exist exclusively to support `mod backtrace` since the compilation would fail since they would be unused in a configuration with backtraces turned off.
      2db48d7f
    • B
      Auto merge of #44895 - stephaneyfx:master, r=dtolnay · bd90aa6d
      bors 提交于
      Made `fs::copy` return the length of the main stream
      
      On Windows with the NTFS filesystem, `fs::copy` would return the sum of the
      lengths of all streams, which can be different from the length reported by
      `metadata` and thus confusing for users unaware of this NTFS peculiarity.
      
      This makes `fs::copy` return the same length `metadata` reports which is the
      value it used to return before PR #26751. Note that alternate streams are still
      copied; their length is just not included in the returned value.
      
      This change relies on the assumption that the stream with index 1 is always the
      main stream in the `CopyFileEx` callback. I could not find any official
      document confirming this but empirical testing has shown this to be true,
      regardless of whether the alternate stream is created before or after the main
      stream.
      
      Resolves #44532
      bd90aa6d
    • B
      Auto merge of #44949 - QuietMisdreavus:rustdoctest-dirs, r=nikomatsakis · 4502e2aa
      bors 提交于
      let htmldocck.py check for directories
      
      Since i messed this up during https://github.com/rust-lang/rust/pull/44613, i wanted to codify this into the rustdoc tests to make sure that doesn't happen again.
      4502e2aa
    • B
      Auto merge of #44922 - zilbuz:issue-44596/E0594, r=pnkfelix · 835e3e50
      bors 提交于
      MIR borrowck: move span_label to `borrowck_errors.rs`
      
      The calls to `span_label` are moved and factorized for:
      * E0503 (`cannot_use_when_mutably_borrowed()`)
      * E0506 (`cannot_assign_to_borrowed()`)
      
      Additionnally, the error E0594 (`cannot_assign_static()`) has been factorized between `check_loan.rs` and `borrowc_check.rs`.
      
      Part of #44596
      835e3e50
  3. 03 10月, 2017 8 次提交
  4. 02 10月, 2017 19 次提交