From f2ac825152e881ea2606d3d1ef8acbcb62c56b70 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Thu, 17 Aug 2023 09:44:55 +0000 Subject: Allow unsafe operations in unsafe functions in generated code. This will soon be denied by default, but we trust that what cxx does is correct. Bug: 290018030 Test: m rust Change-Id: Icde1116d90c068c7ca14c60f5b03f3fca99561f6 Merged-In: If38e434a5d9e3320cfa7e6f686a078f7ee764435 --- libs/input/input_verifier.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/input/input_verifier.rs b/libs/input/input_verifier.rs index 2e05a63149..dd2ac4ca91 100644 --- a/libs/input/input_verifier.rs +++ b/libs/input/input_verifier.rs @@ -32,6 +32,7 @@ use bitflags::bitflags; use log::info; #[cxx::bridge(namespace = "android::input")] +#[allow(unsafe_op_in_unsafe_fn)] mod ffi { #[namespace = "android"] unsafe extern "C++" { -- cgit v1.2.3-59-g8ed1b