Skip to content

Commit a93c7ab

Browse files
committed
Add #![allow(unexpected_cfgs)] in preparation of global --check-cfg
1 parent 08e1e67 commit a93c7ab

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

library/core/src/mem/maybe_uninit.rs

+1
Original file line numberDiff line numberDiff 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] }

library/std/src/os/windows/fs.rs

+3
Original file line numberDiff line numberDiff 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; }

0 commit comments

Comments
 (0)