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/liballoc/lib.rs | |
| 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/liballoc/lib.rs')
| -rw-r--r-- | src/liballoc/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index dc64a787ae9..2845d349ae1 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -121,7 +121,7 @@ #![feature(unsize)] #![feature(allocator_internals)] -#![cfg_attr(not(test), feature(fused, fn_traits, placement_new_protocol, swap_with_slice))] +#![cfg_attr(not(test), feature(fused, fn_traits, placement_new_protocol, swap_with_slice, i128))] #![cfg_attr(test, feature(test, box_heap))] // Allow testing this library |
