Skip to content

Commit 5d1a254

Browse files
authored
Fix the check-cfg workflow (#2676)
* Fix unused cfg attributes * Fix check-cfg workflow
1 parent 89a84f6 commit 5d1a254

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/bindgen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
override: true
239239

240240
- name: Check cfg
241-
run: cargo check -Z unstable-options -Z check-cfg=features
241+
run: cargo check -Z unstable-options -Z check-cfg
242242

243243
test-book:
244244
runs-on: ubuntu-latest

bindgen/ir/item.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ pub(crate) trait ItemAncestors {
9898
fn ancestors<'a>(&self, ctx: &'a BindgenContext) -> ItemAncestorsIter<'a>;
9999
}
100100

101-
#[cfg(__testing_only_extra_assertions)]
101+
#[cfg(feature = "__testing_only_extra_assertions")]
102102
type DebugOnlyItemSet = ItemSet;
103103

104-
#[cfg(not(__testing_only_extra_assertions))]
104+
#[cfg(not(feature = "__testing_only_extra_assertions"))]
105105
struct DebugOnlyItemSet;
106106

107-
#[cfg(not(__testing_only_extra_assertions))]
107+
#[cfg(not(feature = "__testing_only_extra_assertions"))]
108108
impl DebugOnlyItemSet {
109109
fn new() -> Self {
110110
DebugOnlyItemSet

0 commit comments

Comments
 (0)