1. 08 4月, 2014 3 次提交
  2. 07 4月, 2014 19 次提交
  3. 06 4月, 2014 18 次提交
    • B
      auto merge of #13345 : bjz/rust/irc, r=alexcrichton · d73bd64f
      bors 提交于
      This adds links to `#rust-gamedev`, `#rust-internals`, and `#rust-osdev`.
      d73bd64f
    • T
      Remove use of block comments in src/libstd/cmp.rs · 85129e21
      Tobias Bucher 提交于
      85129e21
    • B
      auto merge of #13340 : FlaPer87/rust/code-model, r=cmr · 02c81fe2
      bors 提交于
      Rust currently defaults to `RelocPIC` regardless. This patch adds a new
      codegen option that allows choosing different relocation-model. The
      available models are:
      
          - default (Use the target-specific default model)
          - static
          - pic
          - no-pic
      
      For a more detailed information use `llc --help`
      02c81fe2
    • T
      Add requirements of TotalEq and TotalOrd · cf83ff89
      Tobias Bucher 提交于
      Clarify that TotalEq needs an underlying equivalence relation and that TotalOrd
      needs a total ordering and specifically named the required (and sufficient)
      attributes.
      cf83ff89
    • F
      Add support for different relocation models · b78ac5b7
      Flavio Percoco 提交于
      Rust currently defaults to `RelocPIC` regardless. This patch adds a new
      codegen option that allows choosing different relocation-model. The
      available models are:
      
          - default (Use the target-specific default model)
          - static
          - pic
          - no-pic
      
      For a more detailed information use `llc --help`
      b78ac5b7
    • B
      auto merge of #13344 : eddyb/rust/kill-unboxed-vec, r=cmr · 4af69f20
      bors 提交于
      Removes the special `ty_unboxed_vec` type from the type system.
      It was previously used only during translating `~[T]`/`~str` allocation and drop glue.
      4af69f20
    • E
      rustc: remove ty_unboxed_vec. · 2d22243b
      Eduard Burtescu 提交于
      2d22243b
    • B
      auto merge of #13315 : alexcrichton/rust/libc, r=alexcrichton,me · f1f50565
      bors 提交于
      Rebasing of #12526 with a very obscure bug fixed on windows.
      f1f50565
    • B
      auto merge of #13268 : alexcrichton/rust/parse-closure, r=cmr · 667f82a7
      bors 提交于
      In summary these are some example transitions this change makes:
      
          'a ||       => ||: 'a
          proc:Send() => proc():Send
      
      The intended syntax for closures is to put the lifetime bound not at the front
      but rather in the list of bounds. Currently there is no official support in the
      AST for bounds that are not 'static, so this case is currently specially handled
      in the parser to desugar to what the AST is expecting. Additionally, this moves
      the bounds on procedures to the correct position, which is after the argument
      list.
      
      The current grammar for closures and procedures is:
      
          procedure := 'proc' [ '<' lifetime-list '>' ] '(' arg-list ')'
                              [ ':' bound-list ] [ '->' type ]
          closure := [ 'unsafe' ] ['<' lifetime-list '>' ] '|' arg-list '|'
                              [ ':' bound-list ] [ '->' type ]
          lifetime-list := lifetime | lifetime ',' lifetime-list
          arg-list := ident ':' type | ident ':' type ',' arg-list
          bound-list := bound | bound '+' bound-list
          bound := path | lifetime
      
      This does not currently handle the << ambiguity in `Option<<'a>||>`, I am
      deferring that to a later patch. Additionally, this removes the support for the
      obsolete syntaxes of ~fn and &fn.
      
      Closes #10553
      Closes #10767 
      Closes #11209
      Closes #11210
      Closes #11211
      667f82a7
    • A
      std: Ignore a flaky std::comm test · b5ef3afd
      Alex Crichton 提交于
      This test relies on the parent to be descheduled before the child sends its
      data. This has proved to be unreliable on libnative on the bots. It's a fairly
      trivial test regardless, so ignoring it for now won't lose much.
      b5ef3afd
    • A
      syntax: Tweak parsing lifetime bounds on closures · d1c584e4
      Alex Crichton 提交于
      In summary these are some example transitions this change makes:
      
          'a ||       => ||: 'a
          proc:Send() => proc():Send
      
      The intended syntax for closures is to put the lifetime bound not at the front
      but rather in the list of bounds. Currently there is no official support in the
      AST for bounds that are not 'static, so this case is currently specially handled
      in the parser to desugar to what the AST is expecting. Additionally, this moves
      the bounds on procedures to the correct position, which is after the argument
      list.
      
      The current grammar for closures and procedures is:
      
          procedure := 'proc' [ '<' lifetime-list '>' ] '(' arg-list ')'
                              [ ':' bound-list ] [ '->' type ]
          closure := [ 'unsafe' ] ['<' lifetime-list '>' ] '|' arg-list '|'
                              [ ':' bound-list ] [ '->' type ]
          lifetime-list := lifetime | lifetime ',' lifetime-list
          arg-list := ident ':' type | ident ':' type ',' arg-list
          bound-list := bound | bound '+' bound-list
          bound := path | lifetime
      
      This does not currently handle the << ambiguity in `Option<<'a>||>`, I am
      deferring that to a later patch. Additionally, this removes the support for the
      obsolete syntaxes of ~fn and &fn.
      
      Closes #10553
      Closes #10767
      Closes #11209
      Closes #11210
      Closes #11211
      d1c584e4
    • A
      std: Fix a doc example on io::signal · 137e648e
      Alex Crichton 提交于
      This also makes the listener struct sendable again by explicitly putting the
      Send bound on the relevant Rtio object.
      
      cc #13352
      137e648e
    • B
      auto merge of #13319 : alexcrichton/rust/rustdoc-fields, r=brson · 4e9e2590
      bors 提交于
      The calculation for whether a field is public or private was tweaked in #13184,
      but I forgot to update rustdoc.
      
      Closes #13310
      4e9e2590
    • A
      rustc: Pass --enable-long-section-names to gcc · 38f7a1b4
      Alex Crichton 提交于
      This was quite a curious bug on windows, and the details can be found in the
      comment I added to src/librustc/back/link.rs
      38f7a1b4
    • B
      name struct in "field `...` is private" error · d4b73a74
      Benjamin Herr 提交于
      d4b73a74
    • H
      fix kate syntax highlighting · c6e19ae9
      HeroesGrave 提交于
      c6e19ae9
    • B
      auto merge of #13260 : pnkfelix/rust/fsk-fix-13247, r=alexcrichton · 0651d279
      bors 提交于
      Fix #13247.
      
      r? @alexcrichton  (or anyone else, really).
      0651d279
    • B
      auto merge of #13112 : ktt3ja/rust/issue-13058, r=pnkfelix · b2b2bbb6
      bors 提交于
      Previously, Rebuilder did not visit type parameters when rebuilding
      generics and path, so in some cases the suggestion turns out to be
      erroneous.
      b2b2bbb6