diff options
| author | bors <bors@rust-lang.org> | 2017-09-12 21:39:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-12 21:39:08 +0000 |
| commit | 2fdccaffe632e316c43224d0fae6fba903333aa3 (patch) | |
| tree | 8c4b986ac2c0e210e943e60146ada289396b6a8a /src/rustllvm/RustWrapper.cpp | |
| parent | dd08c30703d052205a68ae34331eea464178cd99 (diff) | |
| parent | 143e2dcd5ce3a7ba5953378cde0f2850850d6e9f (diff) | |
| download | rust-2fdccaffe632e316c43224d0fae6fba903333aa3.tar.gz rust-2fdccaffe632e316c43224d0fae6fba903333aa3.zip | |
Auto merge of #44015 - kennytm:hasher, r=alexcrichton
impl Hasher for {&mut Hasher, Box<Hasher>}
**Rationale:** The `Hash` trait has `fn hash<H: Hasher>(&self, state: &mut H)`, which can only accept a `Sized` hasher, even if the `Hasher` trait is object-safe. We cannot retroactively add the `?Sized` bound without breaking stability, thus implementing `Hasher` to a trait object reference is the next best solution.
**Warning:** These `impl` are insta-stable, and should need an FCP. I don't think a full RFC is necessary.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
