Skip to content

Commit 5bd3187

Browse files
committed
Point out that behavior might be switched on 2015 and 2018 editions too one day
1 parent 8212de8 commit 5bd3187

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/std/src/primitive_docs.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,10 @@ mod prim_pointer {}
553553
/// # Editions
554554
///
555555
/// Prior to Rust 1.53, arrays did not implement `IntoIterator` by value, so the method call
556-
/// `array.into_iter()` auto-referenced into a slice iterator. That behavior is preserved in the
557-
/// 2015 and 2018 editions of Rust for compatability, ignoring `IntoIterator` by value.
556+
/// `array.into_iter()` auto-referenced into a slice iterator. Right now, the old behavior
557+
/// is preserved in the 2015 and 2018 editions of Rust for compatibility, ignoring
558+
/// `IntoIterator` by value. In the future, the behavior on the 2015 and 2018 edition
559+
/// might be made consistent to the behavior of later editions.
558560
///
559561
#[cfg_attr(bootstrap, doc = "```rust,edition2018,ignore")]
560562
#[cfg_attr(not(bootstrap), doc = "```rust,edition2018")]

0 commit comments

Comments
 (0)