diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index d3bce6b3e8df5..6b56d6bc4adf0 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -536,7 +536,10 @@ impl Builder { } for (substr, fallback_target) in fallback { if target_name.contains(substr) { - return Target::from_compressed_tar(self, &tarball_name!(fallback_target)); + let t = Target::from_compressed_tar(self, &tarball_name!(fallback_target)); + // Fallbacks must always be available. + assert!(t.available); + return t; } } Target::unavailable()