Skip to content

Commit

Permalink
Add assert that fallback targets must be available.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 19, 2022
1 parent 6a1099c commit c8e6889
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tools/build-manifest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c8e6889

Please sign in to comment.