Skip to content

Commit 8cdd992

Browse files
committed
fix: Use different test attribute
1 parent 4b7dadc commit 8cdd992

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

bindgen-tests/tests/expectations/tests/extern-fn-block-attrs-many.rs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/expectations/tests/extern-fn-block-attrs-wasm.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/expectations/tests/extern-fn-block-attrs.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// bindgen-flags: --extern-fn-block-attrs '#[cfg_attr(windows, link(name = "<name>", kind = "raw-dylib"))]' --extern-fn-block-attrs '#[cfg_attr(not(windows), link(name = "<name>"))]'
1+
// bindgen-flags: --extern-fn-block-attrs '#[allow(dead_code)]' --extern-fn-block-attrs '#[cfg_attr(not(windows), link(wasm_import_module = "test-module"))]'
22

33
void test_function();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// bindgen-flags: --extern-fn-block-attrs '#[cfg_attr(windows, link(name = "<name>", kind = "raw-dylib"))]' --wasm-import-module-name test-module
1+
// bindgen-flags: --extern-fn-block-attrs '#[allow(dead_code)]' --wasm-import-module-name test-module
22

33
void test_function();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// bindgen-flags: --extern-fn-block-attrs '#[cfg_attr(windows, link(name = "<name>", kind = "raw-dylib"))]'
1+
// bindgen-flags: --extern-fn-block-attrs '#[allow(dead_code)]'
22

33
void test_function();

0 commit comments

Comments
 (0)