Skip to content

Commit c27579a

Browse files
committed
add a check that Summary is Sync
1 parent 279f2d1 commit c27579a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cargo/core/summary.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ impl Hash for Summary {
178178
}
179179
}
180180

181+
// A check that only compiles if Summary is Sync
182+
const _: fn() = || {
183+
fn is_sync<T: Sync>() {}
184+
is_sync::<Summary>();
185+
};
186+
181187
/// Checks features for errors, bailing out a CargoResult:Err if invalid,
182188
/// and creates FeatureValues for each feature.
183189
fn build_feature_map(

0 commit comments

Comments
 (0)