1. 27 7月, 2013 1 次提交
    • A
      Consolidate raw representations of rust values · 5aaaca0c
      Alex Crichton 提交于
      This moves the raw struct layout of closures, vectors, boxes, and strings into a
      new `unstable::raw` module. This is meant to be a centralized location to find
      information for the layout of these values.
      
      As safe method, `repr`, is provided to convert a rust value to its raw
      representation. Unsafe methods to convert back are not provided because they are
      rarely used and too numerous to write an implementation for each (not much of a
      common pattern).
      5aaaca0c
  2. 25 7月, 2013 6 次提交
    • A
      Convert uses of transmute which don't need it · 7fd23e4f
      Alex Crichton 提交于
      7fd23e4f
    • B
      auto merge of #7931 : blake2-ppc/rust/chain-mut-ref, r=pcwalton · 467d381d
      bors 提交于
      First, clean up the uses of "None" and "Some" to always use consistent title case matching the variant names.
      
      Add .chain_mut_ref() which is a missing method. A use case example for this method is extraction of an optional value from an Option\<Container\> value.
      467d381d
    • B
      auto merge of #8006 : emillon/rust/issue-6060, r=pcwalton · 4a726f05
      bors 提交于
      Hello,
      
      I made a tiny change to `tidy.py` so that it uses a regexp to find `// NOTE` comments. I could not find an easy way to write an automated test for this but if this is needed and possible I'd be happy to write one.
      Please note that it also removes extra empty lines that appear after each of these warnings (I believe that there were not wanted).
      
      On the performance side, `make tidy` is now a bit slower (running it 10 times in a row takes 71s on my machine, 65s before) but I don't think that it is performance sensitive.
      
      Thanks!
      4a726f05
    • B
      auto merge of #7996 : erickt/rust/cleanup-strs, r=erickt · 330378d1
      bors 提交于
      This is a cleanup pull request that does:
      
      * removes `os::as_c_charp`
      * moves `str::as_buf` and `str::as_c_str` into `StrSlice`
      * converts some functions from `StrSlice::as_buf` to `StrSlice::as_c_str`
      * renames `StrSlice::as_buf` to `StrSlice::as_imm_buf` (and adds `StrSlice::as_mut_buf` to match `vec.rs`.
      * renames `UniqueStr::as_bytes_with_null_consume` to `UniqueStr::to_bytes`
      * and other misc cleanups and minor optimizations
      330378d1
    • E
    • B
      auto merge of #7997 : omasanori/rust/cleanup, r=cmr · 766eb950
      bors 提交于
      Just an minor cleanup.
      766eb950
  3. 24 7月, 2013 33 次提交