File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub struct IntoIter<T, const N: usize> {
38
38
alive : IndexRange ,
39
39
}
40
40
41
- // Note: the `#[rustc_skip_array_during_method_dispatch ]` on `trait IntoIterator`
41
+ // Note: the `#[rustc_skip_during_method_dispatch(array) ]` on `trait IntoIterator`
42
42
// hides this implementation from explicit `.into_iter()` calls on editions < 2021,
43
43
// so those calls will still resolve to the slice implementation, by reference.
44
44
#[ stable( feature = "array_into_iter_impl" , since = "1.53.0" ) ]
Original file line number Diff line number Diff line change @@ -268,7 +268,6 @@ where
268
268
/// }
269
269
/// ```
270
270
#[ rustc_diagnostic_item = "IntoIterator" ]
271
- #[ rustc_skip_array_during_method_dispatch]
272
271
#[ rustc_on_unimplemented(
273
272
on(
274
273
_Self = "core::ops::range::RangeTo<Idx>" ,
@@ -312,6 +311,8 @@ where
312
311
label = "`{Self}` is not an iterator" ,
313
312
message = "`{Self}` is not an iterator"
314
313
) ]
314
+ #[ cfg_attr( bootstrap, rustc_skip_array_during_method_dispatch) ]
315
+ #[ cfg_attr( not( bootstrap) , rustc_skip_during_method_dispatch( array, boxed_slice) ) ]
315
316
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
316
317
pub trait IntoIterator {
317
318
/// The type of the elements being iterated over.
You can’t perform that action at this time.
0 commit comments