File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 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> {
817817 /// ### Correct usage of this method:
818818 ///
819819 /// ```rust
820+ /// # #![allow(unexpected_cfgs)]
820821 /// use std::mem::MaybeUninit;
821822 ///
822823 /// # 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 {
158158 /// # Examples
159159 ///
160160 /// ```no_run
161+ /// # #![allow(unexpected_cfgs)]
161162 /// # #[cfg(for_demonstration_only)]
162163 /// extern crate winapi;
163164 /// # mod winapi { pub const FILE_FLAG_DELETE_ON_CLOSE: u32 = 0x04000000; }
@@ -195,6 +196,7 @@ pub trait OpenOptionsExt {
195196 /// # Examples
196197 ///
197198 /// ```no_run
199+ /// # #![allow(unexpected_cfgs)]
198200 /// # #[cfg(for_demonstration_only)]
199201 /// extern crate winapi;
200202 /// # mod winapi { pub const FILE_ATTRIBUTE_HIDDEN: u32 = 2; }
@@ -236,6 +238,7 @@ pub trait OpenOptionsExt {
236238 /// # Examples
237239 ///
238240 /// ```no_run
241+ /// # #![allow(unexpected_cfgs)]
239242 /// # #[cfg(for_demonstration_only)]
240243 /// extern crate winapi;
241244 /// # mod winapi { pub const SECURITY_IDENTIFICATION: u32 = 0; }
You can’t perform that action at this time.
0 commit comments