Tests: the half rounding test names its partition's element type
7d9aa2207f's partition left its element type to inference, which rustc could not settle (E0282, job m3-max-82776). It is now the conversion triple's reference. Test only.
This commit is contained in:
1 parent
7d9aa2207f
commit
13c6ba8a91
1 file changed
+2
-1
@@ -1223,7 +1223,8 @@ fn converted_half_rounding_is_the_exactly_rounded_half() {
|
||||
.map(|(r, a, _)| (*r, *a))
|
||||
.collect();
|
||||
let in_pair = |v: Value| widenings.iter().any(|(r, a)| *r == v || *a == v);
|
||||
let (pair, rest): (Vec<_>, Vec<_>) = converts.iter().partition(|(r, _, _)| in_pair(*r));
|
||||
let (pair, rest): (Vec<&(Value, Value, Contraction)>, Vec<_>) =
|
||||
converts.iter().partition(|c| in_pair(c.0));
|
||||
assert!(
|
||||
!widenings.is_empty() && pair.iter().all(|c| c.2 == Contraction::Forbidden),
|
||||
"{name} {q:?}: the pair {pair:?}"
|
||||
|
||||
Reference in new issue
Block a user