Remove test hack for std crates

This commit is contained in:
Jakub Beránek 2025-07-07 23:08:33 +02:00
parent 8a195efa1e
commit 8d0c55cb6b
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -451,11 +451,6 @@ fn copy_self_contained_objects(
/// Resolves standard library crates for `Std::run_make` for any build kind (like check, build, clippy, etc.).
pub fn std_crates_for_run_make(run: &RunConfig<'_>) -> Vec<String> {
// FIXME: Extend builder tests to cover the `crates` field of `Std` instances.
if cfg!(test) {
return vec![];
}
let has_alias = run.paths.iter().any(|set| set.assert_single_path().path.ends_with("library"));
let target_is_no_std = run.builder.no_std(run.target).unwrap_or(false);