@@ -25,40 +25,6 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
2525/// [impl]: crate::iter#implementing-iterator
2626#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2727#[ rustc_on_unimplemented(
28- on(
29- _Self = "[std::ops::Range<Idx>; 1]" ,
30- label = "if you meant to iterate between two values, remove the square brackets" ,
31- note = "`[start..end]` is an array of one `Range`; you might have meant to have a `Range` \
32- without the brackets: `start..end`"
33- ) ,
34- on(
35- _Self = "[std::ops::RangeFrom<Idx>; 1]" ,
36- label = "if you meant to iterate from a value onwards, remove the square brackets" ,
37- note = "`[start..]` is an array of one `RangeFrom`; you might have meant to have a \
38- `RangeFrom` without the brackets: `start..`, keeping in mind that iterating over an \
39- unbounded iterator will run forever unless you `break` or `return` from within the \
40- loop"
41- ) ,
42- on(
43- _Self = "[std::ops::RangeTo<Idx>; 1]" ,
44- label = "if you meant to iterate until a value, remove the square brackets and add a \
45- starting value",
46- note = "`[..end]` is an array of one `RangeTo`; you might have meant to have a bounded \
47- `Range` without the brackets: `0..end`"
48- ) ,
49- on(
50- _Self = "[std::ops::RangeInclusive<Idx>; 1]" ,
51- label = "if you meant to iterate between two values, remove the square brackets" ,
52- note = "`[start..=end]` is an array of one `RangeInclusive`; you might have meant to have a \
53- `RangeInclusive` without the brackets: `start..=end`"
54- ) ,
55- on(
56- _Self = "[std::ops::RangeToInclusive<Idx>; 1]" ,
57- label = "if you meant to iterate until a value (including it), remove the square brackets \
58- and add a starting value",
59- note = "`[..=end]` is an array of one `RangeToInclusive`; you might have meant to have a \
60- bounded `RangeInclusive` without the brackets: `0..=end`"
61- ) ,
6228 on(
6329 _Self = "std::ops::RangeTo<Idx>" ,
6430 label = "if you meant to iterate until a value, add a starting value" ,
0 commit comments