1. 22 7月, 2014 20 次提交
  2. 21 7月, 2014 5 次提交
  3. 20 7月, 2014 15 次提交
    • B
      auto merge of #15803 : omp/rust/master, r=alexcrichton · 8859df7f
      bors 提交于
      Fix small typo in guide.
      8859df7f
    • B
      auto merge of #15797 : brson/rust/taskstab, r=alexcrichton · e6b28f9a
      bors 提交于
      Summary:
      
      * alloc::rc module stable
      * Rc type stable
      * Functions relating to weak references experimental
      * core::cmp module stable
      * PartialEq/Eq/PartialOrd/Ord unstable because trait reform will make them change again
      * Equiv experimental because there may be better sol'ns
      * lexical_ordering deprecated because it can be done trivially with the Ord trait
      * min/max stable
      * std::task module stable
      * TaskBuilder::stdout/stderr experimental because we aren't certain we want to configure the environment this way
      * try_future experimental because Future is experimental
      * try unstable because the error type might change
      * deschedule/failing unstable
      
      The major thing I did differently than previously-discussed is that I made `try` experimental: there's been discussion that the error type `Box<Any + Send>` is not sufficient.
      
      
      Per https://github.com/rust-lang/meeting-minutes/blob/master/Meeting-API-review-2014-07-16.md.
      e6b28f9a
    • S
      small typo · 343a52f6
      Steve Klabnik 提交于
      343a52f6
    • J
      Implement new mod import sugar · 4b9bc2e8
      Jakub Wieczorek 提交于
      Implements RFC #168.
      4b9bc2e8
    • B
      auto merge of #15785 : treeman/rust/fix-15780, r=alexcrichton · 4f55b52b
      bors 提交于
      Fix for #15780.
      4f55b52b
    • B
      auto merge of #15784 : dotdash/rust/unreach, r=luqmana · 50481f55
      bors 提交于
      `call_visit_glue` is only ever called from trans_intrinsic, and the
      block won't be unreachable there. Also, the comment doesn't make sense
      anymore. When the code was introduced in 38fee952 the function was
      also responsible for the cleanup glue, which is no longer the case.
      
      While we're at it, also fixed the debug message to output the right
      function name.
      50481f55
    • P
      Correctly stringify! types and paths inside macros · 20df4cca
      Piotr Jawniak 提交于
      Closes #8709
      20df4cca
    • B
      auto merge of #15745 : treeman/rust/tutorial-fixup, r=steveklabnik · 320dbc18
      bors 提交于
      Simplify example in 5.2 to remove hidden `#[deriving(Show)]`. Traits haven't been introduced yet and now it's easier to just type in the code and expect it to work. Add in some examples for constructing the enum types. Explicitly expose `#![feature(struct_variant)]` in the code to make it more transparent, this bit me when I worked through the tutorial.
      
      Add references in chapter 8 to later chapters describing `Rc`, `Gc` and `Send`. This is a simple fix for #15293.
      
      Simplify vector indexing example in chapter 13 and removed hidden, unnecessary, code. Gave an example usage of the derived `Rand` trait in chapter 17.
      
      Removed references to removed 'extra' crate.
      320dbc18
    • B
      auto merge of #15776 : alexcrichton/rust/snapshots, r=huonw · 7d0a613d
      bors 提交于
      7d0a613d
    • A
      Register new snapshots · 707cf47a
      Alex Crichton 提交于
      707cf47a
    • B
      auto merge of #15767 : pcwalton/rust/lifetime-elision, r=nick29581 · 56fafe28
      bors 提交于
      This implements RFC 39. Omitted lifetimes in return values will now be
      inferred to more useful defaults, and an error is reported if a lifetime
      in a return type is omitted and one of the two lifetime elision rules
      does not specify what it should be.
      
      This primarily breaks two uncommon code patterns. The first is this:
      
          unsafe fn get_foo_out_of_thin_air() -> &Foo {
              ...
          }
      
      This should be changed to:
      
          unsafe fn get_foo_out_of_thin_air() -> &'static Foo {
              ...
          }
      
      The second pattern that needs to be changed is this:
      
          enum MaybeBorrowed<'a> {
              Borrowed(&'a str),
              Owned(String),
          }
      
          fn foo() -> MaybeBorrowed {
              Owned(format!("hello world"))
          }
      
      Change code like this to:
      
          enum MaybeBorrowed<'a> {
              Borrowed(&'a str),
              Owned(String),
          }
      
          fn foo() -> MaybeBorrowed<'static> {
              Owned(format!("hello world"))
          }
      
      Closes #15552.
      
      [breaking-change]
      
      r? @nick29581
      56fafe28
    • B
      auto merge of #15764 : alexcrichton/rust/issue-15761, r=kballard · 5e0a597a
      bors 提交于
      This branch of try_send() just forgot to wake up any receiver waiting for data.
      
      Closes #15761
      5e0a597a
    • B
      auto merge of #15746 : steveklabnik/rust/docs_random, r=alexcrichton · d8652de9
      bors 提交于
      This is now linked to in the guide, so I want to make sure it's good. This
      adds a bit more explanation, and brings usage in line with current good style.
      d8652de9
    • B
      auto merge of #15650 : jakub-/rust/patterns-statics, r=pcwalton · 8672a235
      bors 提交于
      This is accomplished by rewriting static expressions into equivalent patterns.
      This way, patterns referencing static variables can both participate
      in exhaustiveness analysis as well as be compiled down into the appropriate
      branch of the decision trees that match expressions are codegened to.
      
      Fixes #6533.
      Fixes #13626.
      Fixes #13731.
      Fixes #14576.
      Fixes #15393.
      8672a235
    • D
      a2467b94