1. 14 9月, 2014 8 次提交
  2. 13 9月, 2014 6 次提交
    • B
      auto merge of #17187 : damag/rust/ffi-guide-fixes, r=alexcrichton · 079951ed
      bors 提交于
      Updates the callbacks section to refer to the right function name and fixes a couple of minor whitespace issues in the examples.
      079951ed
    • B
      auto merge of #17182 : luqmana/rust/rnp, r=alexcrichton · 13475a08
      bors 提交于
      Fixes #17120.
      13475a08
    • B
      auto merge of #17175 : pcwalton/rust/region-bounds-on-closures, r=huonw · 90304ed2
      bors 提交于
      This can break code like:
      
          fn call_rec(f: |uint| -> uint) -> uint {
              (|x| f(x))(call_rec(f))
          }
      
      Change this code to use a temporary instead of violating the borrow
      rules:
      
          fn call_rec(f: |uint| -> uint) -> uint {
              let tmp = call_rec(|x| f(x)); f(tmp)
          }
      
      Closes #17144.
      
      [breaking-change]
      
      r? @huonw
      90304ed2
    • B
      auto merge of #17162 : sfackler/rust/decorator-traits, r=huonw · a9cf1988
      bors 提交于
      The other extension types already worked this way and it can be useful to track some state along with the extension.
      
      I also removed the `BasicMacroExpander` and `BasicIdentMacroExpander` since the span inside of them was never used. The expander function types now directly implement the relevant trait.
      a9cf1988
    • B
      auto merge of #17155 : steveklabnik/rust/dherman_fixes, r=brson · ccae356a
      bors 提交于
      Fixing more suggestions from @dherman . I made them individual commits in case we want to discuss any of them further.
      ccae356a
    • B
      auto merge of #17134 : vberger/rust/lint_unused_extern_crate, r=alexcrichton · 8780d9c6
      bors 提交于
      This PR creates a new lint : ``unused_extern_crate``, which do pretty much the same thing as ``unused_import``, but for ``extern crate`` statements. It is related to feature request #10385.
      
      I adapted the code tracking used imports so that it tracks extern crates usage as well. This was mainly trial and error and while I believe all cases are covered, there might be some code I added that is useless (long compile times didn't give me the opportunity to check this in detail).
      
      Also, I removed some unused ``extern crate`` statements from the libs, that where spotted by this new lint.
      8780d9c6
  3. 12 9月, 2014 23 次提交
  4. 11 9月, 2014 3 次提交