1. 27 1月, 2018 4 次提交
  2. 26 1月, 2018 4 次提交
  3. 25 1月, 2018 18 次提交
  4. 24 1月, 2018 10 次提交
    • G
      Few fixes for multiple themes support feature · e78f1392
      Guillaume Gomez 提交于
      e78f1392
    • B
      Auto merge of #47300 - remexre:duration-constructors-as-const-fns, r=alexcrichton · a0dcecff
      bors 提交于
      Makes the constructors of Duration const fns.
      
      This affects `Duration::new`, `Duration::from_secs`, `Duration::from_millis`, `Duration::from_micros`, and `Duration::from_nanos`.
      a0dcecff
    • R
      Fix into() cast paren check precedence · 65b1e86a
      Ryan Cumming 提交于
      As discussed in #47699 the logic for determining if an expression needs
      parenthesis when suggesting an `.into()` cast is incorrect. Two broken
      examples from nightly are:
      
      ```
      error[E0308]: mismatched types
       --> main.rs:4:10
        |
      4 |     test(foo as i8);
        |          ^^^^^^^^^ expected i32, found i8
      help: you can cast an `i8` to `i32`, which will sign-extend the source value
        |
      4 |     test(foo as i8.into());
        |
      ```
      
      ```
      error[E0308]: mismatched types
       --> main.rs:4:10
        |
      4 |     test(*foo);
        |          ^^^^ expected i32, found i8
      help: you can cast an `i8` to `i32`, which will sign-extend the source value
        |
      4 |     test(*foo.into());
        |
      ```
      
      As suggested by @petrochenkov switch the precedence check to
      PREC_POSTFIX. This catches both `as` and unary operators. Fixes #47699.
      65b1e86a
    • E
      Remove workarounds for cc 1.0.3. · 583b382d
      Ed Schouten 提交于
      Now that the Rust codebase depends on cc 1.0.4, there is no longer any
      need to specify a compiler for CloudABI manually. Cargo will
      automatically call into the right compiler executable.
      583b382d
    • B
      Auto merge of #47299 - cramertj:unsafe-placer, r=alexcrichton · 9758ff9c
      bors 提交于
      Make core::ops::Place an unsafe trait
      
      Consumers of `Place` would reasonably expect that the `pointer` function returns a valid pointer to memory that can actually be written to.
      9758ff9c
    • E
      Point at unknown lang item attribute · e6af9ebe
      Esteban Küber 提交于
      e6af9ebe
    • B
      Auto merge of #46931 - clarcharr:float_bits_core, r=alexcrichton · a538fe7c
      bors 提交于
      Expose float from_bits and to_bits in libcore.
      
      These methods have no dependencies on libm and thus should be offered in libcore.
      a538fe7c
    • B
      Auto merge of #45337 - Zoxc:gen-static, r=nikomatsakis · fdecb056
      bors 提交于
      Immovable generators
      
      This adds support for immovable generators which allow you to borrow local values inside generator across suspension points. These are declared using a `static` keyword:
      ```rust
      let mut generator = static || {
          let local = &Vec::new();
          yield;
          local.push(0i8);
      };
      generator.resume();
      
      // ERROR moving the generator after it has resumed would invalidate the interior reference
      // drop(generator);
      ```
      
      Region inference is no longer affected by the types stored in generators so the regions inside should be similar to other code (and unaffected by the presence of `yield` expressions). The borrow checker is extended to pick up the slack so interior references still result in errors for movable generators. This fixes #44197, #45259 and #45093.
      
      This PR depends on [PR #44917 (immovable types)](https://github.com/rust-lang/rust/pull/44917), I suggest potential reviewers ignore the first commit as it adds immovable types.
      fdecb056
    • R
      Remove similar test that does not run the result · 06d123d4
      ritiek 提交于
      06d123d4
    • B
      Auto merge of #47678 - kennytm:rollup, r=kennytm · 4e3901d3
      bors 提交于
      Rollup of 14 pull requests
      
      - Successful merges: #47423, #47425, #47440, #47541, #47549, #47554, #47558, #47610, #47635, #47655, #47661, #47662, #47667, #47672
      - Failed merges:
      4e3901d3
  5. 23 1月, 2018 4 次提交