1. 01 11月, 2014 7 次提交
    • N
      Fix RustDoc bug · 060566f0
      Nick Cameron 提交于
      060566f0
    • N
      Rebasing and review changes · 2474d7d2
      Nick Cameron 提交于
      2474d7d2
    • N
      test · 318472be
      Nick Cameron 提交于
      318472be
    • N
      Cross crait inherant impls · 1397f990
      Nick Cameron 提交于
      1397f990
    • N
      Remove FnStyle from DefFn and DefStaticMethod · d416d16c
      Nick Cameron 提交于
      d416d16c
    • N
      Resolve methods called as functions and... · 4e7d86c0
      Nick Cameron 提交于
      ...defined in another crate.
      
      Fixes #18061
      4e7d86c0
    • B
      auto merge of #18440 : japaric/rust/hash, r=alexcrichton · 5e834243
      bors 提交于
      - The signature of the `*_equiv` methods of `HashMap` and similar structures have changed, and now require one less level of indirection. Change your code from:
      
      ``` rust
      hashmap.find_equiv(&"Hello");
      hashmap.find_equiv(&&[0u8, 1, 2]);
      ```
      
      to:
      
      ``` rust
      hashmap.find_equiv("Hello");
      hashmap.find_equiv(&[0u8, 1, 2]);
      ```
      
      - The generic parameter `T` of the `Hasher::hash<T>` method have become `Sized?`. Downstream code must add `Sized?` to that method in their implementations. For example:
      
      ``` rust
      impl Hasher<FnvState> for FnvHasher {
          fn hash<T: Hash<FnvState>>(&self, t: &T) -> u64 { /* .. */ }
      }
      ```
      
      must be changed to:
      
      ``` rust
      impl Hasher<FnvState> for FnvHasher {
          fn hash<Sized? T: Hash<FnvState>>(&self, t: &T) -> u64 { /* .. */ }
          //      ^^^^^^
      }
      ```
      
      [breaking-change]
      
      ---
      
      After review I'll squash the commits and update the commit message with the above paragraph.
      
      r? @aturon 
      cc #16918
      5e834243
  2. 31 10月, 2014 32 次提交
  3. 30 10月, 2014 1 次提交