Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d35667a7 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Ignore deref_nullptr warnings from bindgen

Rust 1.53 added new warnings for deref_nullptr that causes bindgen
generated test code to fail. Ignore these warnings for bindings only to
allow tests to run.

Bug: 203002625
Tag: #floss
Test: ./build.py --target test with rustc 1.55
Change-Id: I8112a2c41652604fa108fc2f932a56631784d648
parent 084502da
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
// TODO(b/203002625) - since rustc 1.53, bindgen causes UB warnings
// Remove this once bindgen figures out how to do this correctly
#![allow(deref_nullptr)]

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));