@@ -16,7 +16,8 @@ pub trait MetadataExt {
1616 ///
1717 /// # Examples
1818 ///
19- /// ```no_run
19+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
20+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
2021 /// use std::fs;
2122 /// use std::io;
2223 /// use std::os::hurd::fs::MetadataExt;
@@ -33,7 +34,8 @@ pub trait MetadataExt {
3334 ///
3435 /// # Examples
3536 ///
36- /// ```no_run
37+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
38+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
3739 /// use std::fs;
3840 /// use std::io;
3941 /// use std::os::hurd::fs::MetadataExt;
@@ -50,7 +52,8 @@ pub trait MetadataExt {
5052 ///
5153 /// # Examples
5254 ///
53- /// ```no_run
55+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
56+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
5457 /// use std::fs;
5558 /// use std::io;
5659 /// use std::os::hurd::fs::MetadataExt;
@@ -67,7 +70,8 @@ pub trait MetadataExt {
6770 ///
6871 /// # Examples
6972 ///
70- /// ```no_run
73+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
74+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
7175 /// use std::fs;
7276 /// use std::io;
7377 /// use std::os::hurd::fs::MetadataExt;
@@ -84,7 +88,8 @@ pub trait MetadataExt {
8488 ///
8589 /// # Examples
8690 ///
87- /// ```no_run
91+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
92+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
8893 /// use std::fs;
8994 /// use std::io;
9095 /// use std::os::hurd::fs::MetadataExt;
@@ -101,7 +106,8 @@ pub trait MetadataExt {
101106 ///
102107 /// # Examples
103108 ///
104- /// ```no_run
109+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
110+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
105111 /// use std::fs;
106112 /// use std::io;
107113 /// use std::os::hurd::fs::MetadataExt;
@@ -118,7 +124,8 @@ pub trait MetadataExt {
118124 ///
119125 /// # Examples
120126 ///
121- /// ```no_run
127+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
128+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
122129 /// use std::fs;
123130 /// use std::io;
124131 /// use std::os::hurd::fs::MetadataExt;
@@ -138,7 +145,8 @@ pub trait MetadataExt {
138145 ///
139146 /// # Examples
140147 ///
141- /// ```no_run
148+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
149+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
142150 /// use std::fs;
143151 /// use std::io;
144152 /// use std::os::hurd::fs::MetadataExt;
@@ -155,7 +163,8 @@ pub trait MetadataExt {
155163 ///
156164 /// # Examples
157165 ///
158- /// ```no_run
166+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
167+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
159168 /// use std::fs;
160169 /// use std::io;
161170 /// use std::os::hurd::fs::MetadataExt;
@@ -174,7 +183,8 @@ pub trait MetadataExt {
174183 ///
175184 /// # Examples
176185 ///
177- /// ```no_run
186+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
187+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
178188 /// use std::fs;
179189 /// use std::io;
180190 /// use std::os::hurd::fs::MetadataExt;
@@ -191,7 +201,8 @@ pub trait MetadataExt {
191201 ///
192202 /// # Examples
193203 ///
194- /// ```no_run
204+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
205+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
195206 /// use std::fs;
196207 /// use std::io;
197208 /// use std::os::hurd::fs::MetadataExt;
@@ -210,7 +221,8 @@ pub trait MetadataExt {
210221 ///
211222 /// # Examples
212223 ///
213- /// ```no_run
224+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
225+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
214226 /// use std::fs;
215227 /// use std::io;
216228 /// use std::os::hurd::fs::MetadataExt;
@@ -227,7 +239,8 @@ pub trait MetadataExt {
227239 ///
228240 /// # Examples
229241 ///
230- /// ```no_run
242+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
243+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
231244 /// use std::fs;
232245 /// use std::io;
233246 /// use std::os::hurd::fs::MetadataExt;
@@ -246,7 +259,8 @@ pub trait MetadataExt {
246259 ///
247260 /// # Examples
248261 ///
249- /// ```no_run
262+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
263+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
250264 /// use std::fs;
251265 /// use std::io;
252266 /// use std::os::hurd::fs::MetadataExt;
@@ -263,7 +277,8 @@ pub trait MetadataExt {
263277 ///
264278 /// # Examples
265279 ///
266- /// ```no_run
280+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
281+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
267282 /// use std::fs;
268283 /// use std::io;
269284 /// use std::os::hurd::fs::MetadataExt;
@@ -280,7 +295,8 @@ pub trait MetadataExt {
280295 ///
281296 /// # Examples
282297 ///
283- /// ```no_run
298+ #[ cfg_attr( target_os = "hurd" , doc = "```no_run" ) ]
299+ #[ cfg_attr( not( target_os = "hurd" ) , doc = "```ignore (needs hurd)" ) ]
284300 /// use std::fs;
285301 /// use std::io;
286302 /// use std::os::hurd::fs::MetadataExt;
0 commit comments