Skip to content

Commit

Permalink
add a check that Summary is Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Jul 17, 2024
1 parent 279f2d1 commit c27579a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cargo/core/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ impl Hash for Summary {
}
}

// A check that only compiles if Summary is Sync
const _: fn() = || {
fn is_sync<T: Sync>() {}
is_sync::<Summary>();
};

/// Checks features for errors, bailing out a CargoResult:Err if invalid,
/// and creates FeatureValues for each feature.
fn build_feature_map(
Expand Down

0 comments on commit c27579a

Please sign in to comment.