@@ -1793,7 +1793,7 @@ impl<'a, K, V, S> RawVacantEntryMut<'a, K, V, S> {
17931793#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
17941794impl < K , V , S > Debug for RawEntryBuilderMut < ' _ , K , V , S > {
17951795 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1796- f. debug_struct ( "RawEntryBuilder" ) . finish ( )
1796+ f. debug_struct ( "RawEntryBuilder" ) . finish_non_exhaustive ( )
17971797 }
17981798}
17991799
@@ -1813,21 +1813,21 @@ impl<K: Debug, V: Debug, S> Debug for RawOccupiedEntryMut<'_, K, V, S> {
18131813 f. debug_struct ( "RawOccupiedEntryMut" )
18141814 . field ( "key" , self . key ( ) )
18151815 . field ( "value" , self . get ( ) )
1816- . finish ( )
1816+ . finish_non_exhaustive ( )
18171817 }
18181818}
18191819
18201820#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
18211821impl < K , V , S > Debug for RawVacantEntryMut < ' _ , K , V , S > {
18221822 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1823- f. debug_struct ( "RawVacantEntryMut" ) . finish ( )
1823+ f. debug_struct ( "RawVacantEntryMut" ) . finish_non_exhaustive ( )
18241824 }
18251825}
18261826
18271827#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
18281828impl < K , V , S > Debug for RawEntryBuilder < ' _ , K , V , S > {
18291829 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1830- f. debug_struct ( "RawEntryBuilder" ) . finish ( )
1830+ f. debug_struct ( "RawEntryBuilder" ) . finish_non_exhaustive ( )
18311831 }
18321832}
18331833
@@ -1867,7 +1867,10 @@ pub struct OccupiedEntry<'a, K: 'a, V: 'a> {
18671867#[ stable( feature = "debug_hash_map" , since = "1.12.0" ) ]
18681868impl < K : Debug , V : Debug > Debug for OccupiedEntry < ' _ , K , V > {
18691869 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1870- f. debug_struct ( "OccupiedEntry" ) . field ( "key" , self . key ( ) ) . field ( "value" , self . get ( ) ) . finish ( )
1870+ f. debug_struct ( "OccupiedEntry" )
1871+ . field ( "key" , self . key ( ) )
1872+ . field ( "value" , self . get ( ) )
1873+ . finish_non_exhaustive ( )
18711874 }
18721875}
18731876
@@ -1903,7 +1906,7 @@ impl<K: Debug, V: Debug> Debug for OccupiedError<'_, K, V> {
19031906 . field ( "key" , self . entry . key ( ) )
19041907 . field ( "old_value" , self . entry . get ( ) )
19051908 . field ( "new_value" , & self . value )
1906- . finish ( )
1909+ . finish_non_exhaustive ( )
19071910 }
19081911}
19091912
0 commit comments