Update main label

This commit is contained in:
Esteban Küber 2026-01-13 02:57:40 +00:00
parent 47089856ab
commit 9b7f612d44
4 changed files with 5 additions and 3 deletions

View file

@ -23,6 +23,7 @@ unsafe_impl_trusted_step![AsciiChar char i8 i16 i32 i64 i128 isize u8 u16 u32 u6
#[rustc_diagnostic_item = "range_step"]
#[rustc_on_unimplemented(
message = "`std::ops::Range<{Self}>` is not an iterator",
label = "not an iterator",
note = "`Range` only implements `Iterator` for select types in the standard library, \
particularly integers; to see the full list of types, see the documentation for the \
unstable `Step` trait"

View file

@ -2,7 +2,7 @@ error[E0277]: `std::ops::Range<T>` is not an iterator
--> missing-bound.rs:2:14
|
2 | for _ in t {}
| ^ the nightly-only, unstable trait `Step` is not implemented for `T`
| ^ not an iterator
|
= note: `Range` only implements `Iterator` for select types in the standard library, particularly integers; to see the full list of types, see the documentation for the unstable `Step` trait
= note: required for `std::ops::Range<T>` to implement `Iterator`

View file

@ -8,8 +8,9 @@ error[E0277]: `std::ops::Range<bool>` is not an iterator
--> $DIR/range-1.rs:9:14
|
LL | for i in false..true {}
| ^^^^^^^^^^^ the nightly-only, unstable trait `Step` is not implemented for `bool`
| ^^^^^^^^^^^ not an iterator
|
= help: the nightly-only, unstable trait `Step` is not implemented for `bool`
= note: `Range` only implements `Iterator` for select types in the standard library, particularly integers; to see the full list of types, see the documentation for the unstable `Step` trait
= note: required for `std::ops::Range<bool>` to implement `Iterator`
= note: required for `std::ops::Range<bool>` to implement `IntoIterator`

View file

@ -20,7 +20,7 @@ error[E0277]: `std::ops::Range<T>` is not an iterator
--> $DIR/unstable-trait-suggestion.rs:17:14
|
LL | for _ in t {}
| ^ the nightly-only, unstable trait `Step` is not implemented for `T`
| ^ not an iterator
|
= note: `Range` only implements `Iterator` for select types in the standard library, particularly integers; to see the full list of types, see the documentation for the unstable `Step` trait
= note: required for `std::ops::Range<T>` to implement `Iterator`