1. 06 1月, 2016 7 次提交
  2. 05 1月, 2016 3 次提交
  3. 04 1月, 2016 6 次提交
    • B
      Auto merge of #30690 - LawrenceWoodman:patch-2, r=steveklabnik · 543bb03d
      bors 提交于
      `fs::File` was being referenced without either calling via `std::fs::File` or by using `File` after having used `std::fs::File`.  Also `Path` was being referenced without first having used `std::path::Path`.
      543bb03d
    • L
      Add missing use statements · 0c3d6b46
      Lawrence Woodman 提交于
      fs::File was being referenced without either calling via std::fs::File or by using File after having used fs::File.  Also Path was being referenced without first having used std::path::Path.
      0c3d6b46
    • B
      Auto merge of #30651 - nagisa:mir-fix-equality-checks, r=eddyb · 191ff2d8
      bors 提交于
      This is not a fix to checks themselves per se (though we still use `Eq` MIR test instead of calling `PartialEq::eq`), but rather how we handle items we encounter in pattern position.
      
      Previously we would just call `PartialEq` with the constant and the matchee, but now we essentially inline the constant instead. E.g. these two snippets are functionally equivalent at MIR level:
      
      ```
      match val { Some(42) => true, _ => false }
      ```
      and
      ```
      const SECRET: Option<u8> = Some(42);
      match val { SECRET => true, _ => false }
      ```
      
      This approach also allows for more optimizations of matches. I.e. It can now exploit `SwitchInt` to switch on number inside a `Some` regardless of whether the value being an item or not.
      
      This is based on @tsion’s already approved PR so I could reuse the file for more tests.
      
      r? @EddyB
      cc @nikomatsakis @tsion
      191ff2d8
    • B
      Auto merge of #29732 - nathansizemore:master, r=steveklabnik · 99e59dec
      bors 提交于
      99e59dec
    • B
      Auto merge of #30677 - diwic:master, r=bluss · 8f11a9ef
      bors 提交于
      Obviously we can't remove the character one past the end of the String. And we can't today either - we'll just panic at char_at() instead - but if we're going to keep that assertion, we should at least have a correct assertion.
      8f11a9ef
    • B
      Auto merge of #29949 - fhahn:issue-21659-show-relevant-trait-impls, r=arielb1 · cae9267d
      bors 提交于
      This PR for #21659 uses `DefId.for_each_relevant_impl()` to show other possible implementations in the "trait not implemented" message.
      cae9267d
  4. 03 1月, 2016 9 次提交
  5. 02 1月, 2016 11 次提交
  6. 01 1月, 2016 4 次提交