about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-06-20 19:31:30 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-06-20 19:31:53 +0200
commit890ade5ae85300cc96b1f948d4ac2d756cc67ccd (patch)
treebd98b35823e41c2169a0f75efdf6fb65028aeae5
parent07338a40de90d64155ca25bb58fc24cf9d6b0caa (diff)
downloadrust-890ade5ae85300cc96b1f948d4ac2d756cc67ccd.tar.gz
rust-890ade5ae85300cc96b1f948d4ac2d756cc67ccd.zip
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.
-rw-r--r--tests/ui/range/range-1.stderr10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/ui/range/range-1.stderr b/tests/ui/range/range-1.stderr
index 37669dd3f47..8878ba14309 100644
--- a/tests/ui/range/range-1.stderr
+++ b/tests/ui/range/range-1.stderr
@@ -10,16 +10,6 @@ error[E0277]: the trait bound `bool: Step` is not satisfied
 LL |     for i in false..true {}
    |              ^^^^^^^^^^^ the trait `Step` is not implemented for `bool`
    |
-   = help: the following other types implement trait `Step`:
-             Char
-             Ipv4Addr
-             Ipv6Addr
-             char
-             i128
-             i16
-             i32
-             i64
-           and 8 others
    = note: required for `std::ops::Range<bool>` to implement `Iterator`
    = note: required for `std::ops::Range<bool>` to implement `IntoIterator`