Skip to content

Commit

Permalink
allow unexpected_cfgs
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 6, 2024
1 parent 1256fbe commit 0b40c32
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libs/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
*/

#![doc(html_no_source)]
#![allow(non_snake_case)]
#![allow(non_snake_case, unexpected_cfgs)]
#![cfg_attr(windows_debugger_visualizer, debugger_visualizer(natvis_file = "../.natvis"))]

extern crate self as windows_core;
Expand Down
1 change: 1 addition & 0 deletions crates/libs/result/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>
*/

#![allow(unexpected_cfgs)]
#![cfg_attr(
windows_debugger_visualizer,
debugger_visualizer(natvis_file = "../.natvis")
Expand Down
1 change: 1 addition & 0 deletions crates/libs/targets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
*/

#![no_std]
#![allow(unexpected_cfgs)]

/// Defines an external function to import.
#[cfg(all(windows_raw_dylib, target_arch = "x86"))]
Expand Down
2 changes: 2 additions & 0 deletions crates/tests/calling_convention/tests/sys.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use windows_sys::{
core::*, Win32::Foundation::*, Win32::Networking::Ldap::*, Win32::System::SystemInformation::*,
Win32::UI::WindowsAndMessaging::*,
Expand Down
2 changes: 2 additions & 0 deletions crates/tests/calling_convention/tests/win.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use windows::{
Win32::Foundation::*, Win32::Networking::Ldap::*, Win32::System::SystemInformation::*,
};
Expand Down
1 change: 1 addition & 0 deletions crates/tests/debugger_visualizer/tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(unexpected_cfgs)]
#![cfg(windows_debugger_visualizer)]

use debugger_test::*;
Expand Down

0 comments on commit 0b40c32

Please sign in to comment.