about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2021-04-24 22:33:51 -0700
committerJosh Stone <jistone@redhat.com>2021-04-24 22:33:51 -0700
commitf6a90ca168dfdf198b75bcdc0aba01915a5bd6fb (patch)
treedf44617f241ef8658de83249f344ed9854c45eec /library/std/src
parent2a97c690bc56e7e20768d0ce632f0b719bf5ff37 (diff)
downloadrust-f6a90ca168dfdf198b75bcdc0aba01915a5bd6fb.tar.gz
rust-f6a90ca168dfdf198b75bcdc0aba01915a5bd6fb.zip
Ignore array IntoIterator tests in bootstrap
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/primitive_docs.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs
index 65113bd71d9..4e97fd48725 100644
--- a/library/std/src/primitive_docs.rs
+++ b/library/std/src/primitive_docs.rs
@@ -517,7 +517,8 @@ mod prim_pointer {}
 ///
 /// # Examples
 ///
-/// ```
+#[cfg_attr(bootstrap, doc = "```ignore")]
+#[cfg_attr(not(bootstrap), doc = "```")]
 /// let mut array: [i32; 3] = [0; 3];
 ///
 /// array[1] = 1;
@@ -555,7 +556,8 @@ mod prim_pointer {}
 /// `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.
 ///
-/// ```rust,edition2018
+#[cfg_attr(bootstrap, doc = "```rust,edition2018,ignore")]
+#[cfg_attr(not(bootstrap), doc = "```rust,edition2018")]
 /// # #![allow(array_into_iter)] // override our `deny(warnings)`
 /// let array: [i32; 3] = [0; 3];
 ///