Skip to content

Commit 9b39705

Browse files
committed
Revert unexpected_cfgs from expect to allow
The unexpected_cfgs are not being triggered in Bazel builds because we have not yet wired up `--check-cfg` in those targets.
1 parent 837fa68 commit 9b39705

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gen/build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
//! ```
4646
4747
#![doc(html_root_url = "https://docs.rs/cxx-build/1.0.179")]
48-
#![cfg_attr(not(check_cfg), expect(unexpected_cfgs))]
48+
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
4949
#![allow(
5050
clippy::cast_sign_loss,
5151
clippy::default_trait_access,

gen/cmd/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(not(check_cfg), expect(unexpected_cfgs))]
1+
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
22
#![allow(
33
clippy::cast_sign_loss,
44
clippy::default_trait_access,

gen/lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#![doc(html_root_url = "https://docs.rs/cxx-gen/0.7.179")]
1111
#![deny(missing_docs)]
1212
#![expect(dead_code)]
13-
#![cfg_attr(not(check_cfg), expect(unexpected_cfgs))]
13+
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
1414
#![allow(
1515
clippy::cast_sign_loss,
1616
clippy::default_trait_access,

0 commit comments

Comments
 (0)