@@ -78,7 +78,7 @@ cfg_docs! {
7878 /// # Ok(()) }) }
7979 /// ```
8080 pub fn file_type( & self ) -> FileType {
81- unimplemented! ( )
81+ unreachable! ( "this impl only appears in the rendered docs" )
8282 }
8383
8484 /// Returns `true` if this metadata is for a regular directory.
@@ -98,7 +98,7 @@ cfg_docs! {
9898 /// # Ok(()) }) }
9999 /// ```
100100 pub fn is_dir( & self ) -> bool {
101- unimplemented! ( )
101+ unreachable! ( "this impl only appears in the rendered docs" )
102102 }
103103
104104 /// Returns `true` if this metadata is for a regular file.
@@ -118,7 +118,7 @@ cfg_docs! {
118118 /// # Ok(()) }) }
119119 /// ```
120120 pub fn is_file( & self ) -> bool {
121- unimplemented! ( )
121+ unreachable! ( "this impl only appears in the rendered docs" )
122122 }
123123
124124 /// Returns the file size in bytes.
@@ -136,7 +136,7 @@ cfg_docs! {
136136 /// # Ok(()) }) }
137137 /// ```
138138 pub fn len( & self ) -> u64 {
139- unimplemented! ( )
139+ unreachable! ( "this impl only appears in the rendered docs" )
140140 }
141141
142142 /// Returns the permissions from this metadata.
@@ -154,7 +154,7 @@ cfg_docs! {
154154 /// # Ok(()) }) }
155155 /// ```
156156 pub fn permissions( & self ) -> Permissions {
157- unimplemented! ( )
157+ unreachable! ( "this impl only appears in the rendered docs" )
158158 }
159159
160160 /// Returns the last modification time.
@@ -177,7 +177,7 @@ cfg_docs! {
177177 /// # Ok(()) }) }
178178 /// ```
179179 pub fn modified( & self ) -> io:: Result <SystemTime > {
180- unimplemented! ( )
180+ unreachable! ( "this impl only appears in the rendered docs" )
181181 }
182182
183183 /// Returns the last access time.
@@ -200,7 +200,7 @@ cfg_docs! {
200200 /// # Ok(()) }) }
201201 /// ```
202202 pub fn accessed( & self ) -> io:: Result <SystemTime > {
203- unimplemented! ( )
203+ unreachable! ( "this impl only appears in the rendered docs" )
204204 }
205205
206206 /// Returns the creation time.
@@ -223,7 +223,7 @@ cfg_docs! {
223223 /// # Ok(()) }) }
224224 /// ```
225225 pub fn created( & self ) -> io:: Result <SystemTime > {
226- unimplemented! ( )
226+ unreachable! ( "this impl only appears in the rendered docs" )
227227 }
228228 }
229229}
0 commit comments