diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2018-05-25 16:03:50 -0400 |
|---|---|---|
| committer | Jonathan Behrens <fintelia@gmail.com> | 2018-09-05 12:10:09 -0400 |
| commit | 14ee4e468d3aba03ff42e90e47d6def6b6d40edd (patch) | |
| tree | 9ac9b6d5af4474ae5a81bff344070dc66becfc98 /src | |
| parent | 9c566e64faf66603a76b3f17793c7dad8e64fdab (diff) | |
| download | rust-14ee4e468d3aba03ff42e90e47d6def6b6d40edd.tar.gz rust-14ee4e468d3aba03ff42e90e47d6def6b6d40edd.zip | |
fixup Debug bounds
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 328962af33e..04ffcfc0c27 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -2287,7 +2287,7 @@ impl<'a, K, V> Debug for RawEntryBuilderHashed<'a, K, V> { } #[unstable(feature = "hash_raw_entry", issue = "42069")] -impl<'a, K, V> Debug for RawEntry<'a, K, V> { +impl<'a, K: Debug, V: Debug> Debug for RawEntry<'a, K, V> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RawEntry::Vacant(ref v) => { @@ -2305,7 +2305,7 @@ impl<'a, K, V> Debug for RawEntry<'a, K, V> { } #[unstable(feature = "hash_raw_entry", issue = "42069")] -impl<'a, K, V> Debug for RawOccupiedEntry<'a, K, V> { +impl<'a, K: Debug, V: Debug> Debug for RawOccupiedEntry<'a, K, V> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("RawOccupiedEntry") .field("key", self.key()) |
