Skip to content

Commit 890ade5

Browse files
committed
Bless UI tests: do not print alternate implementors of Step
Alternative candidates for a trait implementation are not printed when the trait has a diagnostic name, to avoid printing alternatives for common stdlib traits such as `Copy` or `Debug`. However, this affects all traits for which a diagnostic item is added. Here, the list of alternatives candidates for `Step` does not seem useful, and `Step` is unstable, so this will not be missed.
1 parent 07338a4 commit 890ade5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/ui/range/range-1.stderr

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ error[E0277]: the trait bound `bool: Step` is not satisfied
1010
LL | for i in false..true {}
1111
| ^^^^^^^^^^^ the trait `Step` is not implemented for `bool`
1212
|
13-
= help: the following other types implement trait `Step`:
14-
Char
15-
Ipv4Addr
16-
Ipv6Addr
17-
char
18-
i128
19-
i16
20-
i32
21-
i64
22-
and 8 others
2313
= note: required for `std::ops::Range<bool>` to implement `Iterator`
2414
= note: required for `std::ops::Range<bool>` to implement `IntoIterator`
2515

0 commit comments

Comments
 (0)