1. 17 7月, 2014 7 次提交
    • P
      librustc: Implement the fully-expanded, UFCS form of explicit self. · 357d5cd9
      Patrick Walton 提交于
      This makes two changes to region inference: (1) it allows region
      inference to relate early-bound regions; and (2) it allows regions to be
      related before variance runs. The former is needed because there is no
      relation between the two regions before region substitution happens,
      while the latter is needed because type collection has to run before
      variance. We assume that, before variance is inferred, that lifetimes
      are invariant. This is a conservative overapproximation.
      
      This relates to #13885. This does not remove `~self` from the language
      yet, however.
      
      [breaking-change]
      357d5cd9
    • B
      auto merge of #15652 : nick29581/rust/vec_index, r=acrichto · 459ffc2a
      bors 提交于
      459ffc2a
    • N
      deprecate Vec::get · aa760a84
      Nick Cameron 提交于
      aa760a84
    • B
      auto merge of #15696 : Zoxc/rust/redzone, r=alexcrichton · d3adccda
      bors 提交于
      Disabling the redzone is required in x86-64's kernel mode to avoid interrupts trashing the stack.
      
      I'm not sure if decl_fn is the right place to tag all functions with noredzone. It might have interactions with external functions when linking with bitcode built without -C no-redzone although I see no reason to do that.
      
      I'm not sure how to write a test inspecting the bitcode output for noredzone attributes on all functions either.
      d3adccda
    • N
      Implement Index and IndexMut for Vec · b35d1a83
      Nick Cameron 提交于
      b35d1a83
    • B
      auto merge of #15667 : treeman/rust/set-doc, r=alexcrichton · 06c7ee9c
      bors 提交于
      Example code for HashSet, similar to the [HashMap example](http://doc.rust-lang.org/std/collections/hashmap/struct.HashMap.html).
      06c7ee9c
    • B
      auto merge of #15573 : michaelwoerister/rust/lldb-tests-rebased-09-Jul, r=alexcrichton · 175f113c
      bors 提交于
      This PR adds the LLDB autotests to the debuginfo test suite so I don't have to keep rebasing them locally. They are still disabled by default in `tests.mk`. One of the commits also contains a Python pretty printer which can make LLDB print values with Rust syntax. This was mainly added to deal with output format differences between LLDB versions but you can also use it for your normal LLDB debugging sessions.
      ```
      // The following LLDB commands will load and activate the Rust printers
      command script import ./src/etc/lldb_rust_formatters.py
      type summary add --no-value --python-function lldb_rust_formatters.print_val -x .* --category Rust
      type category enable Rust
      ```
      Expect some rough edges with these, they have not been tested apart from there use in the autotests...
      175f113c
  2. 16 7月, 2014 33 次提交