summaryrefslogtreecommitdiff
path: root/tests/headers/layout_array.h
diff options
context:
space:
mode:
authorIan P. Cooke <icooke@3redpartners.com>2021-07-07 06:37:04 -0500
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-07-16 21:31:29 +0200
commita380678490b821201f10b861144b15bbe08694a2 (patch)
treeade618adab094bfa8e6e248cdc0eef05bb08a5a4 /tests/headers/layout_array.h
parentf65f2307f69a85cc7857b88409fe89c2bd2f79b7 (diff)
Let Rust derive everything but Default for large arrays in 1.47 and later
Fixes #1977 as of rust-lang/rust#74060 is available since Rust 1.47 Fixes #2041. Closes #2070.
Diffstat (limited to 'tests/headers/layout_array.h')
-rw-r--r--tests/headers/layout_array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/headers/layout_array.h b/tests/headers/layout_array.h
index 239e52b1..e6a57f7c 100644
--- a/tests/headers/layout_array.h
+++ b/tests/headers/layout_array.h
@@ -1,4 +1,4 @@
-// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --impl-partialeq
+// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --impl-partialeq --rust-target 1.40
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;