Skip to content

Commit a01b701

Browse files
committed
rust: bindgen: skip kunit_try_catch
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 851ab2f commit a01b701

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/bindgen_parameters

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
--opaque-type arch_lbr_state
66
--opaque-type local_apic
77

8+
# `try` is a reserved keyword since Rust 2018; solved in `bindgen` v0.59.2,
9+
# commit 2aed6b021680 ("context: Escape the try keyword properly").
10+
--opaque-type kunit_try_catch
11+
812
# If SMP is disabled, `arch_spinlock_t` is defined as a ZST which triggers a Rust
913
# warning. We don't need to peek into it anyway.
1014
--opaque-type spinlock

0 commit comments

Comments
 (0)