1. 12 Jun, 2015 1 commit
    • Ulrik Sverdrup's avatar
      mk: Build crates with relative paths to rustc · 70269cd8
      Ulrik Sverdrup authored
      The path we pass to rustc will be visible in panic messages and
      backtraces: they will be user visible!
      
      Avoid junk in these paths by passing relative paths to rustc.
      
      For most advanced users, `libcore` or `libstd` in the path will be
      a clue to the location -- inside our code, not theirs.
      
      Store both the relative path to the source as well as the absolute.
      Use the relative path where it matters, compiling the main crates,
      instead of changing all of the build process to cope with relative
      paths.
      
      Example output after this patch:
      
      ```
      $ ./testunwrap
      thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:362
      $ RUST_BACKTRACE=1 ./testunwrap
      thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:362
      stack backtrace:
         1:     0x7ff59c1e9956 - sys::backtrace::write::h67a542fd2b201576des
                              at ../src/libstd/sys/unix/backtrace.rs:158
         2:     0x7ff59c1ed5b6 - panicking::on_panic::h3d21c41cdd5c12d41Xw
                              at ../src/libstd/panicking.rs:58
         3:     0x7ff59c1e7b6e - rt::unwind::begin_unwind_inner::h9f3a5440cebb8baeLDw
                              at ../src/libstd/rt/unwind/mod.rs:273
         4:     0x7ff59c1e7f84 - rt::unwind::begin_unwind_fmt::h4fe8a903e0c296b0RCw
                              at ../src/libstd/rt/unwind/mod.rs:212
         5:     0x7ff59c1eced7 - rust_begin_unwind
         6:     0x7ff59c22c11a - panicking::panic_fmt::h00b0cd49c98a9220i5B
                              at ../src/libcore/panicking.rs:64
         7:     0x7ff59c22b9e0 - panicking::panic::hf549420c0ee03339P3B
                              at ../src/libcore/panicking.rs:45
         8:     0x7ff59c1e621d - option::Option<T>::unwrap::h501963526474862829
         9:     0x7ff59c1e61b1 - main::hb5c91ce92347d1e6eaa
        10:     0x7ff59c1f1c18 - rust_try_inner
        11:     0x7ff59c1f1c05 - rust_try
        12:     0x7ff59c1ef374 - rt::lang_start::h7e51e19c6677cffe5Sw
                              at ../src/libstd/rt/unwind/mod.rs:147
                              at ../src/libstd/rt/unwind/mod.rs:130
                              at ../src/libstd/rt/mod.rs:128
        13:     0x7ff59c1e628e - main
        14:     0x7ff59b3f6b44 - __libc_start_main
        15:     0x7ff59c1e6078 - <unknown>
        16:                0x0 - <unknown>
      ```
      70269cd8
  2. 11 Jun, 2015 5 commits
    • bors's avatar
      Auto merge of #26159 - alexcrichton:tweak-process-lowering-raising, r=brson · f6341a87
      bors authored
      * Slate these features to be stable in 1.2 instead of 1.1 (not being backported)
      * Have the `FromRawFd` implementations follow the contract of the `FromRawFd`
        trait by taking ownership of the primitive specified.
      * Refactor the implementations slightly to remove the `unreachable!` blocks as
        well as separating the stdio representation of `std::process` from
        `std::sys::process`.
      
      cc #25494 
      f6341a87
    • bors's avatar
      Auto merge of #26155 - dhuseby:fixing_bitrig_net_tests, r=alexcrichton · cf0edd0a
      bors authored
      … congruent due to rounding errors
      
      @semarie this affected both openbsd and bitrig.  it seems the correct solution is to switch to fixed point arithmetic in the timeout code, the same as freebsd.
      cf0edd0a
    • bors's avatar
      Auto merge of #26154 - pmarcelll:master, r=Gankro · 37cf025f
      bors authored
      Various methods in both libcore/char.rs and librustc_unicode/char.rs were previously marked with #[inline], now every method is marked in char's impl blocks.
      Partially fixes #26124.
      EDIT: I'm not familiar with pull reqests (yet), apparently Github added my second commit to thit PR...
      Fixes #26124 
      37cf025f
    • bors's avatar
      Auto merge of #26122 - bluss:borrow-box, r=alexcrichton · 2fbbd54a
      bors authored
      Implement Borrow<T> and BorrowMut<T> for Box<T: ?Sized>
      2fbbd54a
    • bors's avatar
      Auto merge of #25839 - bluss:str-split-at-impl, r=alexcrichton · fbb13543
      bors authored
      Implement RFC rust-lang/rfcs#1123
      
      Add str method str::split_at(mid: usize) -> (&str, &str).
      
      Also a minor cleanup in the collections::str module. Remove redundant slicing of self.
      fbb13543
  3. 10 Jun, 2015 25 commits
  4. 09 Jun, 2015 9 commits