1. 11 2月, 2014 26 次提交
  2. 10 2月, 2014 14 次提交
    • F
    • G
      Makefile.in: --no-rpath => -C no-rpath · 1b969e11
      gifnksm 提交于
      1b969e11
    • B
      auto merge of #12149 : thomaslee/rust/ipaddr_deriving_iter_bytes, r=cmr · d3249175
      bors 提交于
      This is a fairly trivial (but IMHO handy) change to implement IterBytes for IpAddr and SocketAddr.
      
      I originally stumbled across this because I wanted to use a SocketAddr as a HashMap key and discovered that I couldn't do it directly. Had to impl IterBytes on a new intermediate type to work around it.
      d3249175
    • B
      Implement List's any() function · cb1fad3b
      Bruno de Oliveira Abinader 提交于
      This is needed for cases where we only need to know if a list item
      matches the given predicate (eg. in Servo, we need to know if attributes
      from different DOM elements are equal).
      cb1fad3b
    • J
      Update comment in contravariant test · 266b7e0f
      Jake Kerr 提交于
      The previous definition was actually describing covariance.
      Fixing to describe contravariance while keeping 'static in the definition was tricky so just changed to use 'short and 'long.
      266b7e0f
    • T
      IterBytes for IpAddr and SocketAddr · e2051850
      Tom Lee 提交于
      e2051850
    • B
      auto merge of #12084 : alexcrichton/rust/codegen-opts, r=cmr · d440a569
      bors 提交于
      Move them all behind a new -C switch. This migrates some -Z flags and some
      top-level flags behind this -C codegen option.
      
      The -C flag takes values of the form "-C name=value" where the "=value" is
      optional for some flags.
      
      Flags affected:
      
      * --llvm-args           => -C llvm-args
      * --passes              => -C passes
      * --ar                  => -C ar
      * --linker              => -C linker
      * --link-args           => -C link-args
      * --target-cpu          => -C target-cpu
      * --target-feature      => -C target-fature
      * --android-cross-path  => -C android-cross-path
      * --save-temps          => -C save-temps
      * --no-rpath            => -C no-rpath
      * -Z no-prepopulate     => -C no-prepopulate-passes
      * -Z no-vectorize-loops => -C no-vectorize-loops
      * -Z no-vectorize-slp   => -C no-vectorize-slp
      * -Z soft-float         => -C soft-float
      * -Z gen-crate-map      => -C gen-crate-map
      * -Z prefer-dynamic     => -C prefer-dynamic
      * -Z no-integrated-as   => -C no-integrated-as
      
      As a bonus, this also promotes the -Z extra-debug-info flag to a first class -g
      or --debuginfo flag.
      
      * -Z debug-info         => removed
      * -Z extra-debug-info   => -g or --debuginfo
      
      Closes #9770
      Closes #12000
      d440a569
    • A
      Consolidate codegen-related compiler flags · 071ee962
      Alex Crichton 提交于
      Move them all behind a new -C switch. This migrates some -Z flags and some
      top-level flags behind this -C codegen option.
      
      The -C flag takes values of the form "-C name=value" where the "=value" is
      optional for some flags.
      
      Flags affected:
      
      * --llvm-args           => -C llvm-args
      * --passes              => -C passes
      * --ar                  => -C ar
      * --linker              => -C linker
      * --link-args           => -C link-args
      * --target-cpu          => -C target-cpu
      * --target-feature      => -C target-fature
      * --android-cross-path  => -C android-cross-path
      * --save-temps          => -C save-temps
      * --no-rpath            => -C no-rpath
      * -Z no-prepopulate     => -C no-prepopulate-passes
      * -Z no-vectorize-loops => -C no-vectorize-loops
      * -Z no-vectorize-slp   => -C no-vectorize-slp
      * -Z soft-float         => -C soft-float
      * -Z gen-crate-map      => -C gen-crate-map
      * -Z prefer-dynamic     => -C prefer-dynamic
      * -Z no-integrated-as   => -C no-integrated-as
      
      As a bonus, this also promotes the -Z extra-debug-info flag to a first class -g
      or --debuginfo flag.
      
      * -Z debug-info         => removed
      * -Z extra-debug-info   => -g or --debuginfo
      
      Closes #9770
      Closes #12000
      071ee962
    • B
      auto merge of #12143 : brson/rust/swap, r=alexcrichton · f3a87a7f
      bors 提交于
      Thinking about swap as an example of unsafe programming. This cleans it up a bit. It also removes type parametrization over `RawPtr` from the memcpy functions to make this compile.
      f3a87a7f
    • B
      auto merge of #12136 : alexcrichton/rust/issue-12123, r=brson · 5bad63ce
      bors 提交于
      Closes #12123
      5bad63ce
    • B
      auto merge of #12134 : FlaPer87/rust/temporary-conditions, r=nikomatsakis · 47e14456
      bors 提交于
      Closes #12033
      
      IR Before:
      
      ```llvm
      normal-return:                                    ; preds = %while_body
        %113 = load i64* %i
        %114 = sub i64 %113, 1
        store i64 %114, i64* %i
        br label %while_cond
      ```
      
      IR After:
      
      ```llvm
      normal-return:                                    ; preds = %while_cond
        store i8 %11, i8* %0
        %18 = load i8* %0, !range !0
        call void @_ZN9Temporary9glue_drop19he4ee51d3c03b9cf4ajE(%struct.Temporary* %10)
        %19 = bitcast %struct.Temporary* %10 to i8*
        call void @_ZN2rt11global_heap14exchange_free_19h4fabdf24a2250163aj4v0.0E(i8* %19)
        %20 = icmp ne i8 %18, 0
        br i1 %20, label %while_body, label %while_exit
      ```
      47e14456
    • B
      auto merge of #12131 : brunoabinader/rust/list-find-doc-typo, r=alexcrichton · d0affa5c
      bors 提交于
      Replace ```v``` with ```ls```.
      d0affa5c
    • B
      auto merge of #12060 : chromatic/rust/enum_tutorial_improvement, r=alexcrichton · cf243f9b
      bors 提交于
      This version starts with the simplest case and builds on it. I believe it flows better.
      cf243f9b
    • C
      Rearranged enum section of tutorial for clarity. · e30fd306
      chromatic 提交于
      This version starts with the simple case and builds on it.
      e30fd306