@@ -1793,7 +1793,7 @@ impl<'a, K, V, S> RawVacantEntryMut<'a, K, V, S> {
1793
1793
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1794
1794
impl < K , V , S > Debug for RawEntryBuilderMut < ' _ , K , V , S > {
1795
1795
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1796
- f. debug_struct ( "RawEntryBuilder" ) . finish ( )
1796
+ f. debug_struct ( "RawEntryBuilder" ) . finish_non_exhaustive ( )
1797
1797
}
1798
1798
}
1799
1799
@@ -1813,21 +1813,21 @@ impl<K: Debug, V: Debug, S> Debug for RawOccupiedEntryMut<'_, K, V, S> {
1813
1813
f. debug_struct ( "RawOccupiedEntryMut" )
1814
1814
. field ( "key" , self . key ( ) )
1815
1815
. field ( "value" , self . get ( ) )
1816
- . finish ( )
1816
+ . finish_non_exhaustive ( )
1817
1817
}
1818
1818
}
1819
1819
1820
1820
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1821
1821
impl < K , V , S > Debug for RawVacantEntryMut < ' _ , K , V , S > {
1822
1822
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1823
- f. debug_struct ( "RawVacantEntryMut" ) . finish ( )
1823
+ f. debug_struct ( "RawVacantEntryMut" ) . finish_non_exhaustive ( )
1824
1824
}
1825
1825
}
1826
1826
1827
1827
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1828
1828
impl < K , V , S > Debug for RawEntryBuilder < ' _ , K , V , S > {
1829
1829
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1830
- f. debug_struct ( "RawEntryBuilder" ) . finish ( )
1830
+ f. debug_struct ( "RawEntryBuilder" ) . finish_non_exhaustive ( )
1831
1831
}
1832
1832
}
1833
1833
@@ -1867,7 +1867,10 @@ pub struct OccupiedEntry<'a, K: 'a, V: 'a> {
1867
1867
#[ stable( feature = "debug_hash_map" , since = "1.12.0" ) ]
1868
1868
impl < K : Debug , V : Debug > Debug for OccupiedEntry < ' _ , K , V > {
1869
1869
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 ( )
1871
1874
}
1872
1875
}
1873
1876
@@ -1903,7 +1906,7 @@ impl<K: Debug, V: Debug> Debug for OccupiedError<'_, K, V> {
1903
1906
. field ( "key" , self . entry . key ( ) )
1904
1907
. field ( "old_value" , self . entry . get ( ) )
1905
1908
. field ( "new_value" , & self . value )
1906
- . finish ( )
1909
+ . finish_non_exhaustive ( )
1907
1910
}
1908
1911
}
1909
1912
0 commit comments