aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Homescu <ahomescu@google.com>2024-04-27 01:30:10 +0000
committerAndrei Homescu <ahomescu@google.com>2024-05-07 22:02:17 +0000
commitab52f968f68c1ab615c9062b4cfdc30c7c07460f (patch)
treeaad952c13c76ca5a316a45a57f3fddff937643a2
parentcb6ee313524c2c853f7cc23328857c18fa5d423b (diff)
downloadstorage-ab52f968f68c1ab615c9062b4cfdc30c7c07460f.tar.gz
storage-unittest-aidl: Remove c_str_literals
Rust 1.77 does not require c_str_literals as a feature anymore. Bug: 337337239 Test: build.py qemu-generic-arm64-test-debug Change-Id: I1fb680853451e20ab07913bea6bb479d00dde089
-rw-r--r--test/storage-unittest-aidl/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/storage-unittest-aidl/lib.rs b/test/storage-unittest-aidl/lib.rs
index 8284e36..2b7cb52 100644
--- a/test/storage-unittest-aidl/lib.rs
+++ b/test/storage-unittest-aidl/lib.rs
@@ -1,4 +1,6 @@
-#![feature(c_str_literals)]
+#![feature(cfg_version)]
+// C string literals were stabilized in Rust 1.77
+#![cfg_attr(not(version("1.77")), feature(c_str_literals))]
#[cfg(test)]
mod unittests;