1. 30 7月, 2016 7 次提交
    • M
      Rollup merge of #35090 - michaelwoerister:get-rid-of-id-visitor, r=eddyb · e649a253
      Manish Goregaokar 提交于
      intravisit: Fold functionality of IdVisitor into the regular Visitor.
      e649a253
    • M
      Rollup merge of #35080 - jonathandturner:fix_numeric_expected_found, r=nikomatsakis · 26e22b8e
      Manish Goregaokar 提交于
      Rename _ to {integer} and {float} for unknown numeric types
      
      This PR renames _ to {integer} or {float} for unknown numeric types, to help people parse error messages that have numeric types that haven't been nailed down.
      
      Example:
      ```rust
      fn main() {
          let x: String = 4;
      }
      ```
      
      Before:
      ```
      error[E0308]: mismatched types
       --> quicktest.rs:2:21
        |
      2 |     let x: String = 4;
        |                     ^ expected struct `std::string::String`, found integral variable
        |
        = note: expected type `std::string::String`
        = note:    found type `_`
      
      error: aborting due to previous error
      ```
      
      after:
      ```
      error[E0308]: mismatched types
       --> quicktest.rs:2:21
        |
      2 |     let x: String = 4;
        |                     ^ expected struct `std::string::String`, found integral variable
        |
        = note: expected type `std::string::String`
        = note:    found type `{integer}`
      
      error: aborting due to previous error
      ```
      ```
      26e22b8e
    • M
      Rollup merge of #35063 - jseyfried:avoid_importing_inaccessible_names, r=nrc · 8c6421fb
      Manish Goregaokar 提交于
      resolve: Exclude inaccessible names from single imports
      
      If a single import resolves to an inaccessible name in some but not all namespaces, avoid importing the name in the inaccessible namespaces.
      
      Currently, the inaccessible namespaces are imported but cause a privacy error when used.
      
      r? @nrc
      8c6421fb
    • M
      Rollup merge of #35058 - jethrogb:no_panic_abs, r=alexcrichton · 62346102
      Manish Goregaokar 提交于
      Add non-panicking abs() functions to all signed integer types.
      
      Currently, calling abs() on one of the signed integer types might panic (in
      debug mode at least) because the absolute value of the largest negative value
      can not be represented in that signed type. Unlike all other integer
      operations, there is currently not a non-panicking version on this function.
      This seems to just be an oversight in the design, therefore just adding it now.
      62346102
    • M
      Rollup merge of #35049 - knight42:add-test, r=alexcrichton · 96e39727
      Manish Goregaokar 提交于
      Add a test for AddAssign on String
      
      Fix #35047
      96e39727
    • B
      Auto merge of #35032 - vadimcn:rusty-ehabi, r=alexcrichton · 2ad98a0b
      bors 提交于
      Implement ARM personality routine in Rust.
      
      Remove the `eh_personality_catch` lang item.
      Use a simplified version of `cfg_if!` in libunwind.
      
      Closes #34786
      2ad98a0b
    • B
      Auto merge of #34842 - cgswords:attr_enc, r=nrc · f164cf5d
      bors 提交于
      Better attribute and metaitem encapsulation throughout the compiler
      
      This PR refactors most (hopefully all?) of the `MetaItem` interactions outside of `libsyntax` (and a few inside) to interact with MetaItems through the provided traits instead of directly creating / destruct / matching against them. This is a necessary first step to eventually converting `MetaItem`s to internally use `TokenStream` representations (which will make `MetaItem` interactions much nicer for macro writers once the new macro system is in place).
      
      r? @nrc
      f164cf5d
  2. 29 7月, 2016 25 次提交
  3. 28 7月, 2016 8 次提交