Tests: the variant-reconvergence test passes its artifacts without an explicit deref
Clippy's explicit_auto_deref denied state(&*plain) and state(&*variant) in a_simdgroup_barrier_s_variant_is_guaranteed_only_under_maximal_reconvergence (check job m3-max-72773, cancelled after its first clippy step had reported the three errors); the closure takes &FunctionArtifact, which &Arc<FunctionArtifact> coerces to.
This commit is contained in:
1 parent
b4aeaab757
commit
a7ae85b2fc
1 file changed
+3
-3
@@ -49,13 +49,13 @@ fn a_simdgroup_barrier_s_variant_is_guaranteed_only_under_maximal_reconvergence(
|
||||
)
|
||||
};
|
||||
let guaranteed = (Reconvergence::Guaranteed, false);
|
||||
assert_eq!(state(&*plain), guaranteed, "{stem}: the plain module");
|
||||
assert_eq!(state(&plain), guaranteed, "{stem}: the plain module");
|
||||
if p.fields().subgroup.maximal_reconvergence {
|
||||
assert_eq!(state(&*variant), guaranteed, "{stem}: the variant");
|
||||
assert_eq!(state(&variant), guaranteed, "{stem}: the variant");
|
||||
with += 1;
|
||||
} else {
|
||||
assert_eq!(
|
||||
state(&*variant),
|
||||
state(&variant),
|
||||
(Reconvergence::ImplementationDefined, true),
|
||||
"{stem}: the variant"
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user