diff options
| author | est31 <MTest31@outlook.com> | 2021-04-26 20:46:30 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2021-04-26 21:02:08 +0200 |
| commit | 5bd31879d7969ceb9d616bf715722ccf807c015d (patch) | |
| tree | 5ec0294ad6a83f364a5ae60d088bf6e2804786ab | |
| parent | 8212de8eb18a8cc4ab74074f244c386d5e99b281 (diff) | |
| download | rust-5bd31879d7969ceb9d616bf715722ccf807c015d.tar.gz rust-5bd31879d7969ceb9d616bf715722ccf807c015d.zip | |
Point out that behavior might be switched on 2015 and 2018 editions too one day
| -rw-r--r-- | library/std/src/primitive_docs.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index c37111f665c..ef0ab05a58d 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -553,8 +553,10 @@ mod prim_pointer {} /// # Editions /// /// Prior to Rust 1.53, arrays did not implement `IntoIterator` by value, so the method call -/// `array.into_iter()` auto-referenced into a slice iterator. That behavior is preserved in the -/// 2015 and 2018 editions of Rust for compatability, ignoring `IntoIterator` by value. +/// `array.into_iter()` auto-referenced into a slice iterator. Right now, the old behavior +/// is preserved in the 2015 and 2018 editions of Rust for compatibility, ignoring +/// `IntoIterator` by value. In the future, the behavior on the 2015 and 2018 edition +/// might be made consistent to the behavior of later editions. /// #[cfg_attr(bootstrap, doc = "```rust,edition2018,ignore")] #[cfg_attr(not(bootstrap), doc = "```rust,edition2018")] |
