Skip to content

Commit c8e6889

Browse files
committed
Add assert that fallback targets must be available.
1 parent 6a1099c commit c8e6889

File tree

1 file changed

+4
-1
lines changed
  • src/tools/build-manifest/src

1 file changed

+4
-1
lines changed

src/tools/build-manifest/src/main.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,10 @@ impl Builder {
536536
}
537537
for (substr, fallback_target) in fallback {
538538
if target_name.contains(substr) {
539-
return Target::from_compressed_tar(self, &tarball_name!(fallback_target));
539+
let t = Target::from_compressed_tar(self, &tarball_name!(fallback_target));
540+
// Fallbacks must always be available.
541+
assert!(t.available);
542+
return t;
540543
}
541544
}
542545
Target::unavailable()

0 commit comments

Comments
 (0)