File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -817,6 +817,7 @@ impl<T> MaybeUninit<T> {
817
817
/// ### Correct usage of this method:
818
818
///
819
819
/// ```rust
820
+ /// # #![allow(unexpected_cfgs)]
820
821
/// use std::mem::MaybeUninit;
821
822
///
822
823
/// # unsafe extern "C" fn initialize_buffer(buf: *mut [u8; 1024]) { *buf = [0; 1024] }
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ pub trait OpenOptionsExt {
158
158
/// # Examples
159
159
///
160
160
/// ```no_run
161
+ /// # #![allow(unexpected_cfgs)]
161
162
/// # #[cfg(for_demonstration_only)]
162
163
/// extern crate winapi;
163
164
/// # mod winapi { pub const FILE_FLAG_DELETE_ON_CLOSE: u32 = 0x04000000; }
@@ -195,6 +196,7 @@ pub trait OpenOptionsExt {
195
196
/// # Examples
196
197
///
197
198
/// ```no_run
199
+ /// # #![allow(unexpected_cfgs)]
198
200
/// # #[cfg(for_demonstration_only)]
199
201
/// extern crate winapi;
200
202
/// # mod winapi { pub const FILE_ATTRIBUTE_HIDDEN: u32 = 2; }
@@ -236,6 +238,7 @@ pub trait OpenOptionsExt {
236
238
/// # Examples
237
239
///
238
240
/// ```no_run
241
+ /// # #![allow(unexpected_cfgs)]
239
242
/// # #[cfg(for_demonstration_only)]
240
243
/// extern crate winapi;
241
244
/// # mod winapi { pub const SECURITY_IDENTIFICATION: u32 = 0; }
You can’t perform that action at this time.
0 commit comments