Skip to content

Commit

Permalink
Fix the check-cfg workflow (#2676)
Browse files Browse the repository at this point in the history
* Fix unused cfg attributes

* Fix check-cfg workflow
  • Loading branch information
pvdrz authored Nov 1, 2023
1 parent 89a84f6 commit 5d1a254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ jobs:
override: true

- name: Check cfg
run: cargo check -Z unstable-options -Z check-cfg=features
run: cargo check -Z unstable-options -Z check-cfg

test-book:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions bindgen/ir/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ pub(crate) trait ItemAncestors {
fn ancestors<'a>(&self, ctx: &'a BindgenContext) -> ItemAncestorsIter<'a>;
}

#[cfg(__testing_only_extra_assertions)]
#[cfg(feature = "__testing_only_extra_assertions")]
type DebugOnlyItemSet = ItemSet;

#[cfg(not(__testing_only_extra_assertions))]
#[cfg(not(feature = "__testing_only_extra_assertions"))]
struct DebugOnlyItemSet;

#[cfg(not(__testing_only_extra_assertions))]
#[cfg(not(feature = "__testing_only_extra_assertions"))]
impl DebugOnlyItemSet {
fn new() -> Self {
DebugOnlyItemSet
Expand Down

0 comments on commit 5d1a254

Please sign in to comment.