1. 29 10月, 2014 11 次提交
    • B
      auto merge of #18365 : bjz/rust/token, r=alexcrichton · 3bc54537
      bors 提交于
      [breaking-change]
      
      (for syntax-extensions)
      
      - Token variant identifiers have been converted to PascalCase for consistency with Rust coding standards
      - Some free-functions in `syntax::token` have been converted to methods on `syntax::token::Token`:
          - `can_begin_expr`         -> `Token::can_begin_expr`
          - `close_delimiter_for`    -> `Token::get_close_delimiter`
          - `is_lit`                 -> `Token::is_lit`
          - `is_ident`               -> `Token::is_ident`
          - `is_path`                -> `Token::is_path`
          - `is_plain_ident`         -> `Token::is_plain_ident`
          - `is_lifetime`            -> `Token::is_lifetime`
          - `is_mutability`          -> `Token::is_mutability`
          - `to_binop`               -> `Token::to_binop`
          - `is_keyword`             -> `Token::is_keyword`
          - `is_any_keyword`         -> `Token:is_any_keyword`
          - `is_strict_keyword`      -> `Token::is_strict_keyword`
          - `is_reserved_keyword`    -> `Token::is_reserved_keyword`
          - `mtwt_token_eq`          -> `Token::mtwt_eq`
      - `token::Ident` now takes an enum instead of a boolean for clarity
      - `token::{to_string, binop_to_string}` were moved to `pprust::{token_to_string, binop_to_string}`
      3bc54537
    • B
      auto merge of #18340 : chastell/rust/guide_closures_fixes, r=steveklabnik · 124508de
      bors 提交于
      Some minor wording fixes to the Closures chapter; my brain tripped a few times when reading it, so I tried to come up with something a bit smoother. I’m not a native speaker, so please do review this critically.
      124508de
    • B
      auto merge of #18410 : thestinger/rust/revert-parallel, r=alexcrichton · 1effc9e1
      bors 提交于
      This reverts commit c245c5bb.
      
      Parallel code generation generates invalid code for librand, which is
      caught by recent versions of binutils.
      1effc9e1
    • D
      Revert "enable parallel codegen by default" · 79723a3e
      Daniel Micay 提交于
      This reverts commit c245c5bb.
      
      Parallel code generation generates invalid code for librand, which is
      caught by recent versions of binutils.
      79723a3e
    • B
      auto merge of #17603 : jakub-/rust/ty_bot, r=nikomatsakis · 1652a1f2
      bors 提交于
      We now instead use a fresh variable for expressions that diverge.
      
      Closes #14973.
      Closes #13847.
      
      [Work in progress]
      
      cc @nikomatsakis
      1652a1f2
    • B
      auto merge of #18291 : japaric/rust/dstify, r=aturon · 98bbccf2
      bors 提交于
      This PR changes the signature of several methods from `foo(self, ...)` to `foo(&self, ...)`/`foo(&mut self, ...)`, but there is no breakage of the usage of these methods due to the autoref nature of `method.call()`s. This PR also removes the lifetime parameter from some traits (`Trait<'a>` -> `Trait`). These changes break any use of the extension traits for generic programming, but those traits are not meant to be used for generic programming in the first place. In the whole rust distribution there was only one misuse of a extension trait as a bound, which got corrected (the bound was unnecessary and got removed) as part of this PR.
      
      I've kept the commits as small and self-contained as possible for reviewing sake, but I can squash them when the review is over.
      
      See this [table] to get an idea of what's left to be done. I've already DSTified [`Show`][show] and I'm working on `Hash`, but bootstrapping those changes seem to require a more recent snapshot (#18259 does the trick)
      
      r? @aturon 
      cc #16918 
      
      [show]: https://github.com/japaric/rust/commits/show
      [table]: https://docs.google.com/spreadsheets/d/1MZ_iSNuzsoqeS-mtLXnj9m0hBYaH5jI8k9G_Ud8FT5g/edit?usp=sharing
      98bbccf2
    • B
      auto merge of #17851 : brson/rust/rustup, r=alexcrichton · 3fa2b565
      bors 提交于
      Just to have it somewhere to point to. Updating it will not
      automatically update the one on static.rust-lang.org.
      3fa2b565
    • J
      Address review comments · 6d2080c4
      Jakub Bukaj 提交于
      6d2080c4
    • B
      Long lines · 9106546a
      Brian Anderson 提交于
      9106546a
    • J
      Update tests with the new error messages · 7f523e72
      Jakub Bukaj 提交于
      7f523e72
    • J
      Remove ty_bot from the type system · cca84e9e
      Jakub Bukaj 提交于
      We now instead use a fresh variable for expressions that diverge.
      cca84e9e
  2. 28 10月, 2014 29 次提交