Work around issue with bindgen tests

Change-Id: If6e84e3dbe04f3d3926dd6e4b2bc52d55c7113a4
Reviewed-on: https://fuchsia-review.googlesource.com/c/mundane/+/620225
Reviewed-by: Drew Fisher <zarvox@google.com>
diff --git a/boringssl/bindgen.sh b/boringssl/bindgen.sh
index 7409b01..be1a02e 100755
--- a/boringssl/bindgen.sh
+++ b/boringssl/bindgen.sh
@@ -204,6 +204,9 @@
 // Only necessary for test_symbol_conflict.sh, which exposes these symbols
 // through Mundane's public interface.
 #![allow(missing_docs)]
+// TODO(https://github.com/rust-lang/rust-bindgen/issues/1651): Remove this
+// once rustc doesn't think that bindgen's tests are causing UB.
+#![cfg_attr(test, allow(deref_nullptr))]
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
 #![allow(non_upper_case_globals)]
diff --git a/boringssl/boringssl.rs b/boringssl/boringssl.rs
index 4a126f4..e995368 100644
--- a/boringssl/boringssl.rs
+++ b/boringssl/boringssl.rs
@@ -10,6 +10,9 @@
 // Only necessary for test_symbol_conflict.sh, which exposes these symbols
 // through Mundane's public interface.
 #![allow(missing_docs)]
+// TODO(https://github.com/rust-lang/rust-bindgen/issues/1651): Remove this
+// once rustc doesn't think that bindgen's tests are causing UB.
+#![cfg_attr(test, allow(deref_nullptr))]
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
 #![allow(non_upper_case_globals)]