diff options
author | Christian Poveda <christian.poveda@ferrous-systems.com> | 2022-09-23 21:36:14 -0500 |
---|---|---|
committer | Christian Poveda <christian.poveda@ferrous-systems.com> | 2022-10-04 20:47:17 -0500 |
commit | 0296f9e86c7756e718b6b82836ce1e09b5f8d08a (patch) | |
tree | b5954c6680b243c0b1671a80ea973ef90877e462 /tests/headers/derive-hash-blocklisting.hpp | |
parent | a900f8f863d1313ad76603234aaeea22bb9ba7b3 (diff) |
split the repo into a workspace
remove `clap` dependency :tada:
update the book installation instructions
Diffstat (limited to 'tests/headers/derive-hash-blocklisting.hpp')
-rw-r--r-- | tests/headers/derive-hash-blocklisting.hpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/headers/derive-hash-blocklisting.hpp b/tests/headers/derive-hash-blocklisting.hpp deleted file mode 100644 index 4e20e392..00000000 --- a/tests/headers/derive-hash-blocklisting.hpp +++ /dev/null @@ -1,17 +0,0 @@ -// bindgen-flags: --with-derive-hash --with-derive-partialord --with-derive-ord --with-derive-partialeq --with-derive-eq --allowlist-type 'Allowlisted.*' --blocklist-type Blocklisted --raw-line "#[repr(C)] #[derive(Debug, Hash, Copy, Clone, PartialEq, Eq)] pub struct Blocklisted<T> {t: T, pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>> }" -// -template <class T> -struct Blocklisted { - T t; -}; - -/// This would derive(Hash, Eq, PartialEq) if it didn't contain a blocklisted type, -/// causing us to conservatively avoid deriving hash/Eq/PartialEq for it. -struct AllowlistedOne { - Blocklisted<int> a; -}; - -/// This can't derive(Hash/Eq) even if it didn't contain a blocklisted type. -struct AllowlistedTwo { - Blocklisted<float> b; -}; |