1. 15 5月, 2014 24 次提交
  2. 14 5月, 2014 16 次提交
    • B
      auto merge of #14192 : pongad/rust/walkcleanup, r=pcwalton · 96bcadc1
      bors 提交于
      Fixes #14134
      96bcadc1
    • B
      auto merge of #14191 : luqmana/rust/eu, r=alexcrichton · d78718ad
      bors 提交于
      We were correctly determining the attributes needed for the parameters for extern fns, but when that extern fn was from another crate we never bothered to pass that information along to LLVM. (i.e never called `foreign::add_argument_attributes`).
      
      I've just changed both local and non-local (crate) extern fn's to be dealt with together (through `foreign::register_foreign_item_fn`) so we don't run into something like again.
      
      Fixes #14177.
      d78718ad
    • B
      d9906813
    • B
      auto merge of #14179 : luqmana/rust/acp, r=alexcrichton · 03053580
      bors 提交于
      It's a bit odd to single out just android when we don't do this for any other cross compiling targets. Android builds will still work since we just pass the full path for gcc and ar with `-C linker` and `-C ar`.
      
      I did add the flag to compiletest though so it can find gdb. Though, i'm pretty sure we don't run debuginfo tests on android anyways right now.
      
      [breaking-change]
      03053580
    • J
      Implement set complement and universe for bitflags · 15958855
      J.C. Moyer 提交于
      15958855
    • B
      auto merge of #14169 : alexcrichton/rust/atomics, r=sanxiyn · db5ca231
      bors 提交于
      This module is a foundation on which many other algorithms are built. When hardware support is missing, stubs are provided in libcompiler-rt.a, so this should be available on all platforms.
      db5ca231
    • A
      core: Allow using failure outside of libcore · 949443ef
      Alex Crichton 提交于
      Due to our excellent macro hygiene, this involves having a global path and a
      hidden module in libcore itself.
      949443ef
    • A
      core: Document should_not_exist's existence · 82a8a5eb
      Alex Crichton 提交于
      Explain why it should not exist, and the plan of attack for removing it.
      82a8a5eb
    • A
      core: Add a crate doc block · 57f3b6ee
      Alex Crichton 提交于
      57f3b6ee
    • A
      core: Inherit the atomics module · 325cc515
      Alex Crichton 提交于
      325cc515
    • M
      fdb30cd2
    • L
    • L
      Get rid of the android-cross-path flag to rustc. · d0d800f1
      Luqman Aden 提交于
      There's no need to include this specific flag just for android. We can
      already deal with what it tries to solve by using -C linker=/path/to/cc
      and -C ar=/path/to/ar. The Makefiles for rustc already set this up when
      we're crosscompiling.
      
      I did add the flag to compiletest though so it can find gdb. Though, I'm
      pretty sure we don't run debuginfo tests on android anyways right now.
      
      [breaking-change]
      d0d800f1
    • B
      auto merge of #14178 : alexcrichton/rust/more-ignores, r=brson · 2e02f6ef
      bors 提交于
      It was thought that these failures only happened on windows, turns out they
      happen on any 32-bit machine.
      
      cc #14064
      2e02f6ef
    • B
      auto merge of #13127 : kballard/rust/read_at_least, r=alexcrichton · e4414739
      bors 提交于
      Reader.read_at_least() ensures that at least a given number of bytes
      have been read. The most common use-case for this is ensuring at least 1
      byte has been read. If the reader returns 0 enough times in a row, a new
      error kind NoProgress will be returned instead of looping infinitely.
      
      This change is necessary in order to properly support Readers that
      repeatedly return 0, either because they're broken, or because they're
      attempting to do a non-blocking read on some resource that never becomes
      available.
      
      Also add .push() and .push_at_least() methods. push() is like read() but
      the results are appended to the passed Vec.
      
      Remove Reader.fill() and Reader.push_exact() as they end up being thin
      wrappers around read_at_least() and push_at_least().
      
      [breaking-change]
      e4414739
    • K
      io: Add .read_at_least() to Reader · 972f2e58
      Kevin Ballard 提交于
      Reader.read_at_least() ensures that at least a given number of bytes
      have been read. The most common use-case for this is ensuring at least 1
      byte has been read. If the reader returns 0 enough times in a row, a new
      error kind NoProgress will be returned instead of looping infinitely.
      
      This change is necessary in order to properly support Readers that
      repeatedly return 0, either because they're broken, or because they're
      attempting to do a non-blocking read on some resource that never becomes
      available.
      
      Also add .push() and .push_at_least() methods. push() is like read() but
      the results are appended to the passed Vec.
      
      Remove Reader.fill() and Reader.push_exact() as they end up being thin
      wrappers around read_at_least() and push_at_least().
      
      [breaking-change]
      972f2e58