Commit Graph

2 Commits

Author SHA1 Message Date
Alan Stokes 6472ccd6e5 Migrate to Rust 2021 edition
I only wanted this in one place, but thought we might as well do it
all in one go.

In a couple of places I added an explicit edition instead of using the
default (whatever that is).

See https://doc.rust-lang.org/edition-guide/rust-2021/index.html.

Test: find . -name "Android.bp" -type f|xargs grep edition | grep -v 2021
Test: atest ComposHostTestCases MicrodroidHostTestCases
Change-Id: I4de050078b303cc5614d230e0d36d5454d60a807
2022-08-31 14:40:53 +01:00
Alan Stokes c3f2ac2fb6 Fix tests on aosp_cf_x86_64_only_phone
Our nested virtualization check failed on this target. Move to a
prefix check to support this device and any other ones that appear.

Also extract the code to do the check to a library, rather than
changing in two places.

Bug: 236922543
Test: Presubmit
Change-Id: Id1d424f5f107e2098d89ca2ea8089ba956f212ca
2022-06-23 12:25:00 +01:00