Merge "Don't install rust modules that are never installable"
diff --git a/rust/rust.go b/rust/rust.go
index f068b3d..46c8f25 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -619,6 +619,10 @@
 }
 
 func (mod *Module) installable(apexInfo android.ApexInfo) bool {
+	if !mod.EverInstallable() {
+		return false
+	}
+
 	// The apex variant is not installable because it is included in the APEX and won't appear
 	// in the system partition as a standalone file.
 	if !apexInfo.IsForPlatform() {